I am using gocraft/web
in a project and am trying to debug some high memory usage. gocraft/web
uses reflection to call handlers. I've set up the net/http/pprof
profiler which works very well, but the largest block of memory, and the one that I am iterested in, only shows reflect.Value.call
as the function. That's not very helpful.
How can I get around the fact that gocraft/web
is using reflection and dig deeper into the memory profile?
Here's an example of the profile output I am seeing: