[go-nuts] Re: memory profiler for benchmark test reports 0s across the board

2016-09-20 Thread 'Ethan Kennedy' via golang-nuts
Dave, Thank you for the tip. That does at least show me some measurements of allocations. I guess I was hoping to do some more fine-grained analysis, if only as an educational exercise. So, I tried using the runtime/pprof package to write a heap profile at a specific point in my program and

[go-nuts] memory profiler for benchmark test reports 0s across the board

2016-09-19 Thread 'Ethan Kennedy' via golang-nuts
I've got a function that reads `map[string]interface{}` off a channel, processing each one until that channel is closed. Processing each `map` entails allocating some slices and other data structures, grouping by like keys, etc. I've got a benchmark that reads 1 rows of JSON from a file,