Last change
on this file since e0350e0 was 7d02d35, checked in by Mike Brooks <mlbrooks@…>, 4 months ago |
Include benchmark changes for data production in string-plot data WIP. Missing from 2410424.
|
-
Property mode
set to
100755
|
File size:
778 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | # $1 is SUT id : stl-pall-na-na-na
|
---|
4 | # $2 is CLI middle : 1000 1.006 0.1 -w 10000000
|
---|
5 | # $3 is corpus id : -1-500-1 (goes with corpus-1-500-1.txt)
|
---|
6 | #
|
---|
7 | # usage for that example: ./make-flamegraph.sh cfa-pall-ll-share-na '1000 1.006 0.1 -w 10000000' -1-500-1
|
---|
8 | #
|
---|
9 | # another
|
---|
10 | # $3 is coprus id : x-100-20-1 (goes with corpusx-100-20-1.txt)
|
---|
11 |
|
---|
12 | SLUG=perf--$1--${2//[ .]/-}--$3--`date '+%F--%H-%M-%S'`
|
---|
13 | benchdir=$(dirname "$0")
|
---|
14 | echo benchdir = $benchdir
|
---|
15 |
|
---|
16 | perf record --call-graph dwarf -m16M $benchdir/perfexp-$1 $2 `cat $benchdir/corpus$3.txt`
|
---|
17 |
|
---|
18 | mv perf.data $SLUG.data
|
---|
19 | perf script -i $SLUG.data > $SLUG.perf
|
---|
20 | ../flamegraph/FlameGraph/stackcollapse-perf.pl $SLUG.perf > $SLUG.folded
|
---|
21 | ../flamegraph/FlameGraph/flamegraph.pl $SLUG.folded > $SLUG.svg
|
---|
22 | #cp $SLUG.svg ~/plg2/flames
|
---|
Note:
See
TracBrowser
for help on using the repository browser.