From c1c6ca6300634cfcbdb15d564c54fe855d43d8c7 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 26 Sep 2016 13:55:48 +0200 Subject: [PATCH] Fix documentation of gcov tool * doc/gcov.texi: Update program output of gcov tool. From-SVN: r240494 --- gcc/ChangeLog | 4 ++++ gcc/doc/gcov.texi | 16 +++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d796a592e9b..59218b8ec57 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-09-26 Martin Liska + + * doc/gcov.texi: Update program output of gcov tool. + 2016-09-26 Martin Liska PR gcov-profile/23332 diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index a0a7af78900..1523cb14f01 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -367,8 +367,9 @@ is what you see when you use the basic @command{gcov} facility: $ gcc -fprofile-arcs -ftest-coverage tmp.c $ a.out $ gcov tmp.c -90.00% of 10 source lines executed in file tmp.c -Creating tmp.c.gcov. +File 'tmp.c' +Lines executed:90.00% of 10 +Creating 'tmp.c.gcov' @end smallexample The file @file{tmp.c.gcov} contains output from @command{gcov}. @@ -452,11 +453,12 @@ When you use the @option{-b} option, your output looks like this: @smallexample $ gcov -b tmp.c -90.00% of 10 source lines executed in file tmp.c -80.00% of 5 branches executed in file tmp.c -80.00% of 5 branches taken at least once in file tmp.c -50.00% of 2 calls executed in file tmp.c -Creating tmp.c.gcov. +File 'tmp.c' +Lines executed:90.00% of 10 +Branches executed:80.00% of 5 +Taken at least once:80.00% of 5 +Calls executed:50.00% of 2 +Creating 'tmp.c.gcov' @end smallexample Here is a sample of a resulting @file{tmp.c.gcov} file: -- 2.30.2