More powerful Go execution traces - The Go Programming Language
The Go Blog
The runtime/trace package contains a powerful tool for understanding and
troubleshooting Go programs.
The functionality within allows one to produce a trace of each goroutine’s execution over some
time period.
With the go tool trace command (or the excellent open source
gotraceui tool), one may then visualize and explore the data within these
traces.
The magic of a trace is that it can easily reveal things about a program that are hard to see in
other ways.
For example, a concurrency...
Read more at go.dev