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

Unified Diff: base/trace_event/memory_dump_session_state.h

Issue 2537363003: [memory-infra] Add support for polling memory totals in MemoryDumpManager (Closed)
Patch Set: nits. Created 4 years 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_provider.h ('k') | base/trace_event/memory_dump_session_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/memory_dump_session_state.h
diff --git a/base/trace_event/memory_dump_session_state.h b/base/trace_event/memory_dump_session_state.h
index f199ec1a2f9c9e8a07458366924996763fd0674c..29a2da9b9f5500061fb6f636c27984fdc4a41d6a 100644
--- a/base/trace_event/memory_dump_session_state.h
+++ b/base/trace_event/memory_dump_session_state.h
@@ -46,6 +46,8 @@ class BASE_EXPORT MemoryDumpSessionState
void SetMemoryDumpConfig(const TraceConfig::MemoryDumpConfig& config);
+ bool is_polling_enabled() { return is_polling_enabled_; }
+
private:
friend class RefCountedThreadSafe<MemoryDumpSessionState>;
~MemoryDumpSessionState();
@@ -61,6 +63,9 @@ class BASE_EXPORT MemoryDumpSessionState
// The memory dump config, copied at the time when the tracing session was
// started.
TraceConfig::MemoryDumpConfig memory_dump_config_;
+
+ // True if memory polling is enabled by the config in the tracing session.
+ bool is_polling_enabled_;
};
} // namespace trace_event
« no previous file with comments | « base/trace_event/memory_dump_provider.h ('k') | base/trace_event/memory_dump_session_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698