memory-infra: split up serialization of process memory dumps

Split the code which adds PMDs to traces into two code paths. The
current code path will just add allocator dumps and the new code path
will just add heap dumps in FinishAsyncProcessDump.

This is to allow for moving addition of allocator dumps to traces from
each process into the memory instrumentation service.

Note for perf sheriffs
----------------------
If a memory regression shows across the board,
this CL might be responsible

Bug: 768373
Change-Id: Ieca61fe13c84a1818bf28928d46e77f18c77287d
Reviewed-on: https://chromium-review.googlesource.com/707067
Reviewed-by: Hector Dearman <hjd@chromium.org>
Reviewed-by: Primiano Tucci <primiano@chromium.org>
Commit-Queue: Lalit Maganti <lalitm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#507696}

CrOS-Libchrome-Original-Commit: dc65082398720d85e8c6c9fe9079b8445ebd18a2
5 files changed
tree: aba4143a7dedb27027f78a62f0a53f4af91b3afa
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/