From: Kostya Serebryany Date: Thu, 5 Nov 2015 01:19:42 +0000 (+0000) Subject: [libFuzzer] print a bit fewer lines X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=331a8c8a870f582385e659dc8785c7ba522136f5;p=oota-llvm.git [libFuzzer] print a bit fewer lines git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252123 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Fuzzer/FuzzerLoop.cpp b/lib/Fuzzer/FuzzerLoop.cpp index 64c567d83f7..22876232f8b 100644 --- a/lib/Fuzzer/FuzzerLoop.cpp +++ b/lib/Fuzzer/FuzzerLoop.cpp @@ -175,7 +175,9 @@ bool Fuzzer::RunOne(const Unit &U) { auto UnitStopTime = system_clock::now(); auto TimeOfUnit = duration_cast(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) { diff --git a/lib/Fuzzer/FuzzerUtil.cpp b/lib/Fuzzer/FuzzerUtil.cpp index 7a04898cf36..8d3480cf480 100644 --- a/lib/Fuzzer/FuzzerUtil.cpp +++ b/lib/Fuzzer/FuzzerUtil.cpp @@ -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;