diff --git a/probe/main.go b/probe/main.go index db0c24971d..40de9fdb2e 100644 --- a/probe/main.go +++ b/probe/main.go @@ -179,6 +179,7 @@ func main() { r = report.MakeReport() case <-spyTick: + start := time.Now() if err := processCache.Update(); err != nil { log.Printf("error reading processes: %v", err) } @@ -191,6 +192,10 @@ func main() { } r = Apply(r, taggers) + if elapsed := time.Now().Sub(start); elapsed > *spyInterval { + log.Printf("Warning: Took %s to generate report - longer than spyInterval of %s.", elapsed, *spyInterval) + } + case <-quit: return }