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

Unified Diff: base/trace_event/memory_peak_detector.h

Issue 2799023002: memory-infra: Switch to MemoryPeakDetector and simplify MemoryDumpScheduler (Closed)
Patch Set: rebase bind -> bindonce 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
« no previous file with comments | « base/trace_event/memory_dump_scheduler_unittest.cc ('k') | base/trace_event/memory_peak_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d2da9ca0c9985b028f00f6e429dcf545d63757ba..c08d91bd8a63dd7bb9320d32f46614824d3acdd8 100644
--- a/base/trace_event/memory_peak_detector.h
+++ b/base/trace_event/memory_peak_detector.h
@@ -47,7 +47,12 @@ class BASE_EXPORT MemoryPeakDetector {
};
// Peak detector configuration, passed to Start().
- struct Config {
+ struct BASE_EXPORT 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;
« no previous file with comments | « base/trace_event/memory_dump_scheduler_unittest.cc ('k') | base/trace_event/memory_peak_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698