• Dmitriy Vyukov's avatar
    runtime: fix memory profiler · 8f47c837
    Dmitriy Vyukov authored
    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 #8867.
    
    LGTM=rsc
    R=rsc
    CC=golang-codereviews
    https://golang.org/cl/148710043
    8f47c837
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...