Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trace-cmd: top: A new interface to detect peak memory
A new interface "trace-cmd top" has been introduced in this patch to know peak memory usage of any task. $ trace-cmd top -s "/tmp/socket" It will start to gather statistics of all the process which will be scheduled after this command execution. $ trace-cmd top -p "/tmp/socket" It will print peak memory usage(in KB) against each scheduled task. $ trace-cmd top -e "/tmp/socket" It will print peak memory usage(in KB) against each scheduled task and will stop gathering statistics. It will also kill the child process initiated by -s option. # ./trace-cmd top -s "/tmp/socket" # ./trace-cmd top -e "/tmp/socket" pid comm peak memory(in KB) 37 rcuos/3 0 1979 gnome-shell 374444 6286 bash 6444 7972 trace-cmd 204 10244 thunderbird 830632 10264 Socket Thread 830632 10281 Timer 830632 16806 kworker/1:0 0 21528 firefox 1747356 32110 minicom 6988 Signed-off-by: Pratyush Anand <panand@redhat.com>
- Loading branch information