Skip to content

Commit 620ca03

Browse files
committed
revert
1 parent 8029e29 commit 620ca03

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/metrics/metrics.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,8 +1497,7 @@ func runPerf(myTarget target.Target, noRoot bool, processes []Process, cmd *exec
14971497
done = true // exit the loop
14981498
case exitCode := <-exitcodeChannel: // when perf exits, the exit code comes to this channel
14991499
slog.Debug("perf exited", slog.Int("exit code", exitCode))
1500-
time.Sleep(100 * time.Millisecond) // wait long enough to ensure that the timer expires so that the last set of events is processed
1501-
done = true // exit the loop
1500+
done = true // exit the loop
15021501
case line := <-stderrChannel: // perf output comes in on this channel, one line at a time
15031502
t1.Stop()
15041503
t1.Reset(100 * time.Millisecond) // 100ms is somewhat arbitrary, but seems to work

0 commit comments

Comments
 (0)