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

Unified Diff: cc/raster/synchronous_task_graph_runner.cc

Issue 2687553004: Add context for tasks run by TaskGraphRunner (Closed)
Patch Set: Created 3 years, 10 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: cc/raster/synchronous_task_graph_runner.cc
diff --git a/cc/raster/synchronous_task_graph_runner.cc b/cc/raster/synchronous_task_graph_runner.cc
index f9c0a65b24e67ffaae99e8fee202d62ee2bbd0b7..daadbcea16ea36667b8b35a6cc44e8e493edfde7 100644
--- a/cc/raster/synchronous_task_graph_runner.cc
+++ b/cc/raster/synchronous_task_graph_runner.cc
@@ -67,6 +67,9 @@ void SynchronousTaskGraphRunner::RunUntilIdle() {
}
bool SynchronousTaskGraphRunner::RunTask() {
+ // Since we do not have posted from location for tasks, record the context for
+ // tasks as "cc" in heap profiler.
+ TRACE_HEAP_PROFILER_API_SCOPED_TASK_EXECUTION scoped_event("cc");
TRACE_EVENT0("toplevel", "SynchronousTaskGraphRunner::RunTask");
// Find the first category with any tasks to run. This task graph runner
« 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