record-test.sh (669B)
1 #!/bin/bash 2 # 3 # record-test.sh - Overwrite flame graph test result files. 4 # 5 # See test.sh, which checks these resulting files. 6 # 7 # Currently only tests stackcollapse-perf.pl. 8 9 set -v -x 10 11 # ToDo: add some form of --inline, and --inline --context tests. These are 12 # tricky since they use addr2line, whose output will vary based on the test 13 # system's binaries and symbol tables. 14 for opt in pid tid kernel jit all addrs; do 15 for testfile in test/*.txt ; do 16 echo testing $testfile : $opt 17 outfile=${testfile#*/} 18 outfile=test/results/${outfile%.txt}"-collapsed-${opt}.txt" 19 ./stackcollapse-perf.pl --"${opt}" "${testfile}" 2> /dev/null > $outfile 20 done 21 done