diff options
author | Martin Liska <mliska@suse.cz> | 2021-05-26 09:35:04 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-05-26 09:35:04 +0200 |
commit | e1ba2cb28a9a154eb7afdfa4a6b67fb3cdca4c8c (patch) | |
tree | 632a908cd8fe77224bd83a2498dce2712cd319f8 /gcc/doc | |
parent | b1edeaddf3b48278724f3175983b9f357d437874 (diff) | |
parent | 403bb89bd7f4ec03d4dcbdf8668d0187358631a0 (diff) | |
download | gcc-e1ba2cb28a9a154eb7afdfa4a6b67fb3cdca4c8c.zip gcc-e1ba2cb28a9a154eb7afdfa4a6b67fb3cdca4c8c.tar.gz gcc-e1ba2cb28a9a154eb7afdfa4a6b67fb3cdca4c8c.tar.bz2 |
Merge branch 'master' into devel/sphinx
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/gcov.texi | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index 1ad99e5..d076721 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -885,13 +885,15 @@ same source lines, the line counts themselves might seem inconsistent. Long-running applications can use the @code{__gcov_reset} and @code{__gcov_dump} facilities to restrict profile collection to the program region of -interest. Calling @code{__gcov_reset(void)} will clear all profile counters -to zero, and calling @code{__gcov_dump(void)} will cause the profile information -collected at that point to be dumped to @file{.gcda} output files. +interest. Calling @code{__gcov_reset(void)} will clear all run-time profile +counters to zero, and calling @code{__gcov_dump(void)} will cause the profile +information collected at that point to be dumped to @file{.gcda} output files +(the function can be called just once). Instrumented applications use a static destructor with priority 99 to invoke the @code{__gcov_dump} function. Thus @code{__gcov_dump} is executed after all user defined static destructors, as well as handlers registered with @code{atexit}. + If an executable loads a dynamic shared object via dlopen functionality, @option{-Wl,--dynamic-list-data} is needed to dump all profile data. |