Is there any way to profile a runtime program written in golang? In my case, kubelet shows steady increase in memory and I want to try memory profiling it.
use import _ "net/http/pprof"
in your application file and use go tool pprof
commands or web UI to profile your application.
reference -
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.