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

Unified Diff: content/child/memory/child_memory_coordinator_impl.cc

Issue 2466773002: memory coordinator: Add trace macros to track state changes (Closed)
Patch Set: Created 4 years, 1 month 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
Index: content/child/memory/child_memory_coordinator_impl.cc
diff --git a/content/child/memory/child_memory_coordinator_impl.cc b/content/child/memory/child_memory_coordinator_impl.cc
index 5412c6458efa83a116c6b8204f4d98fb74deab56..2cd92acf4a4dd20ebccb3c73036a4ce13cbf05ed 100644
--- a/content/child/memory/child_memory_coordinator_impl.cc
+++ b/content/child/memory/child_memory_coordinator_impl.cc
@@ -7,6 +7,7 @@
#include "base/lazy_instance.h"
#include "base/memory/memory_coordinator_client_registry.h"
#include "base/synchronization/lock.h"
+#include "base/trace_event/trace_event.h"
namespace content {
@@ -57,6 +58,8 @@ ChildMemoryCoordinatorImpl::~ChildMemoryCoordinatorImpl() {
}
void ChildMemoryCoordinatorImpl::OnStateChange(mojom::MemoryState state) {
+ TRACE_EVENT1("memory-infra", "ChildMemoryCoordinatorImpl::OnStateChange",
+ "state", static_cast<int32_t>(state));
base::MemoryState base_state = ToBaseMemoryState(state);
base::MemoryCoordinatorClientRegistry::GetInstance()->Notify(
base_state);

Powered by Google App Engine
This is Rietveld 408576698