diff --git a/ChangeLog.md b/ChangeLog.md index d4e9176..e886f27 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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 diff --git a/README.md b/README.md index 2235dc7..19c5c9b 100644 --- a/README.md +++ b/README.md @@ -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 @@ -58,13 +58,13 @@ $ # 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 [ -p pid2 ... -p pidN ])] + [-b|--order-by ] Available options: -h,--help Show this help text @@ -72,9 +72,13 @@ Available options: -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 [ -p pid2 ... -p pidN ] Only show memory usage of the specified PIDs + -b,--order-by + Orders the output by ascending values of the given + field ``` ### Example output diff --git a/mem-info.cabal b/mem-info.cabal index ff496ef..58ef826 100644 --- a/mem-info.cabal +++ b/mem-info.cabal @@ -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. @@ -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