[tracing] Fix MemoryDumpManager periodic scheduler and improve tests

This a cleanup CL in preparation of next changes to memory-infra.
- Add much more coverage to the TraceConfig-related tests as this is
  very critical to avoid regressions in either the chrome://tracing
  UI and telemetry w.r.t. periodic dumps.
- Refactor the tests to use sane and readable in-line expectations
  instead of the awkward back and forths between test fixtures
  and MockDumpProvvider.
- Minor fix in the loogic which schedules periodic dumps in the
  MemoryDumpManager. If ligh_period=1ms and heavy_period=4ms,
  the sequence sholud be HLLLHLLL, not HLLLLHLLLL as it was
  before this change.
- Normalize the "virtual_size" column in the malloc dump provider.

BUG=518823,499731

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

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


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