Q:golang
When you use `go tool pprof` get heap data, profile is empty.app
A:debug
The default sampling rate is 1 sample per 512KB of allocated memory.orm
So If you application use little memory, the profiling can't sampling any data.blog
You can change runtime.MemProfileRate to reduce sampling rate.get
The easy way is add Environment Variables GODEBUG="memprofilerate=1", before run you application.it
[via]io
[via]form
[via]performance