microsoft / microsoft/PixEvents

PIX should offer psuedo-coloring api like Pefetto

Open
#10 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
104
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Perfetto has no option to specify colors, but instead hashes the name into reasonable colors to differentiate blocks. The Pix API should offer something similar. Since there is none, most pass a constant color to each Begin/EndEvent. "Wait" could also be special cased to highlight in red.

https://github.com/google/perfetto/blob/0c893ed6bf6b42e3fee58daf3380d301c72550ed/ui/src/components/colorizer.ts#L4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Pix API entry points that emit BeginEvent and EndEvent, and compare the linked Perfetto ui/src/components/colorizer.ts implementation. Determine how pseudocoloring and the special red treatment for "Wait" should be exposed, then use the repository's decoder and tests to verify the resulting event colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.