]> git.llucax.com Git - software/dgc/dgcbench.git/blob - pause-plot.sh
Add scripts to generate memory usage pattern charts
[software/dgc/dgcbench.git] / pause-plot.sh
1 #!/bin/sh
2
3 test -n "$1" && title=$1 && shift
4 test -n "$1" && fmt=$1 && shift
5 test -n "$1" && output=$1 && shift
6
7 files="$@"
8 test -z "$files" && files=build/pause-*-${CPUS}cpu.csv
9
10 for f in $files
11 do
12         p=`echo $f | sed "s,.*build/.*-\\(.*\\)-${CPUS}cpu\\.csv,\\1,"`
13         progs="$progs$p='$f',"
14 done
15
16 ./templite.py "fmt='$fmt', output='$output', title='$title', cpus=$CPUS,
17                         progs=dict($progs)" \
18                 < histogram-plot.tpl.gpi | gnuplot
19