guide: add unlock calls to mutex profile example

This commit is contained in:
Nick Ripley 2022-01-18 07:43:33 -05:00
parent 74a37d7451
commit 6db2ae7c8d

View file

@ -451,9 +451,9 @@ The resulting mutex profile will essentially be a table of stack traces formatte
|stack trace|contentions/count|delay/nanoseconds| |stack trace|contentions/count|delay/nanoseconds|
|-|-|-| |-|-|-|
|main;foo|5|867549417| |main;foo;sync.(*Mutex).Unlock|5|867549417|
|main;foo;bar|3|453510869| |main;bar;baz;sync.(*Mutex).Unlock|3|453510869|
|main;foobar|4|5351086| |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. ⚠️ See the section on [block vs mutex profiles](#block-vs-mutex-profiler) for the difference between the two profiles.