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

Unified Diff: base/threading/sequenced_worker_pool.cc

Issue 1929913002: [tracing] Add task execution event for sequenced worker pool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: base/threading/sequenced_worker_pool.cc
diff --git a/base/threading/sequenced_worker_pool.cc b/base/threading/sequenced_worker_pool.cc
index 24a07511a9847a4faba4dc855470cbda3fbb347b..758fbe72b766c6c7e7d6525f8995cf255700f247 100644
--- a/base/threading/sequenced_worker_pool.cc
+++ b/base/threading/sequenced_worker_pool.cc
@@ -810,6 +810,8 @@ void SequencedWorkerPool::Inner::ThreadLoop(Worker* this_worker) {
TRACE_EVENT_FLAG_FLOW_IN,
"src_file", task.posted_from.file_name(),
"src_func", task.posted_from.function_name());
+ TRACE_EVENT_API_SCOPED_TASK_EXECUTION_EVENT INTERNAL_TRACE_EVENT_UID(
Primiano Tucci (use gerrit) 2016/05/04 08:21:50 you don't need EVENT INTERNAL_TRACE_EVENT_UID here
ssid 2016/05/06 03:15:26 I added this because every time i didn't in past y
Primiano Tucci (use gerrit) 2016/05/06 10:22:03 Oops. I hope I didn't suggest in non-tracing code,
+ task_event)(task.posted_from.file_name());
int new_thread_id = WillRunWorkerTask(task);
{
AutoUnlock unlock(lock_);
« 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