summaryrefslogtreecommitdiff
path: root/gcc/gcov.texi
diff options
context:
space:
mode:
authorcpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-10 17:17:15 +0000
committercpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-10 17:17:15 +0000
commit887f59f0e42368a418f8eef9eea15b666493b5ad (patch)
treeab47712e15147a92950972c9fe18941868e1019a /gcc/gcov.texi
parentbd41a79ee42d515c1e9d575fca34663312a2431e (diff)
downloadgcc-887f59f0e42368a418f8eef9eea15b666493b5ad.tar.gz
* gcov.c (struct arcdata): Add hits and total, remove prob.
(output_branch_counts): New. (process_args): Set output_branch_counts if -c. (calculate_branch_probs): Store hits and total instead of percentage. (output_data): Emit counts if output_branch_counts is true. * gcov.texi (Invoking Gcov): Document -c switch.. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30476 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcov.texi')
-rw-r--r--gcc/gcov.texi6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gcov.texi b/gcc/gcov.texi
index 9c6d77da7d4..49de3f05458 100644
--- a/gcc/gcov.texi
+++ b/gcc/gcov.texi
@@ -81,7 +81,7 @@ compatible with any other profiling or test coverage mechanism.
@section Invoking gcov
@smallexample
-gcov [-b] [-v] [-n] [-l] [-f] [-o directory] @var{sourcefile}
+gcov [-b] [-c] [-v] [-n] [-l] [-f] [-o directory] @var{sourcefile}
@end smallexample
@table @code
@@ -90,6 +90,10 @@ Write branch frequencies to the output file, and write branch summary
info to the standard output. This option allows you to see how often
each branch in your program was taken.
+@item -c
+Write branch frequencies as the number of branches taken, rather than
+the percentage of branches taken.
+
@item -v
Display the @code{gcov} version number (on the standard error stream).