[tracing] Expose getMemoryAllocatorDump to blink
commit172a2a72bff187c2cd9d832d6e5d48168831a8da
authorprimiano <primiano@chromium.org>
Mon, 1 Jun 2015 15:46:40 +0000 (1 08:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Jun 2015 15:47:16 +0000 (1 15:47 +0000)
tree1b2c408c670a795a5178856878a73c8b0881a98b
parenteeb0a4cd433fc67c5fb3e0eecb68757d096eda58
[tracing] Expose getMemoryAllocatorDump to blink

This CL exposes a getMemoryAllocatorDump(name) to blink.
The code in chromium already had the API, now it is required in blink
for the BlinkGC dumper.
The plumbing code just keeps a reverse index (MAD -> WMAD) so that all
the logic about names remains in control of base/.
See crrev.com/1148683007 for the matching change in blink.

BUG=480500

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

Cr-Commit-Position: refs/heads/master@{#332194}
content/child/web_process_memory_dump_impl.cc
content/child/web_process_memory_dump_impl.h
content/child/web_process_memory_dump_impl_unittest.cc