Disable periodic memory dumps when running memory benchmarks
commit983a6255a6d51368120c0e4eaf329b7b7892e770
authorpetrcermak <petrcermak@chromium.org>
Mon, 27 Jul 2015 10:37:53 +0000 (27 03:37 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jul 2015 10:39:03 +0000 (27 10:39 +0000)
tree6cb9e843a1f61fb792acfe7ba63eec32ef53e192
parent23b60b6dab3c44225aa56ea29ef0cfced9f583a8
Disable periodic memory dumps when running memory benchmarks

This patch modifies MemoryDumpManager to *not* start periodic memory
dumps when the --enable-memory-benchmarking command-line flag is
present. This is a temporary solution until periodic dumps can be
enabled/disabled via TraceConfig (see https://goo.gl/5Hj3o0).

This change is needed so that telemetry could use on-demand memory dumps
(rather than periodic dumps) to get more stable.

BUG=513692

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

Cr-Commit-Position: refs/heads/master@{#340448}
base/trace_event/memory_dump_manager.cc