Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 700 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 700 Bytes

Mutex Profiling

Testing and Tracing allows us to see mutex profiles.

Running a Test Based Mutex Profile

We can get mutex profiles by running a test.

Generate a mutex profile from running the test.

$ go test -mutexprofile mutex.out

Run the pprof tool to view the mutex profile.

$ go tool pprof mutex.test mutex.out

Review the TestMutexProfile function.

$ list TestMutexProfile

Links

Mutex profile - Burcu Dogan

Code Review

Mutex Trace (Go Playground)


All material is licensed under the Apache License Version 2.0, January 2004.