Reland of: components/metrics: Add runtime memory leak detector
Reverted because it was failing some buildbots. The fixes have
been squashed into this one but they can be seen here as separate
patches.
http://crrev.com/1468873002
http://crrev.com/1471623003
==== Original commit message ====
This patch adds heuristic-based memory leak detector. Unlike
traditional leak detectors like valgrind, it doesn't wait until
a process terminates to check for leftover allocations. Instead,
it analyzes allocation patterns over time.
This code is not thread-safe. It is up to the caller of this code
to ensure thread safety.
BUG=
382705
Signed-off-by: Simon Que <
sque@chromium.org>
Committed:
https://crrev.com/096af097febf8a07d1323593e8cf94e83467ba71
Cr-Commit-Position: refs/heads/master@{#363836}