Add aggregated memory histograms.
authorulan <ulan@chromium.org>
Thu, 7 May 2015 10:03:35 +0000 (03:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 7 May 2015 10:03:41 +0000 (10:03 +0000)
commitd77839fd0182d01e6d7864f0312d2b194deea2f0
treefb482d74a3046f771cd415284a6daea40d7596b0
parentf8db4327ade90715649d4571c5199f306fae4dff
Add aggregated memory histograms.

This introduces V8.MemoryHeapCommitted and V8.MemoryHeapUsed histograms.

In contrast to the existing memory histograms, the new histograms are uniform in time, i.e. their samples happen at regular time intervals. The --histogram-interval specifies the length of the interval.

We implement this by linearly interpolating memory stats between GC and idle notification events.

BUG=chromium:485472
LOG=NO

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

Cr-Commit-Position: refs/heads/master@{#28292}
src/counters.cc
src/counters.h
src/flag-definitions.h
src/heap/gc-tracer.cc
src/heap/heap.cc
src/heap/heap.h
test/unittests/counters-unittest.cc [new file with mode: 0644]
test/unittests/unittests.gyp