about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-03-22 18:27:04 +0100
committervan Hauser <vh@thc.org>2020-03-22 18:27:04 +0100
commit5b646818670c7f8a7a22503883a37c758d7acd64 (patch)
treecb8935593f4c451bae09ef20c3fd8f2da7aa7c3e /src
parentaac7c7d75d9e6657ba6ac4a6267660f15745ec92 (diff)
downloadafl++-5b646818670c7f8a7a22503883a37c758d7acd64.tar.gz
a little bit more performance
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index cc22fd5c..550bd255 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -1051,9 +1051,9 @@ int main(int argc, char **argv_orig, char **envp) {
 
       }
 
-      show_stats(afl);
+      //show_stats(afl);
 
-      if (afl->not_on_tty) {
+      if (unlikely(afl->not_on_tty)) {
 
         ACTF("Entering queue cycle %llu.", afl->queue_cycle);
         fflush(stdout);
@@ -1124,7 +1124,7 @@ int main(int argc, char **argv_orig, char **envp) {
 
   }
 
-  if (afl->queue_cur) show_stats(afl);
+  //if (afl->queue_cur) show_stats(afl);
 
   /*
    * ATTENTION - the following 10 lines were copied from a PR to Google's afl
@@ -1149,12 +1149,12 @@ int main(int argc, char **argv_orig, char **envp) {
   }
 
   write_bitmap(afl);
-  write_stats_file(afl, 0, 0, 0);
   maybe_update_plot_file(afl, 0, 0);
   save_auto(afl);
 
 stop_fuzzing:
 
+  write_stats_file(afl, 0, 0, 0);
   afl->force_ui_update = 1;  // ensure the screen is reprinted
   show_stats(afl);           // print the screen one last time