Description[tracing] Fix resident size of malloc dump provider when tcmalloc is used
When tcmalloc is used the dump provider only reports the total
allocated objects size as the resident size. but in reality tcmalloc
uses more resident memory than the allocated objects size since it has
thread cache and free list memory that are resident. It also has malloc
meta data that is resident. This CL changes the resident size of malloc
to include tcmalloc's page heap free list sizes, and memory used by
central, transfer and thread caches.
To use GetNumericProperty function from base/trace_event, new api is
added in allocator_extension.
It still does not include the malloc metadata bytes since it is not
returned by the tcmalloc api. So this should be added in tcmalloc.
BUG=546491
Committed: https://crrev.com/0943409e7b60ead1aa0b4f4ef8b4de5617b81917
Cr-Commit-Position: refs/heads/master@{#356162}
Patch Set 1 #Patch Set 2 : Use GetStats function. #Patch Set 3 : Clean up. #Patch Set 4 : Back to using GetNumericProperty. #
Total comments: 4
Patch Set 5 : Adding comment and include. #Patch Set 6 : Use allocator_extension_thunks #Patch Set 7 : Nit. #
Dependent Patchsets: Messages
Total messages: 29 (14 generated)
|