diff options
author | Clinton Popetz <cpopetz@cygnus.com> | 1999-11-10 17:17:15 +0000 |
---|---|---|
committer | Clinton Popetz <cpopetz@gcc.gnu.org> | 1999-11-10 12:17:15 -0500 |
commit | 8bfa6fc532f4fd28091c639b39f058404f779265 (patch) | |
tree | ab47712e15147a92950972c9fe18941868e1019a /gcc/gcov.texi | |
parent | 36dd3a44a3de178947d69c58ec44969a22e7a0e8 (diff) | |
download | gcc-8bfa6fc532f4fd28091c639b39f058404f779265.zip gcc-8bfa6fc532f4fd28091c639b39f058404f779265.tar.gz gcc-8bfa6fc532f4fd28091c639b39f058404f779265.tar.bz2 |
gcov.c (struct arcdata): Add hits and total, remove prob.
* 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..
From-SVN: r30476
Diffstat (limited to 'gcc/gcov.texi')
-rw-r--r-- | gcc/gcov.texi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gcov.texi b/gcc/gcov.texi index 9c6d77d..49de3f0 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). |