diff options
author | Teresa Johnson <tejohnson@google.com> | 2012-05-08 21:22:28 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@gcc.gnu.org> | 2012-05-08 21:22:28 +0000 |
commit | 4e8ee9cbf7895df0147627c88a682d3e4d789779 (patch) | |
tree | e8169275509aad912d8d4b57d59a52610ef8bcc8 /gcc/tree-vect-loop-manip.c | |
parent | 564fe867d8a1abfaa30303b3eca98e9b782fcdc9 (diff) | |
download | gcc-4e8ee9cbf7895df0147627c88a682d3e4d789779.zip gcc-4e8ee9cbf7895df0147627c88a682d3e4d789779.tar.gz gcc-4e8ee9cbf7895df0147627c88a682d3e4d789779.tar.bz2 |
This patch adds functionality to libgcov to enable user applications to collect...
This patch adds functionality to libgcov to enable user applications to
collect profile data only in regions of interest. This is useful, for
example, to collect profile data from a long-running server only
during the time when it is serving requests.
Specifically, the new routines __gcov_reset will clear all profile counters
to zero and __gcov_dump will write out the profile information collected so
far. A global variable is used to prevent writing out the profile a
second time during exit.
2012-05-08 Teresa Johnson <tejohnson@google.com>
* libgcc/libgcov.c (gcov_clear, __gcov_reset): New functions.
(__gcov_dump): Ditto.
(gcov_dump_complete): New global variable.
(gcov_exit): Export hidden to enable use in L_gcov_dump.
(__gcov_flush): Outline functionality now in gcov_clear.
* libgcc/Makefile.in (L_gcov_reset, L_gcov_dump): Define.
* gcc/gcov-io.h (__gcov_reset, __gcov_dump): Declare.
* gcc/doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
From-SVN: r187297
Diffstat (limited to 'gcc/tree-vect-loop-manip.c')
0 files changed, 0 insertions, 0 deletions