2014-05-01 18:54:25 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
sample_file="$1"
|
|
|
|
plot_script="$2"
|
|
|
|
|
|
|
|
if [[ ! -f "$sample_file" ]]
|
|
|
|
then
|
|
|
|
echo "The sample file ${sample_file} does not exist"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-05-01 19:27:08 +00:00
|
|
|
if [[ -z "$plot_script" ]]
|
|
|
|
then
|
|
|
|
plot_script="profile/gnuplot/memory_time.gpi"
|
|
|
|
fi
|
|
|
|
|
2014-05-01 18:54:25 +00:00
|
|
|
if [[ ! -f "$plot_script" ]]
|
|
|
|
then
|
|
|
|
echo "The gnuplot script ${plot_script} does not exist"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
gnuplot -e "sample_file='${sample_file}'" "${plot_script}"
|