We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da69316 commit 0426a9dCopy full SHA for 0426a9d
main.go
@@ -378,6 +378,13 @@ func mainWithExitCode() flags.ExitCode {
378
}
379
log.Info("Attached tracer program")
380
381
+ if f.OffCPUThreshold > 0 {
382
+ if err := trc.StartOffCPUProfiling(); err != nil {
383
+ return flags.Failure("Failed to start off-cpu profiling: %v", err)
384
+ }
385
+ log.Printf("Enabled off-cpu profiling")
386
387
+
388
if f.Profiling.ProbabilisticThreshold < tracer.ProbabilisticThresholdMax {
389
trc.StartProbabilisticProfiling(mainCtx)
390
log.Printf("Enabled probabilistic profiling")
0 commit comments