gnuplot绘制sysben测试图
cat t.log |grep “]” |awk -F" " ‘{print $2,$5,$8,$11}’|sed -e ‘s/s//g’|sed -e ‘sg’ >test.log
[root@Jupiter test]# cat log.conf
#cat log.conf
set terminal gif small size 480,360 #指定输出成gif图片,且图片大小为550×25
set output “tcpp.gif” #指定输出gif图片的文件名
set title “MySQL Performance” #图片标题
set style data lines #显示网格
set xlabel “Time/s” #X轴标题
set ylabel “Data” #Y轴标题
set grid #显示网格
plot
“test.log” using 1:4 title “Total throughput” with lines #从tpcc-graphic-data.txt文件中读取第一列和第二列作为X轴和Y轴数据,示例名"Total throughput"
进行绘图
cat log.conf |gnuplot