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

Issue 2343553005: enable / disable Long Task instrumentation based on presence of LongTask observer (Closed)

Created:
4 years, 3 months ago by panicker
Modified:
4 years, 3 months ago
Reviewers:
caseq, dgozman
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

enable / disable Long Task instrumentation based on presence of LongTask observer BUG=635596 Committed: https://crrev.com/ad2240ff457a2512b5868aa923f56bab1cd9bb4a Cr-Commit-Position: refs/heads/master@{#419743}

Patch Set 1 #

Total comments: 4

Patch Set 2 : disable instrumentation in dtor #

Patch Set 3 : address review comments #

Patch Set 4 : decouple enable / disable observer from ctor / dtor, to prevent the issue of tasks getting reported… #

Total comments: 11

Patch Set 5 : address review comments #

Patch Set 6 : remove check in dtor #

Total comments: 8

Patch Set 7 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -5 lines) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp View 1 2 3 4 5 6 2 chunks +15 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/timing/Performance.h View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/Performance.cpp View 1 2 3 4 5 6 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBase.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBase.cpp View 1 2 3 4 5 6 4 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceObserver.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/core/timing/PerformanceTest.cpp View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
panicker
PTAL
4 years, 3 months ago (2016-09-15 16:31:40 UTC) #2
caseq
https://codereview.chromium.org/2343553005/diff/1/third_party/WebKit/Source/core/timing/Performance.cpp File third_party/WebKit/Source/core/timing/Performance.cpp (right): https://codereview.chromium.org/2343553005/diff/1/third_party/WebKit/Source/core/timing/Performance.cpp#newcode100 third_party/WebKit/Source/core/timing/Performance.cpp:100: if (hasObserverFor(PerformanceEntry::LongTask) nit: we tend to prefer early bail-outs, ...
4 years, 3 months ago (2016-09-15 23:29:40 UTC) #3
panicker
PTAL. https://codereview.chromium.org/2343553005/diff/1/third_party/WebKit/Source/core/timing/Performance.cpp File third_party/WebKit/Source/core/timing/Performance.cpp (right): https://codereview.chromium.org/2343553005/diff/1/third_party/WebKit/Source/core/timing/Performance.cpp#newcode100 third_party/WebKit/Source/core/timing/Performance.cpp:100: if (hasObserverFor(PerformanceEntry::LongTask) On 2016/09/15 23:29:40, caseq wrote: > ...
4 years, 3 months ago (2016-09-16 17:07:58 UTC) #4
panicker
Discussed with Dima and updated patch to prevent the issue of tasks getting reported after ...
4 years, 3 months ago (2016-09-17 00:37:43 UTC) #5
dgozman
Looks pretty good. https://codereview.chromium.org/2343553005/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2343553005/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode22 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:22: { Let's either call disableObserver() from ...
4 years, 3 months ago (2016-09-17 01:11:00 UTC) #6
panicker
PTAL https://codereview.chromium.org/2343553005/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2343553005/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode22 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:22: { On 2016/09/17 01:11:00, dgozman wrote: > Let's ...
4 years, 3 months ago (2016-09-17 03:04:00 UTC) #7
panicker
https://codereview.chromium.org/2343553005/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2343553005/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode22 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:22: { On 2016/09/17 03:04:00, Shubhie wrote: > On 2016/09/17 ...
4 years, 3 months ago (2016-09-18 17:49:59 UTC) #8
dgozman
lgtm with comments https://codereview.chromium.org/2343553005/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp File third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp (right): https://codereview.chromium.org/2343553005/diff/60001/third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp#newcode22 third_party/WebKit/Source/core/inspector/InspectorWebPerfAgent.cpp:22: { On 2016/09/18 17:49:59, Shubhie wrote: ...
4 years, 3 months ago (2016-09-19 17:55:59 UTC) #9
caseq
https://codereview.chromium.org/2343553005/diff/100001/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp File third_party/WebKit/Source/core/timing/PerformanceObserver.cpp (right): https://codereview.chromium.org/2343553005/diff/100001/third_party/WebKit/Source/core/timing/PerformanceObserver.cpp#newcode55 third_party/WebKit/Source/core/timing/PerformanceObserver.cpp:55: m_performance->enableLongTaskInstrumentation(); Should we rather make this part of PerformanceBase::registerPerformanceObserver()? ...
4 years, 3 months ago (2016-09-19 22:18:06 UTC) #10
panicker
Thanks for the review! Will try to submit soon. If you have further comments feel ...
4 years, 3 months ago (2016-09-20 12:00:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2343553005/120001
4 years, 3 months ago (2016-09-20 13:43:29 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-20 13:48:44 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 13:51:31 UTC) #21
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ad2240ff457a2512b5868aa923f56bab1cd9bb4a
Cr-Commit-Position: refs/heads/master@{#419743}

Powered by Google App Engine
This is Rietveld 408576698