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

Issue 490913002: Adding flow traces for blink scheduler events (Closed)

Created:
6 years, 4 months ago by picksi1
Modified:
6 years, 3 months ago
CC:
blink-reviews, blink-reviews-events_chromium.org, dglazkov+blink, eae+blinkwatch, nduca
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Adding flow traces for blink scheduler events BUG=391005 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181908

Patch Set 1 #

Patch Set 2 : Putting back runHighPriorityTasks event #

Patch Set 3 : Removal of accidental changes to Scheduler Tests #

Total comments: 12

Patch Set 4 : Thread Safety and removal of enums #

Patch Set 5 : Straggling uin64 turned into an int #

Total comments: 18

Patch Set 6 : Updates based on code review #

Total comments: 6

Patch Set 7 : Updates from Alex's comments #

Total comments: 4

Patch Set 8 : Fixing nits from code review #

Total comments: 4

Patch Set 9 : atomicIncrement only done if needed. ID generation moved into TracedTask. #

Total comments: 6

Patch Set 10 : Adding 'volatile' to next flow trace ID. #

Patch Set 11 : Explicit cast added to fix build error #

Patch Set 12 : typedef removed #

Patch Set 13 : Static cast added in attempt to fix windows build #

Patch Set 14 : using uint64_t for flow trace id #

Patch Set 15 : Attempt to keep uint64_t compiling happily on windows #

