Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jespertheend opened this issue Nov 28, 2022 · 1 comment
Labels
area: Console Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@jespertheend
Copy link
Contributor

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 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
@github-actions github-actions bot added Content:WebAPI Web API docs needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Nov 28, 2022
@sideshowbarker sideshowbarker added help wanted If you know something about this topic, we would love your help! and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Nov 29, 2022
@jespertheend
Copy link
Contributor Author

I forgot that performance.mark() exists. Which does appear to be supported on Firefox. Chrome appears to have another bug with performance.mark() that causes it to only show up when a call to console.timeStamp() is made.

I think it might be a good idea to link all three of these to each other in the 'see also' sections of all of these pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Console Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants