Which is the best tool to analyse memory consumption for golang program?

I tried memory profiling using pprof, but the result is unsatisfactory (the result is not matching with benchmark test of the function), suggest me some tool by which i can get memory occupied for each function in golang program, Like example to find memory occupied by local cache.

Have you tried runtime.Lookup()?

Not yet, but do you have any example which is using runtime.Lookup() for calculation of memory for a map.

This may help - https://dlintw.github.io/gobyexample/public/memory-and-sizeof.html

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.