This patch fix bug reported by
src/main.c:129:17: error: non-void function 'do_one_process'
should return a value [-Wreturn-type]
return;
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
This uses `ronn` to create a developer-maintained manual
page. The output is pushed into git, such that a normal
distribution compilation does not need to have `ronn` installed
to do a full install. Developers will need to check in the
psstop.1 file after modifying the psstop.1.md file
This patch makes use of realloc array and qsort() to display process
sorted. This helps users to easily find process consuming more
proportional set size memory on the OS.
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
This patch adds a simple help menu to interact with psstop
psstop$ ./psstop -h
Help :
-h : Print this help
-p : Process name to measure memory usage
-v : Verbose
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
This patch improve the way that psstop prints the results:
Process Name PID : Size in KB
[...]
systemd-udevd 23356 : 0 Kb
systemd 24050 : 2183 Kb
(sd-pam) 24051 : 0 Kb
tmux: server 31523 : 1087 Kb
bash 31524 : 4 Kb
bash 31525 : 4 Kb
vim 31684 : 4 Kb
Total is 19871Kb (181 processes)
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
This patch add a md file consumed by ronn(1) to generate man pages.
There is still some other comand line and funtions that need to be added
, however this first version is good for now
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
This is a basic README for psstop, there are incoming patches for adding
extra functions and proper arguments like : help, version,
verbose or some others common options in sw tools
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>