diff options
author | vanhauser-thc <vh@thc.org> | 2022-12-20 13:36:56 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-12-20 13:36:56 +0100 |
commit | 0165ca8c6c485e36fe8e5fc6182ebeba2100932b (patch) | |
tree | ab66c723be9ccadde42329cc85de1c141f8bddcd /src/afl-fuzz-stats.c | |
parent | 96f05c7f6978fbc7648c0ae86b3827e0f9e6d467 (diff) | |
download | afl++-0165ca8c6c485e36fe8e5fc6182ebeba2100932b.tar.gz |
hide queue introspection behind define
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r-- | src/afl-fuzz-stats.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index ac9ad4db..87e149de 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -365,6 +365,7 @@ void write_stats_file(afl_state_t *afl, u32 t_bytes, double bitmap_cvg, } +#ifdef INTROSPECTION void write_queue_stats(afl_state_t *afl) { FILE *f; @@ -395,6 +396,8 @@ void write_queue_stats(afl_state_t *afl) { } +#endif + /* Update the plot file if there is a reason to. */ void maybe_update_plot_file(afl_state_t *afl, u32 t_bytes, double bitmap_cvg, @@ -649,7 +652,9 @@ void show_stats_normal(afl_state_t *afl) { cur_ms - afl->stats_last_queue_ms > QUEUE_UPDATE_SEC * 1000)) { afl->stats_last_queue_ms = cur_ms; +#ifdef INTROSPECTION write_queue_stats(afl); +#endif } @@ -1445,7 +1450,9 @@ void show_stats_pizza(afl_state_t *afl) { cur_ms - afl->stats_last_queue_ms > QUEUE_UPDATE_SEC * 1000)) { afl->stats_last_queue_ms = cur_ms; +#ifdef INTROSPECTION write_queue_stats(afl); +#endif } |