C++ code to measure code coverage for each execution of a program.
Any help with a c++ code that calculates the percentage code coverage of a test program each time it is executed? The test program is executed multiple times each time with a different test input, and the code coverage is output to a variable after each execution.
I know there are extremely good programmers here to help.
Re: C++ code to measure code coverage for each execution of a program.
Sounds like you want a Profiler.
Re: C++ code to measure code coverage for each execution of a program.
Quote:
Originally Posted by
GCDEF
Sounds like you want a Profiler.
A profiler? Ok. Because the value of coverage output will be used to generate the next input to the test program. In order to decrease time cost of profiling, only the percentage branch coverage is required as output. Any suggestions on a c++ profiler that can be modified to provide only the percentage branch coverage as output anytime the test program is being executed?