#!/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 $SCRIPT -s bar --title "02 sample-counts" -x "Samples" -y "# Samples" $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.random_writes__threads_0001.09-07-24_12.31.19/analysis/oprofile.001)
\n" >> chart.html echo -e "OProfile Brief Data (/autobench/logs/ffsb.random_writes__threads_0001.09-07-24_12.31.19/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