-
Notifications
You must be signed in to change notification settings - Fork 23
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
POC: Add more colours #121
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Keith Cirkel <[email protected]>
aac2abd
to
732a9ec
Compare
732a9ec
to
fe87e37
Compare
fe87e37
to
8a3cd45
Compare
Makes the logic simpler. We initially made this a special check at the start as it would be confused with cfunc. But I can see there are spans further down in the stack like "Array#each" that will be detected as "Kernel" so I think it's ok to just treat this "Kernel" category as all the other ones. This matches what speedscope does as well.
It's magenta.
Did a bit of refactoring to extract the nested if statements into methods. And changed some colours. Here's a fresh profile: |
Thanks for fixing the failing CI @joshuay03! 🙇♀️ |
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.
Thank you for the PR. I like this, but I’ll leave the approval (specifically regarding the choice of colours) to @jhawthorn
@keithamus and I paired on a POC for this.
The colours are totally random right now, but this was a fun little foray into making Vernier look more like speedscope. Looking for feedback.
Example JSON profile:
pickles.json
How to get a JSON profile with colours:
The list of available colours is here:
https://github.com/firefox-devtools/profiler/blob/9175e2462bedd013adcf97acb28bda50c54791a9/src/utils/colors.js#L103-L175