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

Issue 10825022: Support profiling of tasks run as sequenced_tasks (Closed)

Created:
8 years, 5 months ago by jar (doing other things)
Modified:
8 years, 4 months ago
Reviewers:
brettw, akalin, jbates
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org, Ilya Sherman, ramant (doing other things), eroman, natduca
Visibility:
Public.

Description

Support profiling of tasks run as sequenced_tasks Mimic code seen in message_loop.cc (since these tasks are run on named threads) to support tracking of sequenced worker pool runs of tasks. We surround the *.Run() method with a call to get the time before we start, and then call to tally the time it took to run after task.Run() returns. r=brettw BUG=139035 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148986

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -4 lines) Patch
M base/threading/sequenced_worker_pool.cc View 1 2 3 4 3 chunks +15 lines, -4 lines 0 comments Download
M base/tracking_info.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M base/tracking_info.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
jar (doing other things)
8 years, 5 months ago (2012-07-26 00:02:57 UTC) #1
brettw
I think Fred has been doing most of the enhancements to this class recently. He ...
8 years, 5 months ago (2012-07-26 18:06:30 UTC) #2
jar (doing other things)
Change made per brettw suggestion. Akalin: PTAL https://chromiumcodereview.appspot.com/10825022/diff/11001/base/tracking_info.h File base/tracking_info.h (right): https://chromiumcodereview.appspot.com/10825022/diff/11001/base/tracking_info.h#newcode27 base/tracking_info.h:27: TrackingInfo(); On ...
8 years, 5 months ago (2012-07-26 18:53:26 UTC) #3
jar (doing other things)
jbates: akalin appears busy, and this is a pretty simple CL. Could you take a ...
8 years, 4 months ago (2012-07-27 17:38:37 UTC) #4
akalin
On 2012/07/27 17:38:37, jar wrote: > jbates: akalin appears busy, and this is a pretty ...
8 years, 4 months ago (2012-07-27 17:40:54 UTC) #5
akalin
few questions http://codereview.chromium.org/10825022/diff/6004/base/threading/sequenced_worker_pool.cc File base/threading/sequenced_worker_pool.cc (right): http://codereview.chromium.org/10825022/diff/6004/base/threading/sequenced_worker_pool.cc#newcode38 base/threading/sequenced_worker_pool.cc:38: struct SequencedTask : public TrackingInfo { any ...
8 years, 4 months ago (2012-07-27 17:45:39 UTC) #6
jar (doing other things)
Responding to questions by akalin. Several of your questions suggest larger changes. I do think ...
8 years, 4 months ago (2012-07-27 18:15:45 UTC) #7
jbates
LGTM (one nit) I was also curious about the inheritance vs member choice of TrackingInfo, ...
8 years, 4 months ago (2012-07-27 19:54:10 UTC) #8
akalin
lgtm http://codereview.chromium.org/10825022/diff/6004/base/threading/sequenced_worker_pool.cc File base/threading/sequenced_worker_pool.cc (right): http://codereview.chromium.org/10825022/diff/6004/base/threading/sequenced_worker_pool.cc#newcode38 base/threading/sequenced_worker_pool.cc:38: struct SequencedTask : public TrackingInfo { On 2012/07/27 ...
8 years, 4 months ago (2012-07-27 20:18:18 UTC) #9
jar (doing other things)
Changes made per comments by akalin and jbates. http://codereview.chromium.org/10825022/diff/6004/base/threading/sequenced_worker_pool.cc File base/threading/sequenced_worker_pool.cc (right): http://codereview.chromium.org/10825022/diff/6004/base/threading/sequenced_worker_pool.cc#newcode52 base/threading/sequenced_worker_pool.cc:52: tracked_objects::Location ...
8 years, 4 months ago (2012-07-27 21:52:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/10825022/15002
8 years, 4 months ago (2012-07-30 17:14:02 UTC) #11
commit-bot: I haz the power
8 years, 4 months ago (2012-07-30 18:41:54 UTC) #12
Change committed as 148986

Powered by Google App Engine
This is Rietveld 408576698