OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright 2013 the V8 project authors. All rights reserved. | 3 # Copyright 2013 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 12 matching lines...) Expand all Loading... |
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | 29 |
30 # This script reads in CSV formatted instruction data, and draws a stacked | 30 # This script reads in CSV formatted instruction data, and draws a stacked |
31 # graph in png format. | 31 # graph in png format. |
32 | 32 |
33 defaultfile=a64_inst.csv | 33 defaultfile=arm64_inst.csv |
34 defaultout=a64_inst.png | 34 defaultout=arm64_inst.png |
35 gnuplot=/usr/bin/gnuplot | 35 gnuplot=/usr/bin/gnuplot |
36 | 36 |
37 | 37 |
38 # File containing CSV instruction data from simulator. | 38 # File containing CSV instruction data from simulator. |
39 file=${1:-$defaultfile} | 39 file=${1:-$defaultfile} |
40 | 40 |
41 # Output graph png file. | 41 # Output graph png file. |
42 out=${2:-$defaultout} | 42 out=${2:-$defaultout} |
43 | 43 |
44 # Check input file exists. | 44 # Check input file exists. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 set style line 20 lc rgb '#000000' | 122 set style line 20 lc rgb '#000000' |
123 set style line 21 lc rgb '#ffffff' | 123 set style line 21 lc rgb '#ffffff' |
124 | 124 |
125 plot for [i=2:MAXCOL] '$file' using 1:(sum [col=i:MAXCOL] column(col)) \ | 125 plot for [i=2:MAXCOL] '$file' using 1:(sum [col=i:MAXCOL] column(col)) \ |
126 title columnheader(i) with filledcurve y1=0 ls i | 126 title columnheader(i) with filledcurve y1=0 ls i |
127 EOF | 127 EOF |
128 | 128 |
129 | 129 |
130 | 130 |
OLD | NEW |