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

Unified Diff: sky/engine/core/dom/Microtask.cpp

Issue 853883005: Add a trace event for running microtasks (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/core/dom/Microtask.cpp
diff --git a/sky/engine/core/dom/Microtask.cpp b/sky/engine/core/dom/Microtask.cpp
index debfccbb02188c0ce1832ed19988d13ac39e6e27..4b01acef2fe15b9efdc5019e590c8442f9798d28 100644
--- a/sky/engine/core/dom/Microtask.cpp
+++ b/sky/engine/core/dom/Microtask.cpp
@@ -33,6 +33,7 @@
#include "base/bind.h"
#include "sky/engine/bindings/core/v8/V8PerIsolateData.h"
+#include "sky/engine/platform/TraceEvent.h"
#include "sky/engine/public/platform/WebThread.h"
#include "v8/include/v8.h"
@@ -65,6 +66,7 @@ void Microtask::performCheckpoint()
ASSERT(isolateData);
if (isolateData->recursionLevel() || isolateData->performingMicrotaskCheckpoint())
return;
+ TRACE_EVENT0("v8", "v8.runMicrotasks");
isolateData->setPerformingMicrotaskCheckpoint(true);
isolate->RunMicrotasks();
isolateData->setPerformingMicrotaskCheckpoint(false);
« 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