Skip to content

Commit

Permalink
tests/make_graph: improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
suizman committed Dec 7, 2018
1 parent d3cea05 commit 7ba0302
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/make_graph
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,23 @@ all() {
do
func_name=$(cat /tmp/data | grep -o -F $(cat /tmp/function) | uniq)
echo $func_name
cat /tmp/data | grep -F $(cat /tmp/function) | gnuplot -e "set terminal dumb size $columns $lines enhanced ansi256; set title \"$func_name\" ; plot \"-\" using 1:$parse with lines; pause -1"
cat /tmp/data | grep -F $(cat /tmp/function) | \
gnuplot -e "
set terminal dumb size $columns $lines enhanced ansi256;
set title '$func_name';
set xlabel '# of events';
set ylabel '$unit';
plot '-' using 1:$parse with lines;
pause -1
"
read -p "Press Enter to continue"
done
}

case $metric in
cumulative|cum|c)
parse='6'
unit='%'
all
;;
flat|f)
Expand Down

0 comments on commit 7ba0302

Please sign in to comment.