Add PartitionAlloc to memlog

Desktop / Chromium - Brett Wilson [chromium.org] - 11 September 2017 01:30 EDT

Hooks PartitionAlloc and sends allocator type and context information across the pipe to the profiling process.

The profiling process does not currently use this information: this will be hooked up in a later pass.

Change-Id: Ib2791f4c081109c5445fbe57e8cc45d5a05e3844 Reviewed-on: https://chromium-review.googlesource.com/656437 Commit-Queue: Brett Wilson

a852ebd Add PartitionAlloc to memlog
.../partition_allocator/partition_alloc.h | 10 ++++-
.../profiling_host/profiling_process_host.cc | 20 ++++++---
chrome/common/profiling/memlog_allocator_shim.cc | 52 +++++++++++++++++-----
chrome/common/profiling/memlog_allocator_shim.h | 10 ++++-
chrome/common/profiling/memlog_stream.h | 20 +++++++--
chrome/profiling/allocation_tracker.cc | 4 +-
chrome/profiling/allocation_tracker.h | 3 +-
chrome/profiling/memlog_receiver.h | 3 +-
chrome/profiling/memlog_stream_parser.cc | 18 ++++++--
chrome/profiling/memlog_stream_parser_unittest.cc | 45 +++++++++++++++----
10 files changed, 147 insertions(+), 38 deletions(-)

Upstream: git.chromium.org


  • Share