]> Cypherpunks repositories - gostls13.git/commit
runtime: fix mem profile when both large and small objects are allocated at the same...
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 14 Feb 2014 09:20:41 +0000 (13:20 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 14 Feb 2014 09:20:41 +0000 (13:20 +0400)
commite71d147750dc4dce115c5614fc96877aa08da596
treef2dc98b1eae9ebb13e7c4b530fdc94432bc947ab
parentf0023cf1d57aabd8c0aa30a65eef9ec7de041eb6
runtime: fix mem profile when both large and small objects are allocated at the same stack
Currently small and large (size>rate) objects are merged into a single entry.
But rate adjusting is required only for small objects.
As a result pprof either incorrectly adjusts large objects
or does not adjust small objects.
With this change objects of different sizes are stored in different buckets.

LGTM=rsc
R=golang-codereviews, gobot, rsc
CC=golang-codereviews
https://golang.org/cl/59220049
src/pkg/runtime/mprof.goc