SimonKagstrom / kcov

Code coverage tool for compiled programs, Python and Bash which uses debugging information to collect and report data without special compilation options
http://simonkagstrom.github.io/kcov/
GNU General Public License v2.0
709 stars 109 forks source link

Can it get coverage information in real time? #430

Closed HDLai closed 5 months ago

HDLai commented 5 months ago

Can it obtain code coverage information in real time without ending the program?

SimonKagstrom commented 5 months ago

Hi!

Yes, to some extent. You can supply the --output-interval=MS to specify the write interval in milliseconds. It by default outputs every 5 seconds, and the write operation is somewhat heavy, so it's not advisable to do it too often.