I tried to play with go runtime to seamlessly add memory (bytes, objects, allocation calls) tracing into any arbitrary go code. Check it out in the repo https://github.com/1pkg/gotcha and in blog post https://1pkg.github.io/posts/lets_trace_goroutine_allocated_memory/.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ad7c156e-f1a5-4a4a-8503-9d3160cb05d4n%40googlegroups.com.