Open dominikh opened 10 months ago
@dominikh hey, may I know which command you used to generate above trace output? This doesn't look like one trace.out from https://pkg.go.dev/runtime/trace.
@smiletrl This is with Go 1.22's runtime/trace and go tool trace
.
@dominikh hey, sorry for more naive questions. I tried 1.22 go tool trace trace.out
, which generates similar graph output in web browser. How can I generate output like yours?
M=1125110 P=0 G=1 RangeBegin Time=704285462306048 Name="GC incremental sweep" Scope=Proc(0) Stack= runtime.traceLocker.GCSweepSpan @ 0x462575 /home/dominikh/prj/go/src/runtime/trace2runtime.go:352 runtime.(*sweepLocked).sweep @ 0x428584 /home/dominikh/prj/go/src/runtime/mgcsweep.go:521 runtime.(*mcentral).cacheSpan @ 0x418ebc /home/dominikh/prj/go/src/runtime/mcentral.go:147 runtime.(*mcache).refill @ 0x4185d2 /home/dominikh/prj/go/src/runtime/mcache.go:182 runtime.(*mcache).nextFree @ 0x40f644 /home/dominikh/prj/go/src/runtime/malloc.go:948 runtime.mallocgc @ 0x40fc64 /home/dominikh/prj/go/src/runtime/malloc.go:1149 runtime.newobject @ 0x410204 /home/dominikh/prj/go/src/runtime/malloc.go:1390 [...]
For tracker in stack
3 kinds of events in my trace that include the tracer in the stack when they probably shouldn't:
Do you mean above three events should not be tracked at all? Or you mean just part of trace log is the tracer in the stack
?
Do you have some code samples that I can reproduce this issue?
Thanks!
I've found the following 3 kinds of events in my trace that include the tracer in the stack when they probably shouldn't:
/cc @mknyszek