mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2026-06-21 00:46:51 +08:00
guide: add unlock calls to mutex profile example
This commit is contained in:
parent
74a37d7451
commit
6db2ae7c8d
1 changed files with 3 additions and 3 deletions
|
|
@ -451,9 +451,9 @@ The resulting mutex profile will essentially be a table of stack traces formatte
|
|||
|
||||
|stack trace|contentions/count|delay/nanoseconds|
|
||||
|-|-|-|
|
||||
|main;foo|5|867549417|
|
||||
|main;foo;bar|3|453510869|
|
||||
|main;foobar|4|5351086|
|
||||
|main;foo;sync.(*Mutex).Unlock|5|867549417|
|
||||
|main;bar;baz;sync.(*Mutex).Unlock|3|453510869|
|
||||
|main;foobar;sync.(*RWMutex).RUnlock|4|5351086|
|
||||
|
||||
⚠️ See the section on [block vs mutex profiles](#block-vs-mutex-profiler) for the difference between the two profiles.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue