forked from pakls/patch_rocket_sim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
memprofile.gnuplot
executable file
·50 lines (39 loc) · 1.44 KB
/
memprofile.gnuplot
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
43
44
45
46
47
48
49
50
#!/usr/bin/env gnuplot
set output "curr_size.jpg"
set key top right
set grid xtics ytics
set title 'Memory Profile of Test Program'
set xlabel 'Time [s]'
set ylabel 'alloc size [kb]'
set datafile separator ","
set logscale x
plot \
"glibc_heaplog.csv" using 1:($2/1024) title "glibc heap" with lines , \
"ltalloc_heaplog.csv" using 1:($2/1024) title "ltalloc heap " with lines,
"tcalloc_heaplog.csv" using 1:($2/1024) title "tcalloc heap" with lines
set terminal pdf size 28cm,18cm linewidth 2.0
set output "frag_size.jpg"
set key top right
set grid xtics ytics
set title 'Memory Profile of Test Program'
set xlabel 'Time [s]'
set ylabel 'curr frag percentage [%]'
set datafile separator ","
set logscale x
plot \
"glibc_heaplog.csv" using 1:3 title "glibc frag" with lines , \
"ltalloc_heaplog.csv" using 1:3 title "ltalloc frag " with lines, \
"tcalloc_heaplog.csv" using 1:3 title "tcalloc frag" with lines
set terminal pdf size 28cm,18cm linewidth 2.0
set output "alloc_time.jpg"
set key top right
set grid xtics ytics
set title 'Memory Profile of Test Program'
set xlabel 'Time [s]'
set ylabel 'alloc Time [ms]'
set datafile separator ","
set logscale x
plot \
"glibc_heaplog.csv" using 1:4 title "glibc alloc time" with lines ,\
"ltalloc_heaplog.csv" using 1:4 title "ltalloc alloc time " with lines , \
"tcalloc_heaplog.csv" using 1:4 title "tcalloc alloc time" with lines