¡@

Home 

c++ Programming Glossary: gcov

Dead code detection in legacy C/C++ project

http://stackoverflow.com/questions/229069/dead-code-detection-in-legacy-c-c-project

in your code. A popular tool for the gcc toolchain is gcov together with the graphical frontend lcov http ltp.sourceforge.net.. coverage lcov.php . If you use gcc you can compile with gcov support which is enabled by the ' coverage' flag. Next run your.. Next run your application or run your test suite with this gcov enabled build. Basically gcc will emit some extra files during..

Finding “dead code” in a large C++ legacy application

http://stackoverflow.com/questions/2380153/finding-dead-code-in-a-large-c-legacy-application

code Note I'm not talking about test coverage tool like gcov. How do you find dead code in your project c visual c legacy..

Using GCC to find unreachable functions (“dead code”)

http://stackoverflow.com/questions/4195494/using-gcc-to-find-unreachable-functions-dead-code

to handle. Finally i decided that using GCC tools g gprof gcov etc. is the safest option although i couldn't figure out how..

How can I know which parts in the code are never used?

http://stackoverflow.com/questions/4813947/how-can-i-know-which-parts-in-the-code-are-never-used

heuristic use a code coverage tool in the GNU chain it's gcov . Note that specific flags should be passed during compilation..

General strategies for memory/speed problems

http://stackoverflow.com/questions/8860603/general-strategies-for-memory-speed-problems

The GNU profiler gprof The GNU test coverage profiler gcov oprofile They've all got their strengths. Random Pausing is.. it can be hard to interpret the results. 'gprof' and 'gcov' are basically useless on multithreaded programs. Callgrind.. cumulative seconds to run... For my very simple example gcov is a little less instructive. But here's what it happens to..