#!/bin/bash DIR=`dirname $0` if [ $# != 2 ]; then echo "You must specify the path to the chart.pl script and the Chart Directory libraries." exit 1 fi SCRIPT="$1 --legend-position=right" LIBRARIES=$2 export PERL5LIB=$LIBRARIES pushd $DIR > /dev/null $SCRIPT -s bar --title "01 sample-percentages" -x "Samples" -y "% Samples" --y-range=0:101 ./plot_files/percent_0 ./plot_files/percent_1 ./plot_files/percent_2 ./plot_files/percent_3 ./plot_files/percent_4 ./plot_files/percent_5 ./plot_files/percent_6 ./plot_files/percent_7 ./plot_files/percent_8 ./plot_files/percent_9 $SCRIPT -s bar --title "02 sample-counts" -x "Samples" -y "# Samples" ./plot_files/count_0 ./plot_files/count_1 ./plot_files/count_2 ./plot_files/count_3 ./plot_files/count_4 ./plot_files/count_5 ./plot_files/count_6 ./plot_files/count_7 ./plot_files/count_8 ./plot_files/count_9 $SCRIPT -s bar --title "11 app-percentages" -x "Apps" -y "% Apps" --y-range=0:101 ./plot_files/app_percent_0 ./plot_files/app_percent_1 ./plot_files/app_percent_2 ./plot_files/app_percent_3 ./plot_files/app_percent_4 $SCRIPT -s bar --title "12 app-counts" -x "Apps" -y "# Apps" ./plot_files/app_count_0 ./plot_files/app_count_1 ./plot_files/app_count_2 ./plot_files/app_count_3 ./plot_files/app_count_4 echo -e "\n\nOProfile Charts\n\n\n" > chart.html echo -e "OProfile Data (/autobench/logs/ffsb.sequential_reads__threads_0001.09-09-18_16.49.28/analysis/oprofile.001)
\n" >> chart.html echo -e "OProfile Brief Data (/autobench/logs/ffsb.sequential_reads__threads_0001.09-09-18_16.49.28/analysis/oprofile-brief.001)
\n" >> chart.html echo -e "OProfile Call Graph
\n" >> chart.html echo -e "
\n" >> chart.html for i in `ls -1 *.png`; do echo -e "

" >> chart.html done echo -e "\n\n" >> chart.html