Closed Bug 1387528 Opened 8 years ago Closed 2 months ago

implement non-interval markers for console.timeStamp console.time, and console.timeEnd

Categories

(Core :: Gecko Profiler, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox57 --- wontfix
firefox149 --- fixed

People

(Reporter: clarkbw, Assigned: canova, Mentored)

References

Details

(Whiteboard: [fp])

Attachments

(2 files)

In this issue https://github.com/devtools-html/perf.html/issues/116 we intend to expose markers for console.timeStamp, console.time, and console.timeEnd. To achieve this we need to implement a set of non-interval markers for those console methods. Note: you can see when console.timeStamp was implemented in bug 922221 there were a set of DocShell markers implemented for the console methods.
Priority: -- → P3
Mentor: felash
Severity: normal → S4
Severity: S4 → N/A
Priority: P3 → P2
Whiteboard: [fxp]
Flags: needinfo?(brandihinojosa5)
Flags: needinfo?(brandihinojosa5)
Priority: P2 → P1

Before we switched to the Firefox Profiler in the DevTools, we had
timeline markers for these console methods. But apparently, since we did
the switch, we never added markers for them.

From our conversations with Chrome folks, they mentioned that some JS
frameworks started using these instead of performance.mark/measure
combinations especially the console.timeStamp one since it's just an
instant marker, stating that they are higher overhead. Even though I
don't completely understand their rationale, I think it makes sense to
add markers for these methods. It essentially adds 2 different subtypes
that uses the same ConsoleTimingMarker.

  1. console.time and console.timeEnd when combined create a duration
    marker with a label, similar to performance.mark and measure.
  2. console.timeStamp creates an instant marker with a label.

One edge case is that, console.timeEnd doesn't create any markers when
it doesn't have a console.time with the same title, and vice versa.

Assignee: nobody → canaltinova
Status: NEW → ASSIGNED
Pushed by canaltinova@gmail.com: https://github.com/mozilla-firefox/firefox/commit/19212ac33b7b https://hg.mozilla.org/integration/autoland/rev/6136cfaf8806 Add profiler markers for console.time{,End} pair and console.timeStamp r=dcarver https://github.com/mozilla-firefox/firefox/commit/7d26a8874042 https://hg.mozilla.org/integration/autoland/rev/5ccee7389e73 Add some profiler tests for the console.time/timeEnd/timeStamp methods r=dcarver,profiler-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Regressions: 2014891
Severity: N/A → S4
No longer regressions: 2014891
QA Whiteboard: [qa-triage-done-c150/b149]
Whiteboard: [fxp] → [fp]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: