On Mon, Jul 29, 2024 at 12:53 PM Leah Stapleton <leahstapleton...@gmail.com> wrote: > > Hi, can anyone explain what the headers (in bold) refer to in mutex > profiles? Is it documented somewhere? Thank you > > > 871400731000 26738165 @ 0x81c8d94 0x81c8d93 0x81c88d7 0x8444386 0x82353a1 > # 0x81c8d93 runtime.unlock+0x4b3 /go pprof format > cyclesusr/local/go/src/runtime/lock_sema.go:103 > # 0x81c8d92 runtime.chansend+0x4b2 /usr/local/go/src/runtime/chan.go:228 > # 0x81c88d6 runtime.chansend1+0x16 /usr/local/go/src/runtime/chan.go:145 > # 0x8444385 main.contended.func1+0x65 /Users/mm/go/src/github.com/ > > 49297035 720 @ 0x8205ad7 0x8205ad6 0x8217091 0x8217087 0x82334da > # 0x8205ad6 runtime.unlock+0x156 /usr/local/go/src/runtime/lock_sema.go:103 > # 0x8205ad5 runtime.goschedImpl+0x155 /usr/local/go/src/runtime/proc.go:4059 > # 0x8217090 runtime.gopreempt_m+0x3d0 /usr/local/go/src/runtime/proc.go:4082 > # 0x8217086 runtime.newstack+0x3c6 /usr/local/go/src/runtime/stack.go:1070 > # 0x82334d9 runtime.morestack+0x79 /usr/local/go/src/runtime/asm_amd64.s:616
I'm not sure whether this format is documented anywhere. The first number is the approximate number of cycles accumulated for this stack trace. The second number is the approximate number of times we've seen this stack trace. Both numbers are scaled by the sampling probability. The remaining numbers, after the @, are the stack trace--you can see that they appear again, off by one, in the stack trace lines. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUjh7fQQvp4oJkTZ5A4mVX6Tmei-EuuS1nSjy1BSCDNQw%40mail.gmail.com.