Skip to content

Commit

Permalink
add mem plotting script
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Apr 1, 2024
1 parent 21e5474 commit 79f5bb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plot_mem.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /bin/bash
pp=$(jcmd|grep 'MainKt'|cut -d' ' -f1);while :; do grep -oP '^VmRSS:\s+\K\d+' /proc/$pp/status \
| numfmt --from-unit Ki --to-unit Mi; sleep 1; done | ttyplot -u Mi

0 comments on commit 79f5bb9

Please sign in to comment.