Skip to content

Conversation

@tunetheweb
Copy link
Contributor

Description

Chrome DevTool's extensibility API extends some standard (and non-standard!) Web APIs with either new additions, or in the use of structured versions of existing fields.

Therefore I think it is helpful for developers who may see these being used in the wild to understand them.

At the same time, as these are non-standard extensions (at least for now!) I don't think it should be documented on MDN other than a small note. I'm also conscious that MDN is not a documentation site for specific browsers, but rather the web platform which is another reason to keep this light. Happy to take feedback on this and iterate if you don't think I've struck the right balance here.

Motivation

A developer approached me confused that the console.timeStamp MDN docs suggested this API did not allow for the extensions Chrome uses.

Additionally, with the likes of popular libraries like React and Angular uses the extensibility API, this is becoming a more popular API.

Firefox have also expressed interest to potentially implementing these extensions (at which point we can document this more on MDN as it's more cross-browser).

Additional details

https://developer.chrome.com/docs/devtools/performance/extension

Related issues and pull requests

@tunetheweb tunetheweb requested a review from a team as a code owner October 2, 2025 14:15
@tunetheweb tunetheweb requested review from wbamberg and removed request for a team October 2, 2025 14:15
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Oct 2, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2025

Preview URLs (6 pages)
External URLs (6)

URL: /en-US/docs/Web/API/console/timeStamp_static
Title: console: timeStamp() static method


URL: /en-US/docs/Web/API/Performance/mark
Title: Performance: mark() method


URL: /en-US/docs/Web/API/Performance/measure
Title: Performance: measure() method


URL: /en-US/docs/Web/API/PerformanceMark
Title: PerformanceMark


URL: /en-US/docs/Web/API/PerformanceMark/PerformanceMark
Title: PerformanceMark: PerformanceMark() constructor


URL: /en-US/docs/Web/API/PerformanceMeasure
Title: PerformanceMeasure

(comment last updated: 2025-10-24 16:33:13)

@github-actions github-actions bot added size/m [PR only] 51-500 LoC changed and removed size/s [PR only] 6-50 LoC changed labels Oct 23, 2025
@tunetheweb tunetheweb requested a review from wbamberg October 23, 2025 10:27
@tunetheweb tunetheweb marked this pull request as ready for review October 23, 2025 10:28
@tunetheweb
Copy link
Contributor Author

Thanks @wbamberg . I've now done this the proper way, rather than trying to wedge it in as a note.

Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thank you.

@wbamberg wbamberg merged commit 5143045 into mdn:main Nov 5, 2025
8 checks passed

You can optionally supply an argument to label the timestamp, and this label will then be shown alongside the marker.

Some browsers have further extended this `console.timeStamp()` method to allow additional, optional parameters to be provided as part of its extensibility API that surfaces these in performances traces. See the [Chrome's extensibility API documentation](https://developer.chrome.com/docs/devtools/performance/extension#inject_your_data_with_consoletimestamp) for more information.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants