How to get .gcda (gcov)/ coverage if the test run is infinitive or the test run is long and I would like to get temporary results? For example, I am interested in test coverage after 1 minute of execution.
gcc -I${PWD} -fprofile-arcs -O0 --coverage program.c -o test-coverage
$ ./test-coverage
Terminated: 15
If I terminate the process then .gcda wouldn't be created. Is any way to restore or get temporary values before process termination?