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

Unified Diff: base/memory/memory_pressure_listener.cc

Issue 413233002: Add a trace event to MemoryPressureListener::NotifyMemoryPressure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698