Is it possible to choose the color for a given frame/function?
- Dominant language
- TypeScript
- Stars
- 6.8k
- Forks
- 320
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I've been looking at https://github.com/jlfwong/speedscope/wiki/Importing-from-custom-sources.
I was wondering if it would be possible to choose the color in which a frame is represented.
For instance the color could represent which language/what kind of function it is, or whether the function is compiled or interpreted, etc.
* I looked at https://github.com/jlfwong/speedscope/blob/main/src/lib/file-format-spec.ts but could not see anything related to that.
* The collapsed stack format does not support it either, but the flamegraph.pl script has a `--color` palette option.
* The Google "Trace Event Format" seems to support a `cname`, but that doesn't seem used by SpeedScope.
Is there a way to specify the color of frames/functions with speedscope?
Contributor guide
Research direction
Start by reading src/lib/file-format-spec.ts and the linked custom-source documentation, then compare the collapsed stack format and Google Trace Event Format's cname support. Determine the supported input and rendering behavior needed for per-frame colors; done should include an agreed format, implementation, and documentation or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100