[libFuzzer] print a bit fewer lines
authorKostya Serebryany <kcc@google.com>
Thu, 5 Nov 2015 01:19:42 +0000 (01:19 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 5 Nov 2015 01:19:42 +0000 (01:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252123 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerLoop.cpp
lib/Fuzzer/FuzzerUtil.cpp

index 64c567d83f7a93eaa44a2a6b465febfd0d24564a..22876232f8b347d543e14e79b3138d81197a06d0 100644 (file)
@@ -175,7 +175,9 @@ bool Fuzzer::RunOne(const Unit &U) {
   auto UnitStopTime = system_clock::now();
   auto TimeOfUnit =
       duration_cast<seconds>(UnitStopTime - UnitStartTime).count();
-  if (!(TotalNumberOfRuns & (TotalNumberOfRuns - 1)) && Options.Verbosity)
+  if (!(TotalNumberOfRuns & (TotalNumberOfRuns - 1))
+      && secondsSinceProcessStartUp() >= 2
+      && Options.Verbosity)
     PrintStats("pulse ");
   if (TimeOfUnit > TimeOfLongestUnitInSeconds &&
       TimeOfUnit >= Options.ReportSlowUnits) {
index 7a04898cf3637ce86d14e3e179aecc6bb2e2806b..8d3480cf48074a7755d287e7713008672f40f39e 100644 (file)
@@ -52,7 +52,6 @@ static void AlarmHandler(int, siginfo_t *, void *) {
 
 void SetTimer(int Seconds) {
   struct itimerval T {{Seconds, 0}, {Seconds, 0}};
-  Printf("SetTimer %d\n", Seconds);
   int Res = setitimer(ITIMER_REAL, &T, nullptr);
   assert(Res == 0);
   struct sigaction sigact;