mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
fix static and profiling compilation and add profiling calculation
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user