epoch for user timing in performance timeline |
||||||
Issue descriptionChrome Version: 58.0.3029.110 (Official Build) (64-bit) OS: OSX 10.11.6 What steps will reproduce the problem? (1) install the attached tampermonkey script (2) load any webpage (3) open up the performance tab of dev tools (4) click "Reload page" from the performance tab (5) when the profiling is done, expand the "user timing" section What is the expected result? 1) When you create a user-timing measure with neither `startMark` nor `endMark`, `navigationStart` is used as the inferred start time: https://www.w3.org/TR/user-timing/#dom-performance-measure Therefore, the left edge of the "m1" measure should be 0 in the timeline. 2) The value from `performance.now()` during an `onload` callback should be approx the same as the red "load event" vertical line in devtools What happens instead? 1) In "m1 measure.png", the left edge of "m1" is ~26 ms. 2) In "onload indicator.png", they are ~34 ms apart.
,
Jun 6 2017
,
Aug 17 2017
,
Aug 21 2017
,
Aug 22 2017
could you clarify if the issue is with the timestamp from measure OR an issue with Devtools rendering? Can you print out the timestamp value?
,
Aug 24 2017
Almost certain that `_minimumRecordTime` is being used as the epoch for all the times in the flame chart. https://cs.chromium.org/chromium/src/third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineFrameModel.js?type=cs&q=_minimumRecordTime&sq=package:chromium&l=257 See my screenshot. Everything is "off" by the Start Time of the first event (beforeunload).
,
Aug 24 2017
meaning, from the screenshot ^^^, 206 - 23 ~= 182
,
Aug 25 2017
Seems like a DevTools issue, update bug component.
,
Aug 28 2017
We don't crop recording at all, what we do is: 1) start recording 2) reload the page as a result, navigationStart is non-0 on the timeline. You can have seconds of beforeunload there. But we can try trimming and see how it feels... |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by cva...@gmail.com
, Jun 6 2017503 bytes
503 bytes View Download
56.2 KB
56.2 KB View Download
176 KB
176 KB View Download