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 5fa4ea4b3b0ed221efb56ecd509975750888fd47..776ce283100a477c4979ead20a61df487522134a 100644 |
--- a/content/browser/memory/memory_coordinator_impl.cc |
+++ b/content/browser/memory/memory_coordinator_impl.cc |
@@ -5,6 +5,7 @@ |
#include "content/browser/memory/memory_coordinator_impl.h" |
#include "base/threading/thread_task_runner_handle.h" |
+#include "base/trace_event/trace_event.h" |
#include "content/browser/memory/memory_monitor.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_types.h" |
@@ -196,6 +197,10 @@ void MemoryCoordinatorImpl::UpdateState() { |
} |
if (next_state != prev_state) { |
+ TRACE_EVENT2("memory-infra", "MemoryCoordinatorImpl::UpdateState", |
+ "prev", MemoryStateToString(prev_state), |
+ "next", MemoryStateToString(next_state)); |
+ |
NotifyStateToClients(); |
NotifyStateToChildren(); |
ScheduleUpdateState(minimum_transition_period_); |