[tracing] Increase rate of MemoryInfra dumps and throttle mmaps
commitc8a60566c207f9e185212c6c92227e2425550efb
authorprimiano <primiano@chromium.org>
Fri, 12 Jun 2015 20:38:20 +0000 (12 13:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Jun 2015 20:39:04 +0000 (12 20:39 +0000)
treecc75cf7187d8e2921ca8249b71d3cbd9e70a0e47
parent21a871434dc7ed23d4cd97f4b30548cb3d1cec84
[tracing] Increase rate of MemoryInfra dumps and throttle mmaps

As a short-term improvement of the memory profiling in tracing,
this CL is increasing the frequency of memory dumps and throttling
down the rate of mmap dumps (which are really heavy and expensive).
Furthermore this CL adds some small performance optimization to the
memory dumping fast paths and fixes a double accounting issue in the
TraceEventMemoryOverhead class.

BUG=495628

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

Cr-Commit-Position: refs/heads/master@{#334230}
base/trace_event/memory_allocator_dump.cc
base/trace_event/memory_allocator_dump.h
base/trace_event/memory_dump_manager.cc
base/trace_event/memory_dump_request_args.h
base/trace_event/trace_event_argument.cc
base/trace_event/trace_event_memory_overhead.cc
base/trace_event/trace_event_memory_overhead.h