CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2016
    Posts
    2

    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.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: C++ code to measure code coverage for each execution of a program.

    Sounds like you want a Profiler.

  3. #3
    Join Date
    Sep 2016
    Posts
    2

    Re: C++ code to measure code coverage for each execution of a program.

    Quote Originally Posted by GCDEF View Post
    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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured