[tracing] API to express memory suballocation and cross-process sharing
commit3b4bd6b09d79e896d4ae51768d44a8c15898577e
authorprimiano <primiano@chromium.org>
Wed, 3 Jun 2015 09:52:52 +0000 (3 02:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 3 Jun 2015 09:53:30 +0000 (3 09:53 +0000)
treec9087cadd83a93c6b376e13636110a054b7d0d35
parente4854fd5e9eacf57c418ae8b6346bdbee2fa8bc8
[tracing] API to express memory suballocation and cross-process sharing

- Add a {Get,Create}SharedGlobalAllocatorDump to create shared nodes
  that can be referenced by several processes (concrete use case:
  reporting different details about the same shared memory segment
  from different processes)
- Add a utility AddSuballocation method to express suballocation.
  Under the hoods it creates an anonymous node on the target allocator
  and establishes an ownership relationship with that.

For more details and use cases see the design doc attached to the bug.

BUG=492102

Review URL: https://codereview.chromium.org/1156023007

Cr-Commit-Position: refs/heads/master@{#332581}
base/trace_event/process_memory_dump.cc
base/trace_event/process_memory_dump.h
base/trace_event/process_memory_dump_unittest.cc