Add profile command to surface profiling data

Open
#56 0 comments 0 reactions 1 assignee View on GitHub

@BYK is already working on this.

Since Feb 5, 2026.

Assessment

This issue has not been assessed yet.

Description

Summary

Add a profile command that fetches and displays profiling data from Sentry in a format useful for analysis (both human and LLM consumption).

Background

From internal discussion: Adding profile support to the CLI would allow LLMs to grep/analyze profiling data.

Proposed Approach

  1. Fetch profile data from Sentry API
  2. Convert to a graph structure and surface the leaf nodes with the most samples
  3. Ignore system frames to produce cleaner results
  4. Output in a consumable format (e.g., markdown table, JSON) that works well for both humans and LLM analysis

Potential Output

  • Top functions by sample count (excluding system frames)
  • Call hierarchy / flamegraph as markdown
  • Hotspot identification
Dominant language
TypeScript
Stars
121
Forks
14
Avg merge
22h 3m
Merged PRs (30d)
94

Contributor guide

No contributing guide indexed for this repository

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.

More from getsentry/cli

All issues in getsentry/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.