-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
fix(diagnostics): Updated flamegraph tutorial to use better tools #7474
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
05eb017
to
bf8f3a8
Compare
AugustinMauroy
approved these changes
Feb 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve as nodejs website. Need to wait diagnostics WG approval before merging.
Qard
approved these changes
Feb 5, 2025
aymen94
approved these changes
Feb 5, 2025
ovflowd
approved these changes
Feb 11, 2025
Lighthouse Results
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The current instructions for generating flamegraphs are functional but result in a pretty bad resulting view. These instructions use the tool maintained by the original creator of flamegraphs, and despite being older and in perl it really ouputs a better result.
Before:
![Screenshot 2025-02-03 at 10 07 05 PM](https://private-user-images.githubusercontent.com/1027776/409383540-3506ff3b-d325-4f35-a4ab-b552146120cd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiw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I1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMTMwMjUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTdmNzBlZmEyZGZkZWQ3M2NjYzhlM2EyYzdlYmFmYWQ5ZWFhYWRlYTA2Y2FmMjc0ZjI1YWFmYjY2YTJhN2MwMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ga2s4kumlxn2FNSGTgUzZZGfroL8HdQ6v_0zFLgHomQ)
Validation
I have tested these tools, see the screenshots after following the updated guide.
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.