source: doc/theses/mike_brooks_MMath/benchmarks/string/make-flamegraph.sh@ ae0c1c3

Last change on this file since ae0c1c3 was 10ef475, checked in by Michael Brooks <mlbrooks@…>, 5 months ago

Move string benchmark programs into thesis

  • Property mode set to 100755
File size: 772 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
12SLUG=perf--$1--${2//[ .]/-}--$3
13
14perf record --call-graph dwarf -m16M ~/plg2/cfa2/cfa-cc/tests/zombies/string-perf/perfexp-$1 $2 `cat ~/plg2/cfa2/cfa-cc/tests/zombies/string-perf/corpus$3.txt`
15
16mv perf.data $SLUG.data
17perf script -i $SLUG.data > $SLUG.perf
18../flamegraph/FlameGraph/stackcollapse-perf.pl $SLUG.perf > $SLUG.folded
19../flamegraph/FlameGraph/flamegraph.pl $SLUG.folded > $SLUG.svg
20cp $SLUG.svg ~/plg2/flames
Note: See TracBrowser for help on using the repository browser.