You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<imgsrc="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-02.png"alt="Chrome Performance panel showing User Timing entries cssTime, jsTime, and jsEnd added via performance.mark() and .measure()."width="1500"height="891"loading="lazy">
98
98
<figcaption>Note that <code>cssTime</code> and <code>jsTime</code> take up
99
99
a proportional amount of space to their duration, but <code>jsEnd</code>,
100
100
a <code>.mark()</code>, takes up a thin sliver of the UI as it represents
@@ -134,7 +134,7 @@ Before we can do anything, in the Performance panel’s settings, we need to
<imgsrc="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-03.png"alt="Settings panel in Chrome DevTools with the ‘Show custom tracks’ option enabled for using the Performance Extensibility API."width="1500"height="891"loading="lazy">
138
138
<figcaption>Look in the Performance panel’s settings, not DevTools’ overall
139
139
settings.</figcaption>
140
140
</figure>
@@ -161,7 +161,7 @@ the Extensibility API for `performance.mark()`:
<imgsrc="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-04.png"alt="DevTools Performance panel showing a custom marker jsEnd added using the Extensibility API and styled with a custom colour."width="1500"height="891"loading="lazy">
165
165
<figcaption>Look toward the top-right and note the light blue
166
166
<code>jsEnd</code> marker. That’s the extended
167
167
<code>performance.mark()</code> in action.</figcaption>
@@ -186,7 +186,7 @@ However, there are two major downsides thus far:
186
186
resolution timing that we’d use a `.mark()` for in the first place:
<imgsrc="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-05.png"alt="Chrome DevTools Summary pane missing timestamp details for a custom performance.mark() entry using the Extensibility API."width="1500"height="891"loading="lazy">
190
190
<figcaption>The UI doesn’t surface any timestamp information anywhere. I find
<imgsrc="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-06.png"alt="Custom track labelled ‘CSS’ in Chrome DevTools Performance panel created using performance.measure() and the Extensibility API."width="1500"height="891"loading="lazy">
227
227
</figure>
228
228
229
229
We now have our first custom track titled <q>CSS</q>, sourced from our `track:
@@ -260,7 +260,7 @@ performance.mark('jsEnd', {
260
260
Notice that our `jsEnd` marker is now a dark pinky-purple:
<imgsrc="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-07.png"alt="Marker text in the Performance panel replaced with tooltipText using the Extensibility API—note the absence of an actual tooltip."width="1500"height="891"loading="lazy">
264
264
<figcaption>The top-right marker is now dark pink, which I guess maps to <code>secondary-dark</code>.</figcaption>
265
265
</figure>
266
266
@@ -286,7 +286,7 @@ The takeaway so far is that the Extensibility API is less useful for
<imgsrc="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-09.png"alt="Custom .measure() entry with tooltip, colour, and rich metadata shown in a dedicated CSS track using the Extensibility API."width="1500"height="891"loading="lazy">
318
318
<figcaption>Note the custom data that now appears in the <i>Summary</i> pane.</figcaption>
319
319
</figure>
320
320
@@ -348,7 +348,7 @@ I’ve added a `color`, a `tooltipText`, and some made up metadata in
348
348
API to grab these numbers for real. That code is in [the appendix](#appendix).
<imgsrc="{{ site.cloudinary }}/wp-content/uploads/2025/07/extensibility-10.png"alt="Chrome Performance panel with grouped custom tracks for CSS and JS under ‘First Party’, showing cssTime and jsTime entries with full metadata."width="1500"height="891"loading="lazy">
352
352
<figcaption>The <code>.measure()</code> actually gets a proper tooltip, and we
353
353
have rich metadata in the <i>Summary</i> pane.</figcaption>
0 commit comments