memleak: Add example for label and another example usage.

This commit is contained in:
tastytea 2021-12-07 17:54:59 +01:00
parent 962fb0a847
commit b28ced2d14
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@
# - default: 1 tic every hour.
# - long: 1 tic every 6 hours.
# Example usage: ./memory-consumption-over-time.gp myprogram 2021-12-05T08:42
# Example usage: ./memory-consumption-over-time.gp myprogram 2021-12-05T08:42 big short 640 480
if (ARGC < 2) {
printerr "You probably want to supply the program name ", \
@ -99,6 +100,9 @@ set output sprintf("%s memory consumption over time.svg", myprog)
set y2range [0:] # Don't go into minus if Swap is 0 the whole time.
# set label 1 '1 hour 200 MiB' at (1*60*60),(204800/1024) offset first 0,0 \
# point pt 7 lc "red"
plot infile every 4::0 using ((timecolumn(2) - mystarttime)):($3/1024) title 'USS' \
with linespoints linewidth 3 pointtype 7 pointsize 0.5, \
\