/debug/pprof/
Types of profiles available:
full thread stack dump
Profile Descriptions:
cmdline:
The command line invocation of the current program
thread:
Stack traces of all current threads
heap:
A sampling of memory allocations of live objects. You can specify the gc GET parameter to run GC before taking the heap sample.
profile:
CPU profile. You can specify the duration in the seconds GET parameter. After you get the profile file, use the go tool pprof command to investigate the profile.
wall:
Wall-clock profile. You can specify the duration in the seconds GET parameter. After you get the profile file, use the go tool trace command to investigate the profile.