Index: base/memory/memory_pressure_listener.cc |
diff --git a/base/memory/memory_pressure_listener.cc b/base/memory/memory_pressure_listener.cc |
index e2ea106eaa60cf9ca5c43272400b23cae710ec02..745c9859a0800b1d8bb801f6c42140260fab973c 100644 |
--- a/base/memory/memory_pressure_listener.cc |
+++ b/base/memory/memory_pressure_listener.cc |
@@ -4,6 +4,7 @@ |
#include "base/memory/memory_pressure_listener.h" |
+#include "base/debug/trace_event.h" |
#include "base/lazy_instance.h" |
#include "base/observer_list_threadsafe.h" |
@@ -50,6 +51,8 @@ void MemoryPressureListener::Notify(MemoryPressureLevel memory_pressure_level) { |
// static |
void MemoryPressureListener::NotifyMemoryPressure( |
MemoryPressureLevel memory_pressure_level) { |
+ TRACE_EVENT1("memory", "MemoryPressureListener::NotifyMemoryPressure", |
+ "level", memory_pressure_level); |
g_observers.Get().Notify(&MemoryPressureListener::Notify, |
memory_pressure_level); |
} |