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

Issue 2610063006: Create TaskAttributionTiming PerformanceEntry for attribution in PerformanceLongTaskTiming. Move cu… (Closed)

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

Description

Create TaskAttributionTiming PerformanceEntry for attribution in PerformanceLongTaskTiming. Move culprit-frame-related fields in there BUG=676484 Review-Url: https://codereview.chromium.org/2610063006 Cr-Commit-Position: refs/heads/master@{#441814} Committed: https://chromium.googlesource.com/chromium/src/+/262009cc0afed3a6a9c152c122c28599f2fe67f6

Patch Set 1 #

Patch Set 2 : make alias for taskattribution vector #

Total comments: 2

Patch Set 3 : update copyright year #

Total comments: 8

Patch Set 4 : address review nits #

Patch Set 5 : update layout test expectation #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -60 lines) Patch
M third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html View 1 2 3 1 chunk +21 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceBase.cpp View 1 2 3 3 chunks +14 lines, -11 lines 1 comment Download
M third_party/WebKit/Source/core/timing/PerformanceEntry.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceEntry.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.h View 1 2 3 3 chunks +12 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.cpp View 1 2 3 3 chunks +21 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/timing/PerformanceLongTaskTiming.idl View 1 chunk +2 lines, -4 lines 0 comments Download
A third_party/WebKit/Source/core/timing/TaskAttributionTiming.h View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/timing/TaskAttributionTiming.cpp View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/timing/TaskAttributionTiming.idl View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
panicker
PTAL.
3 years, 11 months ago (2017-01-04 23:55:42 UTC) #2
haraken
Implementation-wise looks good. https://codereview.chromium.org/2610063006/diff/20001/third_party/WebKit/Source/core/timing/TaskAttributionTiming.h File third_party/WebKit/Source/core/timing/TaskAttributionTiming.h (right): https://codereview.chromium.org/2610063006/diff/20001/third_party/WebKit/Source/core/timing/TaskAttributionTiming.h#newcode1 third_party/WebKit/Source/core/timing/TaskAttributionTiming.h:1: // Copyright 2016 The Chromium Authors. ...
3 years, 11 months ago (2017-01-05 01:13:27 UTC) #3
panicker
Thanks for the review. Ilya and Tim (to some extent) are familiar with the API. ...
3 years, 11 months ago (2017-01-05 01:25:13 UTC) #5
tdresser
LGTM with nits. https://codereview.chromium.org/2610063006/diff/40001/third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html File third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html (right): https://codereview.chromium.org/2610063006/diff/40001/third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html#newcode20 third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html:20: "startTime expected to have 1 miilisecond ...
3 years, 11 months ago (2017-01-05 13:34:14 UTC) #6
haraken
LGTM
3 years, 11 months ago (2017-01-05 15:15:05 UTC) #7
panicker
Thanks for the review. https://codereview.chromium.org/2610063006/diff/40001/third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html File third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html (right): https://codereview.chromium.org/2610063006/diff/40001/third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html#newcode20 third_party/WebKit/LayoutTests/fast/performance/longtasktiming.html:20: "startTime expected to have 1 ...
3 years, 11 months ago (2017-01-05 20:56:49 UTC) #8
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/2610063006/60001
3 years, 11 months ago (2017-01-05 20:57:56 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/363360)
3 years, 11 months ago (2017-01-05 22:55:16 UTC) #13
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/2610063006/80001
3 years, 11 months ago (2017-01-06 00:00:32 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/262009cc0afed3a6a9c152c122c28599f2fe67f6
3 years, 11 months ago (2017-01-06 02:00:02 UTC) #19
Yoav Weiss
https://codereview.chromium.org/2610063006/diff/80001/third_party/WebKit/Source/core/timing/PerformanceBase.cpp File third_party/WebKit/Source/core/timing/PerformanceBase.cpp (right): https://codereview.chromium.org/2610063006/diff/80001/third_party/WebKit/Source/core/timing/PerformanceBase.cpp#newcode168 third_party/WebKit/Source/core/timing/PerformanceBase.cpp:168: break; Hmm, this is according to spec: https://w3c.github.io/performance-timeline/#filter-performance-entry-buffer-by-name-and-type On ...
3 years, 11 months ago (2017-01-06 10:13:05 UTC) #21
panicker
On 2017/01/06 10:13:05, Yoav Weiss wrote: > https://codereview.chromium.org/2610063006/diff/80001/third_party/WebKit/Source/core/timing/PerformanceBase.cpp > File third_party/WebKit/Source/core/timing/PerformanceBase.cpp (right): > > https://codereview.chromium.org/2610063006/diff/80001/third_party/WebKit/Source/core/timing/PerformanceBase.cpp#newcode168 ...
3 years, 11 months ago (2017-01-06 20:02:17 UTC) #22
Yoav Weiss
3 years, 11 months ago (2017-01-06 20:11:23 UTC) #23
Message was sent while issue was closed.
On 2017/01/06 20:02:17, panicker wrote:
> On 2017/01/06 10:13:05, Yoav Weiss wrote:
> >
>
https://codereview.chromium.org/2610063006/diff/80001/third_party/WebKit/Sour...
> > File third_party/WebKit/Source/core/timing/PerformanceBase.cpp (right):
> > 
> >
>
https://codereview.chromium.org/2610063006/diff/80001/third_party/WebKit/Sour...
> > third_party/WebKit/Source/core/timing/PerformanceBase.cpp:168: break;
> > Hmm, this is according to spec:
> >
>
https://w3c.github.io/performance-timeline/#filter-performance-entry-buffer-b...
> > 
> > On top of that "PerformanceObserverInit.entryTypes is a list of valid
> entryType
> > names to be observed. The list must not be empty and types not recognized by
> the
> > user agent must be ignored."
> > 
> > Both mean that there's no way for developers to detect lack of support for
new
> > entry types and create their own fallbacks for cases it is needed.
> > 
> > Again, not an implementation issue, but IMO a significant spec one. I'll
file
> a
> > spec bug.
> 
> It is possible for developers to detect lack of support: 
> observer.observe({entryTypes: ["longtask"]}); will throw an error if
> unsupported.
> We recently updated the error message to be less confusing.

That's great! All that's left is to fix the spec to match.

We should probably do the same for getEntriesByType, but let's discuss that on
https://github.com/w3c/performance-timeline/issues/64

Powered by Google App Engine
This is Rietveld 408576698