Tracing Our Tool
Learn how to trace our tool.
We'll cover the following
Overview
The Go profiler is a great tool to help you understand how your program is spending CPU time. However, sometimes a program is spending time waiting for resources to be available. For example, it could be spending time waiting for a network connection or a file to be read. To help you understand those cases, Go provides another tool: the tracer.
Similar to the profiler, the tracer is also integrated with the testing and benchmarking features through the go test
tool. Run the benchmarks again with the -trace
option to create a trace:
Get hands-on with 1200+ tech skills courses.