Bug 152417

Summary: Web Inspector: Implement console.timeline() and console.timelineEnd()
Product: WebKit Reporter: Nikita Vasilyev <nvasilyev>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: bburg, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: All   
OS: All   

Nikita Vasilyev
Reported 2015-12-17 21:11:28 PST
Chrome DevTools and Firefox DevTools both support console.timeline() and console.timelineEnd(). console.timeline() starts timeline recording and console.timelineEnd() stops it. https://twitter.com/addyosmani/status/487353570606743552
Attachments
Timothy Hatcher
Comment 1 2015-12-17 21:13:01 PST
profile and profileEnd do that for us already. Though we can make these aliases or decide to change profile back.
Nikita Vasilyev
Comment 2 2016-01-26 15:07:47 PST
Chrome DevTools renamed console.timeline & console.timelineEnd to console.time and console.timeEnd. > console.timeline() < 'console.timeline' is deprecated. Please use 'console.time' instead. > console.timelineEnd() < 'console.timelineEnd' is deprecated. Please use 'console.timeEnd' instead.
Radar WebKit Bug Importer
Comment 3 2016-01-26 15:08:02 PST
Joseph Pecoraro
Comment 4 2016-01-26 15:16:44 PST
Hmm, we already use time/timeEnd for a high performance time measurement that already outputs to the console.
Nikita Vasilyev
Comment 5 2016-01-26 15:33:16 PST
(In reply to comment #4) > Hmm, we already use time/timeEnd for a high performance time measurement > that already outputs to the console. Chrome's time/timeEnd does the same. timeline/timelineEnd were removed when they switched to a tracing profiler in the timelines. https://code.google.com/p/chromium/issues/detail?id=412782 I find it to be a very bad developer experience. I hope we don't do the same with profile/profileEnd.
Timothy Hatcher
Comment 6 2016-01-26 17:15:46 PST
(In reply to comment #5) > (In reply to comment #4) > > Hmm, we already use time/timeEnd for a high performance time measurement > > that already outputs to the console. > > Chrome's time/timeEnd does the same. > > timeline/timelineEnd were removed when they switched to a tracing profiler > in the > timelines. > > https://code.google.com/p/chromium/issues/detail?id=412782 > > I find it to be a very bad developer experience. I hope we don't do the same > with profile/profileEnd. They made that change due to architecture problems we don't have. I think we should make time/timeEnd markup the timeline like they do, and just keep profile/profileEnd as-is (start and stop the timeline.) I am hesitant to add timeline/timelineEnd as an alias of profile/rpofileEnd since Chrome deprecated it.
Blaze Burg
Comment 7 2016-12-08 13:14:34 PST
It seems this is not needed for parity, and it's redundant with existing API.
Note You need to log in before you can comment on or make changes to this bug.