memleak: Make size configurable.

This commit is contained in:
tastytea 2021-12-05 20:57:02 +01:00
parent 670bfe4311
commit 513d3f997f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 8 additions and 3 deletions

View File

@ -24,6 +24,10 @@ mystarttime = strptime(mytimefmt, "1970-01-01T00:00")
if (ARGC >= 2) {
mystarttime = strptime(mytimefmt, ARG2)
}
array mysize[2] = [ 1200, 900 ]
if (ARGC >= 4) {
array mysize[2] = [ ARG3, ARG4 ]
}
set title sprintf('%s memory consumption over time', myprog)
@ -47,13 +51,14 @@ set grid xtics ytics mxtics mytics lc "gray50" lw 0.75, lc "gray" lw 0.5
myfont = "Source Sans Pro,12"
# set terminal qt enhanced size 1200,900 font myfont
# set terminal qt enhanced size mysize[1],mysize[2] font myfont
# set terminal png enhanced notransparent size 1200,900 font myfont
# set terminal png enhanced notransparent size mysize[1],mysize[2] font myfont
# set output sprintf("%s memory consumption over time.png", myprog)
myfont = "Source Sans Pro,16"
set terminal svg enhanced background rgb 'white' size 1200,900 dynamic font myfont
set terminal svg enhanced background rgb 'white' size mysize[1],mysize[2] \
dynamic font myfont
set output sprintf("%s memory consumption over time.svg", myprog)
plot infile every 4::0 using ((timecolumn(2) - mystarttime)):($3/1024) title 'USS' \