content icon indicating copy to clipboard operation
content copied to clipboard

Clarify `console.timeStamp` `data` parameter behavior in DevTools

Open SkyZeroZx opened this issue 8 months ago • 1 comments

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp_static

What specific section or headline is this issue about?

https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp_static#data

What information was incorrect, unhelpful, or incomplete?

The documentation states that console.timeStamp() supports a data parameter that can display additional information and that URLs may become clickable links.

However, when testing the example in recent Chrome versions (Chrome 141–145), the data object does not appear anywhere in the DevTools Performance panel.

const linkData = {
  url: "ext://resource/123",
  description: "View Resource 123",
  otherDetail: "This data also appears in the JSON viewer",
};

console.timeStamp(
  "Event with Link", // label
  performance.now(), // startTime (instant)
  undefined, // endTime (instant)
  "Tasks", // trackName
  "My Extension", // trackGroup
  "primary-light", // color
  linkData, // data (object)
);

What did you expect to see?

Is the data parameter actually supported in DevTools UI, or is the documentation outdated or missing additional requirements?

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

SkyZeroZx avatar Mar 13 '26 20:03 SkyZeroZx

It's experimental work they stole, someone stole i should say, and pushed to prod so I'd take mdn content with a skeptical eye for a while.

ahfuckit avatar Mar 22 '26 02:03 ahfuckit