diff options
author | van Hauser <vh@thc.org> | 2020-05-07 14:09:58 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-05-07 14:09:58 +0200 |
commit | 02887dc1645f3d4114905d22240a062098314e7b (patch) | |
tree | b5230bb88efc5afa2bcf91722e6678371c31ffd1 /src/afl-fuzz.c | |
parent | d048af11cd43caf9fc9a8dc2e39a41b33600448f (diff) | |
download | afl++-02887dc1645f3d4114905d22240a062098314e7b.tar.gz |
fix static and profiling compilation and add profiling calculation
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 5920f5c0..64973260 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -27,6 +27,10 @@ #include "cmplog.h" #include <limits.h> +#ifdef PROFILING +extern u64 time_spent_working; +#endif + static u8 *get_libradamsa_path(u8 *own_loc) { u8 *tmp, *cp, *rsl, *own_copy; @@ -1351,6 +1355,13 @@ stop_fuzzing: } +#ifdef PROFILING + SAYF(cYEL "[!] " cRST + "Profiling information: %llu ms total work, %llu ns/run\n", + time_spent_working / 1000000, + time_spent_working / afl->fsrv.total_execs); +#endif + fclose(afl->fsrv.plot_file); destroy_queue(afl); destroy_extras(afl); |