[tracing] Reland of Throttle rate of heavy dumps and support to request light/heavy dumps

Reason for revert: telemetry test failure.

Fix: This CL adds the missing IPC macros for passing the struct which
caused the test failure.

Original message:

Currently all the dump providers dump detailed dumps every periodic
dump. This makes the trace files huge. So, this CL throttles down the
rate of heavy dumps of all the dump providers and removes temporary
hacks. Along with this, this CL also adds support to request light and
heavy dumps by adding MemoryDumpArgs as param to RequestGlobalDump()

TBR=pfeldman@chromium.org, nduca@chromium.org
BUG=499731

Committed: https://crrev.com/33f2d3a5b276b70040adfd21edf364bd666b0aa2
Cr-Commit-Position: refs/heads/master@{#342145}

patch from issue 1267963002 at patchset 80001 (http://crrev.com/1267963002#ps80001)

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

Cr-Commit-Position: refs/heads/master@{#342436}


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