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

Unified Diff: base/threading/sequenced_worker_pool.cc

Issue 2429863002: Use TRACE_TASK_EXECUTION in SequencedWorkerPool. (Closed)
Patch Set: remove unused include Created 4 years, 2 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 d856c3a70b7cbc9c2e0e20908de519b3d0d1ce97..2d473bf0fca602917115580e032a56c4b40e718d 100644
--- a/base/threading/sequenced_worker_pool.cc
+++ b/base/threading/sequenced_worker_pool.cc
@@ -35,7 +35,6 @@
#include "base/threading/thread_restrictions.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
-#include "base/trace_event/heap_profiler.h"
#include "base/trace_event/trace_event.h"
#include "base/tracked_objects.h"
#include "base/tracking_info.h"
@@ -992,14 +991,11 @@ void SequencedWorkerPool::Inner::ThreadLoop(Worker* this_worker) {
GetWorkStatus status =
GetWork(&task, &wait_time, &delete_these_outside_lock);
if (status == GET_WORK_FOUND) {
- TRACE_EVENT_WITH_FLOW2(TRACE_DISABLED_BY_DEFAULT("toplevel.flow"),
- "SequencedWorkerPool::Inner::ThreadLoop",
+ TRACE_TASK_EXECUTION("SequencedWorkerPool::Inner::ThreadLoop", task);
danakj 2016/10/20 21:05:18 Is reordering these ok? They will not nest differe
fdoray 2016/10/21 12:47:59 Yes. This new ordering is consistent with Message
+ TRACE_EVENT_WITH_FLOW0(TRACE_DISABLED_BY_DEFAULT("toplevel.flow"),
+ "SequencedWorkerPool::Inner::PostTask",
danakj 2016/10/20 21:05:18 This is ThreadLoop tho?
fdoray 2016/10/21 12:47:59 No. To be consistent with MessageLoop and TaskSch
TRACE_ID_MANGLE(GetTaskTraceID(task, static_cast<void*>(this))),
- TRACE_EVENT_FLAG_FLOW_IN,
- "src_file", task.posted_from.file_name(),
- "src_func", task.posted_from.function_name());
- TRACE_HEAP_PROFILER_API_SCOPED_TASK_EXECUTION task_event(
gab 2016/10/18 18:15:02 Why was this removed?
fdoray 2016/10/18 19:19:29 This is done by TRACE_TASK_EXECUTION https://cs.ch
- task.posted_from.file_name());
+ TRACE_EVENT_FLAG_FLOW_IN);
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