purecov_save_data

Syntax: int purecov_save_data (void)

This function takes the accumulated counts at the time of the call and writes or merges them into the counts file. It then clears the counts to zero.

You can use this function with a long-running program to checkpoint coverage data incrementally. Alternatively you can use it to distribute counts for different phases of a program's run to different files. To do this, use the purecov_set_filename API function to specify file names that include a sequence number.

PureCoverage by default saves data to .pcv files, but you can use the -view-file-format option to save data instead to .cfy files, or to both .pcv and .cfy files.