Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Oct 27, 2025

Introduce a new --heatmap output format that provides line-by-line
execution visualization. The heatmap shows:

  • Color-coded execution intensity for each line (cold → warm → hot → very hot)
  • Inline sample counts and percentages per line
  • Per-file statistics (total samples, hottest line)
  • Interactive call graph navigation with caller/callee buttons
  • Module type badges (stdlib, site-packages, project code)

Unlike flamegraphs which show call stacks and time distribution, heatmaps
excel at identifying hot code paths within files, understanding line-level
execution patterns, and navigating through call relationships.

@pablogsal
Copy link
Member Author

CC @ambv

Introduce a new --heatmap output format that provides line-by-line
execution visualization. The heatmap shows:

- Color-coded execution intensity for each line (cold → warm → hot → very hot)
- Inline sample counts and percentages per line
- Per-file statistics (total samples, hottest line)
- Interactive call graph navigation with caller/callee buttons
- Module type badges (stdlib, site-packages, project code)

Unlike flamegraphs which show call stacks and time distribution, heatmaps
excel at identifying hot code paths within files, understanding line-level
execution patterns, and navigating through call relationships.
Copy link
Member

@savannahostrowski savannahostrowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, this is so cool! I left a couple of comments, but also wanted to mention that I really loved that you added a minimap to show hotspots and the permalinking on line click; so nice for jumping around and sharing results.

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.

2 participants