diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-12 17:41:19 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-12 17:41:19 +0000 |
commit | 65c1e46ebdfd66bea7a8872d5416c0d770f1c77d (patch) | |
tree | 6e0f81be576e18f92539ca6850f0baa08b53408c /utils/OldenDataRecover.pl | |
parent | e87192a854ff0f2f1904dd9ea282eb36059bb5af (diff) | |
download | external_llvm-65c1e46ebdfd66bea7a8872d5416c0d770f1c77d.zip external_llvm-65c1e46ebdfd66bea7a8872d5416c0d770f1c77d.tar.gz external_llvm-65c1e46ebdfd66bea7a8872d5416c0d770f1c77d.tar.bz2 |
make recovering running_Olden data easier when the nightly tester eats the graphs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/OldenDataRecover.pl')
-rw-r--r-- | utils/OldenDataRecover.pl | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/utils/OldenDataRecover.pl b/utils/OldenDataRecover.pl new file mode 100644 index 0000000..7678394 --- /dev/null +++ b/utils/OldenDataRecover.pl @@ -0,0 +1,37 @@ +#this script is intended to help recover the running graphs when +#the nightly tester decides to eat them. + +#zgrep -E "(=========)|(TEST-RESULT-llc-time)" *-Olden-tests.txt* |perl this > file +#zgrep -E "(=========)|(TEST-RESULT-compile.*bc)" *-Olden-tests.tx* |perl this >file + +while (<>) { + if (/(\d*-\d*-\d*)-.*=========.*\/(.*)\' Program/) { +# print "$1 $2\n"; + $curP = $2; + $curD = $1; + $dates{$1} = 1; + } elsif (/(\d*-\d*-\d*)-.*TEST-RESULT-.*: program (\d*\.\d*)/) { +# print "$1 $2\n"; + if ($curD eq $1) { + $$data{$curD}{$curP} = $2; + } + } elsif (/(\d*-\d*-\d*)-.*TEST-RESULT-.*: (\d*)/) { +# print "$1 $2\n"; + if ($curD eq $1) { + $$data{$curD}{$curP} = $2; + } + } +} +@progs = ("bh", "em3d", "mst", "power", "tsp", "bisort", "health", "perimeter", "treeadd", "voronoi"); + +foreach $date (sort keys %dates) { + print "$date: "; + foreach $prog (@progs) { + if ($$data{$date}{$prog}) { + print " $$data{$date}{$prog}"; + } else { + print " 0"; + } + } + print "\n"; +} |