GoLand
 
Get GoLand

Profiling for tests

Last modified: 26 May 2024

Profiling is an analysis of your program performance. During profiling, you see the CPU and memory usage, the frequency and duration of function and method calls. This information might be helpful if you want to optimize your program performance.

GoLand collects and visualizes CPU profiles, traces, and heap profiles for your Go tests and benchmarks. To collect all the necessary data, GoLand uses the pprof package. GoLand includes four profilers that you can run from the user interface: CPU, memory, blocking (contention), and mutex.