Patch Set 16 : Merge with master and disable mangle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -42 lines) Patch
M Source/platform/TraceEvent.h View 1 2 3 2 chunks +98 lines, -0 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/scheduler/Scheduler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +6 lines, -18 lines 0 comments Download
M Source/platform/scheduler/Scheduler.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +16 lines, -24 lines 0 comments Download
A Source/platform/scheduler/TracedTask.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +43 lines, -0 lines 0 comments Download
A Source/platform/scheduler/TracedTask.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (8 generated)
picksi1
This code adds flow events to tasks scheduled using the Blink scheduler to aid visualization. ...
6 years, 4 months ago (2014-08-20 11:50:34 UTC) #1
Sami
Good idea about moving TracedTask out of the header. We can add a new .cpp ...
6 years, 4 months ago (2014-08-20 14:20:57 UTC) #2
picksi1
Thread safety updates + enums removed & other issues addressed. I'll add the queuing duration ...
6 years, 3 months ago (2014-08-29 14:11:29 UTC) #3
Sami
Functionally looks pretty good -- just some style nits. https://codereview.chromium.org/490913002/diff/80001/Source/platform/scheduler/Scheduler.cpp File Source/platform/scheduler/Scheduler.cpp (right): https://codereview.chromium.org/490913002/diff/80001/Source/platform/scheduler/Scheduler.cpp#newcode76 Source/platform/scheduler/Scheduler.cpp:76: ...
6 years, 3 months ago (2014-08-29 14:50:25 UTC) #4
picksi1
https://codereview.chromium.org/490913002/diff/80001/Source/platform/scheduler/Scheduler.cpp File Source/platform/scheduler/Scheduler.cpp (right): https://codereview.chromium.org/490913002/diff/80001/Source/platform/scheduler/Scheduler.cpp#newcode76 Source/platform/scheduler/Scheduler.cpp:76: const Scheduler::Task& task, const TraceLocation& location, const char * ...
6 years, 3 months ago (2014-09-01 11:06:51 UTC) #5
alexclarke
https://codereview.chromium.org/490913002/diff/100001/Source/platform/TraceEvent.h File Source/platform/TraceEvent.h (right): https://codereview.chromium.org/490913002/diff/100001/Source/platform/TraceEvent.h#newcode458 Source/platform/TraceEvent.h:458: // - category and name strings must have application ...
6 years, 3 months ago (2014-09-01 11:24:20 UTC) #7
picksi1
https://codereview.chromium.org/490913002/diff/100001/Source/platform/TraceEvent.h File Source/platform/TraceEvent.h (right): https://codereview.chromium.org/490913002/diff/100001/Source/platform/TraceEvent.h#newcode458 Source/platform/TraceEvent.h:458: // - category and name strings must have application ...
6 years, 3 months ago (2014-09-01 13:33:48 UTC) #8
Sami
Thanks Simon, lgtm with a couple of nits. https://codereview.chromium.org/490913002/diff/120001/Source/platform/scheduler/Scheduler.cpp File Source/platform/scheduler/Scheduler.cpp (right): https://codereview.chromium.org/490913002/diff/120001/Source/platform/scheduler/Scheduler.cpp#newcode118 Source/platform/scheduler/Scheduler.cpp:118: // ...
6 years, 3 months ago (2014-09-01 13:51:29 UTC) #9
picksi1
Fixed Sami's nits and ran git cl format over the code, which removed some blank ...
6 years, 3 months ago (2014-09-01 15:02:32 UTC) #10
eseidel
we shoudl avoid teh atomicIncrement but otherwise lgtm. https://codereview.chromium.org/490913002/diff/140001/Source/platform/scheduler/Scheduler.cpp File Source/platform/scheduler/Scheduler.cpp (right): https://codereview.chromium.org/490913002/diff/140001/Source/platform/scheduler/Scheduler.cpp#newcode147 Source/platform/scheduler/Scheduler.cpp:147: m_pendingHighPriorityTasks.append(TracedTask(task, ...
6 years, 3 months ago (2014-09-02 16:19:25 UTC) #11
picksi1
AtomicIncrement is now only performed if tracing is enabled. I've also moved the ID generation ...
6 years, 3 months ago (2014-09-03 16:32:57 UTC) #12
eseidel
lgtm https://codereview.chromium.org/490913002/diff/160001/Source/platform/scheduler/TracedTask.cpp File Source/platform/scheduler/TracedTask.cpp (right): https://codereview.chromium.org/490913002/diff/160001/Source/platform/scheduler/TracedTask.cpp#newcode29 Source/platform/scheduler/TracedTask.cpp:29: TRACE_EVENT_CATEGORY_GROUP_ENABLED("blink", &tracingEnabled); Is there also a check for ...
6 years, 3 months ago (2014-09-04 06:49:13 UTC) #13
Sami
https://codereview.chromium.org/490913002/diff/160001/Source/platform/scheduler/Scheduler.h File Source/platform/scheduler/Scheduler.h (right): https://codereview.chromium.org/490913002/diff/160001/Source/platform/scheduler/Scheduler.h#newcode94 Source/platform/scheduler/Scheduler.h:94: // Declared volatile as they are atomically incremented. nit: ...
6 years, 3 months ago (2014-09-04 09:51:07 UTC) #14
eseidel
I see. I was thinking of toplevel.flow On Thu, Sep 4, 2014 at 2:51 AM, ...
6 years, 3 months ago (2014-09-04 16:23:53 UTC) #15
picksi1
https://codereview.chromium.org/490913002/diff/160001/Source/platform/scheduler/Scheduler.h File Source/platform/scheduler/Scheduler.h (right): https://codereview.chromium.org/490913002/diff/160001/Source/platform/scheduler/Scheduler.h#newcode94 Source/platform/scheduler/Scheduler.h:94: // Declared volatile as they are atomically incremented. On ...
6 years, 3 months ago (2014-09-05 08:28:33 UTC) #16
Sami
Thanks Simon, lgtm!
6 years, 3 months ago (2014-09-05 10:00:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/picksi@chromium.org/490913002/180001
6 years, 3 months ago (2014-09-05 12:28:36 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/63141)
6 years, 3 months ago (2014-09-05 12:42:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/picksi@chromium.org/490913002/200001
6 years, 3 months ago (2014-09-05 13:41:36 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/56999)
6 years, 3 months ago (2014-09-05 14:01:36 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/picksi@chromium.org/490913002/220001
6 years, 3 months ago (2014-09-05 16:32:03 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/57061)
6 years, 3 months ago (2014-09-05 16:52:58 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/490913002/300001
6 years, 3 months ago (2014-09-12 13:46:05 UTC) #31
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 14:53:54 UTC) #32
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as 181908

Powered by Google App Engine
This is Rietveld 408576698