diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-23 13:55:28 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-23 13:55:28 +0000 |
commit | 4bfc3ff0532c344a3e605297432468d95e4e33c0 (patch) | |
tree | 85678ec92cf1918391d7b5b5470641042192dbc4 | |
parent | e06d8cc60f5263ed4d8db6beca63f1bb1a89a283 (diff) | |
download | gcc-4bfc3ff0532c344a3e605297432468d95e4e33c0.tar.gz |
* analyze_brprob: Fix awk compatibility problems; update comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44266 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | contrib/ChangeLog | 4 | ||||
-rwxr-xr-x | contrib/analyze_brprob | 17 |
2 files changed, 12 insertions, 9 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 56e9f86c093..851af247d3d 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 23 15:47:19 CEST 2001 Jan Hubicka <jh@suse.cz> + + * analyze_brprob: Fix awk compatibility problems; update comment. + 2001-07-23 Andreas Jaeger <aj@suse.de> * analyze_brprob: Fix more typos. diff --git a/contrib/analyze_brprob b/contrib/analyze_brprob index 8e61292e7e3..c17f3d0415d 100755 --- a/contrib/analyze_brprob +++ b/contrib/analyze_brprob @@ -36,7 +36,6 @@ # saved into *.life dumps. You need to pass the -df switch to the compiler as well # as -fbranch-probabilities to get the results of profiling noted in the dumps. # Ensure that there are no "Arc profiling: some edge counts were bad." warnings. -# Keep the -fprofile-arcs switch to ensure that CFGs match. # Step 3: Run this script to concatenate all *.life files: # analyze_brprob `find . -name *.life` # the information is collected and print once all files are parsed. This @@ -124,26 +123,26 @@ BEGIN {nnames = 0} #BC crashes on long strings. Irritating. if (length(counts[name]) > 4000) { - counts[name] = longeval (counts[name]) - hits[name] = longeval (hits[name]) - phits[name] = longeval (phits[name]) + counts[name] = longeval(counts[name]) + hits[name] = longeval(hits[name]) + phits[name] = longeval(phits[name]) } } END { # Heuristics called combined predicts just everything. - maxcounts = longeval (counts["first match"]) + maxcounts = longeval(counts["first match"]) maxbranches = branches["first match"] max = names["first match"] printf("HEURISTICS BRANCHES (REL) HITRATE COVERAGE (REL)\n") for (i = 0; i < nnames ; i++) { name = names[i] - counts[name] = longeval (counts[name]) + counts[name] = longeval(counts[name]) printf ("%-27s %8i %5.1f%% %6s%%/%6s%% %12s %5.1f%%\n", name, branches[name], branches[name] * 100 / maxbranches, - longeval ("("hits[name]") * 100 /(" counts[name]"-0.00001)"), - longeval ("("phits[name]") * 100 /(" counts[name]"-0.00001)"), - counts[name], longeval (counts[name]" * 100 / ("maxcounts"-0.00001)")) + longeval("("hits[name]") * 100 /(" counts[name]"-0.00001)"), + longeval("("phits[name]") * 100 /(" counts[name]"-0.00001)"), + counts[name], longeval(counts[name]" * 100 / ("maxcounts"-0.00001)")) } } |