New issue
Advanced search Search tips

Issue 611818 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 622400



Sign in to add a comment

SequencedWorkerPool should use TaskAnnotator and TRACE_TASK_EXECUTION

Project Member Reported by ssid@chromium.org, May 13 2016

Issue description

We should use TRACE_TASK_EXECUTION+TaskAnnotator like MessageLoop does to avoid code duplication.

Rather than using the TRACE_EVENT_WITH_FLOW2 macro directly, MessageLoop and others use TaskAnnotator
https://code.google.com/p/chromium/codesearch#chromium/src/base/message_loop/message_loop.cc&l=484
TaskAnnotator also handles the StopWatch+TallyRunOnNamedThreadIfTracking that is done at lines 830-835 of sequenced_worker_pool.cc.

More context can be found at discussion in CL:
https://codereview.chromium.org/1929913002/#msg11
 

Comment 1 by fdoray@chromium.org, Sep 26 2016

Status: WontFix (was: Untriaged)
SequencedWorkerPool will soon be deprecated in favor of TaskScheduler.

Comment 2 by fdoray@chromium.org, Oct 18 2016

Status: Started (was: WontFix)
Project Member

Comment 3 by bugdroid1@chromium.org, Oct 23 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/af4072ecf86c2c8ff7ec217e4830e2c2e5964cf7

commit af4072ecf86c2c8ff7ec217e4830e2c2e5964cf7
Author: fdoray <fdoray@chromium.org>
Date: Sun Oct 23 13:37:07 2016

Use TRACE_TASK_EXECUTION in SequencedWorkerPool.

With this CL, SequencedWorkerPool generates an event in the "toplevel"
category when it runs a task. This is the same behavior as MessageLoop,
TaskScheduler and WorkerPool.

BUG= 611818 

Review-Url: https://chromiumcodereview.appspot.com/2429863002
Cr-Commit-Position: refs/heads/master@{#426994}

[modify] https://crrev.com/af4072ecf86c2c8ff7ec217e4830e2c2e5964cf7/base/threading/sequenced_worker_pool.cc

Comment 4 by gab@chromium.org, Oct 24 2016

Blocking: 622400

Comment 5 by fdoray@chromium.org, Oct 25 2016

Status: Fixed (was: Started)

Comment 6 by fdoray@chromium.org, Oct 25 2016

SequencedWorkerPool now generates the same tracing events as MessageLoops and TaskScheduler by using the TRACE_TASK_EXECUTION macro.

It doesn't use TaskAnnotator because that would have required to make SequencedTask a child of PendingTask. We don't want to refactor code that will soon be deprecated.

Comment 7 by gab@chromium.org, Nov 7 2016

Components: Internals>TaskScheduler

Sign in to add a comment