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

Unified Diff: sky/engine/tonic/dart_gc_controller.cc

Issue 1031083003: Add tracing for major GC in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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: sky/engine/tonic/dart_gc_controller.cc
diff --git a/sky/engine/tonic/dart_gc_controller.cc b/sky/engine/tonic/dart_gc_controller.cc
index 61a830eecd9d9dcdcd6eb72c6e2c593fa6bf9afb..379fa690cdc530608bbe8e11a72a203bc079a1f2 100644
--- a/sky/engine/tonic/dart_gc_controller.cc
+++ b/sky/engine/tonic/dart_gc_controller.cc
@@ -5,6 +5,7 @@
#include "sky/engine/config.h"
#include "sky/engine/tonic/dart_gc_controller.h"
+#include "base/trace_event/trace_event.h"
#include "dart/runtime/include/dart_api.h"
#include "sky/engine/tonic/dart_gc_context.h"
#include "sky/engine/tonic/dart_gc_visitor.h"
@@ -33,6 +34,8 @@ void Visit(void* isolate_callback_data,
} // namespace
void DartGCPrologue() {
+ TRACE_EVENT_ASYNC_BEGIN0("sky", "DartGC", 0);
+
Dart_EnterScope();
DCHECK(!g_gc_context);
g_gc_context = new DartGCContext();
@@ -43,6 +46,8 @@ void DartGCEpilogue() {
delete g_gc_context;
g_gc_context = nullptr;
Dart_ExitScope();
+
+ TRACE_EVENT_ASYNC_END0("sky", "DartGC", 0);
}
} // namespace blink
« 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