Commit Graph

17 Commits

Author SHA1 Message Date
Will Dietz bc058ea073 main.c: Remove unused '-v'/verbose flag 2017-06-30 08:39:31 -05:00
Victor Rodriguez 3772b98a7e Merge pull request #1 from ignaciohg/correct-readme
Added a missing step in the README
2017-06-01 10:29:36 -05:00
Ignacio Hernandez 0d7c237165 Added basic rpm generation capabilities
Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2017-05-31 20:36:45 -07:00
Ignacio Hernandez 2e0c6df22b Added missing step to installation instructions
Signed-off-by: Ignacio Hernandez <ignacio.hernandez@intel.com>
2017-05-31 19:13:26 -07:00
Victor Rodriguez 2a456fb8b6 Fix unncesary print of help with oen arg
This commit remove the unncesary print of the help with argc == 1

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-12-12 15:33:03 +00:00
Victor Rodriguez 125efc0ebd Adding Victor Rodriguez to authors
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-12-02 20:22:07 +00:00
Victor Rodriguez b22de84fda Add help and verbose arg options
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>
2016-12-02 20:21:57 +00:00
Victor Rodriguez 5a8a6d70c0 Fix printing format in a pretty way
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>
2016-12-01 23:02:43 +00:00
Victor Rodriguez 4567cc55a7 Add man page
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>
2016-12-01 20:55:40 +00:00
Victor Rodriguez 7893710183 Add README
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>
2016-12-01 19:47:45 +00:00
Victor Rodriguez af6a26b9a3 Changing headers of source code
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:53:34 +00:00
Victor Rodriguez 50799cb7fe renaming LICENSE
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:27:25 +00:00
Victor Rodriguez 4a6cc3b5e1 Add LICENSE file
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:23:04 +00:00
Victor Rodriguez 79d1823c95 Clean with Clang Format
Fixing Clang format and valgrind memory leaks:

==1721==    definitely lost: 0 bytes in 0 blocks
==1721==    indirectly lost: 0 bytes in 0 blocks
==1721==      possibly lost: 0 bytes in 0 blocks

Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:18:32 +00:00
Victor Rodriguez da4c09a2e1 fix warnings in prints and fgets
Signed-off-by: Victor Rodriguez <victor.rodriguez.bahena@intel.com>
2016-11-30 19:18:25 +00:00
Arjan van de Ven 557003d171 latest version 2016-11-30 19:18:19 +00:00
Arjan van de Ven b47d54ce51 empty project 2016-11-30 19:18:02 +00:00