-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshow_mem_2.plt
More file actions
executable file
·42 lines (31 loc) · 904 Bytes
/
show_mem_2.plt
File metadata and controls
executable file
·42 lines (31 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if (GPVAL_VERSION >= 5.0) set for [i=1:8] linetype i dashtype i
if (GPVAL_VERSION < 5.0) set termoption dashed
if (!exists("verbose")) verbose = 0
if (verbose == 1) {
print "Statistical Data for RSS"
stats 'data/mem.log' using 2
} else {
stats 'data/mem.log' using 2 nooutput
}
if (verbose == 1) {
print "Statistical Data for Allocated"
stats 'data/mem.log' using 3
} else {
stats 'data/mem.log' using 3 nooutput
}
set term png small size 800,600
set output "mem-graph.png"
set ylabel "MEM(kb)"
set xlabel "Time"
#set y2label "%MEM"
#set y2label "%Commited_AS"
set ytics nomirror
#set y2tics nomirror in
set yrange [0:*]
#set y2range [0:*]
set xdata time
set timefmt '%H:%M:%S'
set format x '%H:%M:%S'
#set xrange ['00:00':'24:00']
plot "data/mem.log" using 1:2 with lines axes x1y1 title "RSS" , \
"data/mem.log" using 1:3 with lines axes x1y1 title "Allocated"