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

Unified Diff: cc/base/worker_pool.cc

Issue 12252058: Add a |scope| argument to TRACE_EVENT_INSTANT* and require its presence. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix builds 2 Created 7 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 | « cc/animation/animation.cc ('k') | cc/layers/scrollbar_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/worker_pool.cc
diff --git a/cc/base/worker_pool.cc b/cc/base/worker_pool.cc
index 25596d40718ff747e893d34fe1001a5dc6772939..469f67c66acbf1f8fd3f6816d554b870dafac17c 100644
--- a/cc/base/worker_pool.cc
+++ b/cc/base/worker_pool.cc
@@ -549,7 +549,8 @@ void WorkerPool::RunCheapTasks() {
base::TimeTicks now = base::TimeTicks::Now();
if (now >= run_cheap_tasks_time_limit_) {
- TRACE_EVENT_INSTANT0("cc", "WorkerPool::RunCheapTasks out of time");
+ TRACE_EVENT_INSTANT0("cc", "WorkerPool::RunCheapTasks out of time",
+ TRACE_EVENT_SCOPE_THREAD);
break;
}
@@ -558,7 +559,8 @@ void WorkerPool::RunCheapTasks() {
now < check_for_completed_tasks_time_)
break;
- TRACE_EVENT_INSTANT0("cc", "WorkerPool::RunCheapTasks check time");
+ TRACE_EVENT_INSTANT0("cc", "WorkerPool::RunCheapTasks check time",
+ TRACE_EVENT_SCOPE_THREAD);
CancelCheckForCompletedTasks();
DispatchCompletionCallbacks();
// Schedule another check for completed tasks if not idle.
« no previous file with comments | « cc/animation/animation.cc ('k') | cc/layers/scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698