Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Unified Diff: base/trace_event/memory_peak_detector.h

Issue 2799023002: memory-infra: Switch to MemoryPeakDetector and simplify MemoryDumpScheduler (Closed)
Patch Set: ssid comments + add more tests Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/trace_event/memory_peak_detector.h
diff --git a/base/trace_event/memory_peak_detector.h b/base/trace_event/memory_peak_detector.h
index 8de615e64bdff165e5fb6d917d1ecfe00c87208a..2afb0a570a98a56251694aed71df3aca24d928c6 100644
--- a/base/trace_event/memory_peak_detector.h
+++ b/base/trace_event/memory_peak_detector.h
@@ -48,6 +48,11 @@ class BASE_EXPORT MemoryPeakDetector {
// Peak detector configuration, passed to Start().
struct Config {
+ Config();
+ Config(uint32_t polling_interval_ms,
+ uint32_t min_time_between_peaks_ms,
+ bool enable_verbose_poll_tracing);
+
// The rate at which memory will be polled. Polls will happen on the task
// runner passed to Setup().
uint32_t polling_interval_ms;

Powered by Google App Engine
This is Rietveld 408576698