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

Unified Diff: content/browser/memory/memory_coordinator_impl.cc

Issue 2752153002: memory coordinator: Change tracing event category (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | content/child/memory/child_memory_coordinator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_coordinator_impl.cc
diff --git a/content/browser/memory/memory_coordinator_impl.cc b/content/browser/memory/memory_coordinator_impl.cc
index 0e2cfa92443f2aaef59cf197bbc9ed930400b58c..acbb7620eb0557b80a5e05f48d9a7fae5318ae61 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -155,6 +155,10 @@ MemoryCoordinatorImpl::MemoryCoordinatorImpl(
kDefaultMinimumTransitionPeriodSeconds)) {
DCHECK(memory_monitor_.get());
base::MemoryCoordinatorProxy::SetMemoryCoordinator(this);
+
+ // Force the "memory_coordinator" category to show up in the trace viewer.
+ base::trace_event::TraceLog::GetCategoryGroupEnabled(
+ TRACE_DISABLED_BY_DEFAULT("memory_coordinator"));
}
MemoryCoordinatorImpl::~MemoryCoordinatorImpl() {
@@ -280,7 +284,7 @@ void MemoryCoordinatorImpl::UpdateConditionIfNeeded(
MemoryCondition prev_condition = memory_condition_;
memory_condition_ = next_condition;
- TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("memory-infra"),
+ TRACE_EVENT2(TRACE_DISABLED_BY_DEFAULT("memory_coordinator"),
"MemoryCoordinatorImpl::UpdateConditionIfNeeded", "prev",
MemoryConditionToString(prev_condition), "next",
MemoryConditionToString(next_condition));
« no previous file with comments | « no previous file | content/child/memory/child_memory_coordinator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698