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

Unified Diff: content/gpu/gpu_main.cc

Issue 15418002: Record Chrome trace events in tcmalloc heap profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments 2 Created 7 years, 6 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
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 221361feae2df5fe75e05fa3fe72fc60ca889f83..80084906e4285a92c0a50c2d1630c411971824a0 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -9,6 +9,7 @@
#endif
#include "base/debug/trace_event.h"
+#include "base/debug/trace_event_memory.h"
#include "base/lazy_instance.h"
#include "base/message_loop.h"
#include "base/rand_util.h"
@@ -291,6 +292,8 @@ int GpuMain(const MainFunctionParams& parameters) {
gpu_process.set_main_thread(child_thread);
{
+ base::debug::TraceMemoryController trace_memory_controller(
+ main_message_loop.message_loop_proxy());
TRACE_EVENT0("gpu", "Run Message Loop");
main_message_loop.Run();
}

Powered by Google App Engine
This is Rietveld 408576698