forked from rohanpadhye/JQF
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Record branch probe coverage in plot_data
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -421,7 +421,7 @@ private void prepareOutputDirectory() throws IOException { | |
|
||
protected String getStatNames() { | ||
return "# unix_time, cycles_done, cur_path, paths_total, pending_total, " + | ||
"pending_favs, map_size, unique_crashes, unique_hangs, max_depth, execs_per_sec, valid_inputs, invalid_inputs, valid_cov"; | ||
"pending_favs, map_size, unique_crashes, unique_hangs, max_depth, execs_per_sec, valid_inputs, invalid_inputs, valid_cov, all_cov, valid_cov"; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jon-bell
Author
Owner
|
||
} | ||
|
||
/* Writes a line of text to a given log file. */ | ||
|
@@ -520,10 +520,10 @@ protected void displayStats(boolean force) { | |
} | ||
} | ||
|
||
String plotData = String.format("%d, %d, %d, %d, %d, %d, %.2f%%, %d, %d, %d, %.2f, %d, %d, %.2f%%", | ||
String plotData = String.format("%d, %d, %d, %d, %d, %d, %.2f%%, %d, %d, %d, %.2f, %d, %d, %.2f%%, %d, %d", | ||
TimeUnit.MILLISECONDS.toSeconds(now.getTime()), cyclesCompleted, currentParentInputIdx, | ||
numSavedInputs, 0, 0, nonZeroFraction, uniqueFailures.size(), 0, 0, intervalExecsPerSecDouble, | ||
numValid, numTrials-numValid, nonZeroValidFraction); | ||
numValid, numTrials-numValid, nonZeroValidFraction, nonZeroCount, nonZeroValidCount); | ||
appendLineToFile(statsFile, plotData); | ||
} | ||
|
||
|
There seem to be two columns named
valid_cov
here. Maybe rename the third-from-last column tovalid_map_size
, because it's actually a fraction in AFL-compatible format rather than a meaningful coverage number.