Descriptionruntime: fix memory profiler
There are 3 issues:
1. Skip argument of callers is off by 3,
so that all allocations are deep inside of memory profiler.
2. Memory profiling statistics are not updated after runtime.GC.
3. Testing package does not update memory profiling statistics
before capturing the profile.
Also add an end-to-end test.
Fixes issue 8867.
Patch Set 1 #Patch Set 2 : diff -r a65c023d4ed41be1348d441682a45ba331da8762 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r a65c023d4ed41be1348d441682a45ba331da8762 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r a65c023d4ed41be1348d441682a45ba331da8762 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r 8c3f3337f7696bfcb95ab978b5c2782b94431842 https://dvyukov%40google.com@code.google.com/p/go/ #
MessagesTotal messages: 5
|