How to profile memory inside PartitionAlloc allocations?
135 views
Skip to first unread message
Aleks Totic
unread,
Mar 27, 2019, 3:02:34 AM3/27/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-dev
I am profiling Chrome's memory usage using tc_malloc heap profiler and pprof.
This only shows allocations in the default tc_malloc heap. All the good stuff, LayoutObjects, etc, are not shown.
Is there a way to profile PartitionAlloc partitions too? I am ok with turning off PartitionAlloc for profiling, I am not interested in speed, just raw memory usage.
Aleks
Vlad Tsyrklevich
unread,
Mar 27, 2019, 3:50:52 AM3/27/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ato...@google.com, Chromium-dev
Chrome's heap profiler uses base::PartitionAllocHooks to inspect
allocations. Depending on what you're doing you may be able to use the
Chrome's built-in heap profiling, use the same hooks, or you could
also try defining MEMORY_TOOL_REPLACES_ALLOCATOR for just
base/allocator/partition_allocator/ to have those allocations fall
through to malloc/free.