Skip to content

Commit

Permalink
Update the minor version since 'Choices' has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
adetokunbo committed Jan 28, 2024
1 parent fa2484f commit 7fb9706
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

`mem-info` uses [PVP Versioning][1].

## 0.2.0.0 -- 2024-01-28

- Simplify the output when the -d (--discriminate-by-pid) flag is used

- Add options -b (--order-by) and -r (--reverse) to change the ordering of the
output

## 0.1.0.1 -- 2024-01-17

- Adjusted dependency bounds to remove any stale dependencies
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ This is a clone of [ps_mem], originally implemented in python. This
re-implementation allows its behaviour to be used as library code in haskell
programs.

It provides an executable command `printmem`, that mimics `ps_mem`, and
`mem-info`, a haskell library package.
It provides an executable command `printmem`, that mimics `ps_mem` while adding
new features, and `mem-info`, a haskell library package.

## Rationale

Expand Down Expand Up @@ -58,23 +58,27 @@ $ # make it executable
$ chmod u+x $my_local_bin
```


## Usage

```
Usage: printmem [-s|--split-args] [-t|--total] [-d|--discriminate-by-pid]
[-S|--show_swap] [-w|--watch N]
[-S|--show_swap] [-r|--reverse] [-w|--watch N]
[(-p|--pids <pid1> [ -p pid2 ... -p pidN ])]
[-b|--order-by <Private | Swap | Shared | Count>]
Available options:
-h,--help Show this help text
-s,--split-args Show and separate by all command line arguments
-t,--total Only show the total value
-d,--discriminate-by-pid Show by process rather than by program
-S,--show_swap Show swap information
-r,--reverse Reverses the order of output, making it descending
-w,--watch N Measure and show memory every N seconds (N > 0)
-p,--pids <pid1> [ -p pid2 ... -p pidN ]
Only show memory usage of the specified PIDs
-b,--order-by <Private | Swap | Shared | Count>
Orders the output by ascending values of the given
field
```

### Example output
Expand Down
4 changes: 2 additions & 2 deletions mem-info.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: mem-info
version: 0.1.0.1
version: 0.2.0.0
synopsis: Print the core memory usage of programs
description:
A utility to accurately report the core memory usage of programs.
Expand All @@ -11,7 +11,7 @@ description:

The package provides:

* an executable command `printmem` that mimics `ps_mem`
* an executable command `printmem` that is like `ps_mem` with extra features

* a library to enable core memory tracking on linux in haskell programs

Expand Down

0 comments on commit 7fb9706

Please sign in to comment.