mdn / mdn/content

Outdated information about what console.time*() functions add markers to performance profilers.

Open
#22,588 1 comment 0 reactions 0 assignees View on GitHub
area: Console Content:WebAPI help wanted
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

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

### What specific section or headline is this issue about?

_No response_

### What information was incorrect, unhelpful, or incomplete?

I think this info is kind of outdated. When I want to add markers to my performance profile I always confuse `console.timeStamp()` and `console.time()` and `console.timeEnd()`. And it seems mdn is currently displaying the exact opposite as what is the actual current situation.

I'm not sure if adding markers to the profiler in Firefox still exists, I couldn't find any markers when recording on performance-panel-logging.glitch.me
Chrome seems to add markers for all of these functions, but there [appears to be a bug](https://bugs.chromium.org/p/chromium/issues/detail?id=1394162) that causes markers from `console.timeStamp()` to not render.

### What did you expect to see?

Assuming that Chrome fixes this bug, I'd expect the pages from `console.time()` and `console.timeEnd()` to mention that in chrome markers are logged to the performance profile.

As for the `console.timeStamp()` page, I'd expect Firefox to be removed from the list of browsers that add markers to performance tools. Unless I'm missing something.

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

_No response_

### Do you have anything more you want to share?

_No response_

### MDN metadata

Page report details

* Folder: `en-us/web/api/console/timestamp`
* MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp
* GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/api/console/timestamp/index.md
* Last commit: https://github.com/mdn/content/commit/da88b2f3a23b9d93f083003f13c06f9d96073f6a
* Document last modified: 2022-09-13T05:21:27.000Z

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.