Go: Discovery of the Trace Package
Published in
5 min readFeb 12, 2020
ℹ️ This article is based on Go 1.13.
Go provides us a tool to enable tracing during the runtime and get a detailed view of the execution of our program. This tool can be enabled by flag -trace
with the tests, frompprof
to get live tracing, or anywhere in our code thanks to the trace
package. This tool can be even more powerful since you can enhance it with your own traces. Let’s review how it works.