Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Dec 12, 2025

The profile tree was being built with a double-reversal bug:

  1. profileProcessor.ts reverses stacks (root at index 0)
  2. profileTree.ts iterated in reverse again, starting from leaf

Changed tree building to iterate forward through the already-reversed
stacks, correctly building from root frames to leaf frames.

Fixes #1100

image

The profile tree was being built with a double-reversal bug:
1. profileProcessor.ts reverses stacks (root at index 0)
2. profileTree.ts iterated in reverse again, starting from leaf

Changed tree building to iterate forward through the already-reversed
stacks, correctly building from root frames to leaf frames.

Fixes #1100
@BYK BYK deployed to Preview December 12, 2025 11:42 — with GitHub Actions Active
@vercel
Copy link

vercel bot commented Dec 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
spotlightjs Ready Ready Preview Comment Dec 12, 2025 11:43am

@BYK BYK merged commit 8c11091 into main Dec 12, 2025
20 checks passed
@BYK BYK deleted the fix/flamechart-tree-ordering branch December 12, 2025 11:59
BYK pushed a commit that referenced this pull request Dec 13, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @spotlightjs/[email protected]

### Minor Changes

- Add `--open` / `-o` CLI flag to automatically open the Spotlight
dashboard in your default browser when starting the sidecar
([#1200](#1200))

### Patch Changes

- Fixed flamechart tree building to iterate from root to leaf frames,
resolving fragmented visualization
([#1201](#1201))

- shifted electron dependencies to dev dependencies as there were
getting installed with npx for spotlight run
([#1184](#1184))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad splitting on profile flame graph

2 participants