Skip to content

snpefk/gha-flamegraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gha-flamegraph

Turn a GitHub Actions workflow run into a flamegraph SVG with step-level granularity.

Example flamegraph Example for https://github.com/octocat/Hello-World/actions/runs/22796200342:

Install

cargo build --release
# binary at target/release/gha-flamegraph

Usage

export GHA_FLAMEGRAPH_GITHUB_TOKEN=ghp_...

gha-flamegraph --repo owner/name --run-id 1234567890
# → Wrote flamegraph to flamegraph.svg
gha-flamegraph --token $(gh auth token) --repo owner/name --run-id 1234567890

# → Wrote flamegraph to flamegraph.svg

Usage:

gha-flamegraph: turn a GitHub Actions workflow run into a flamegraph SVG

Usage: gha-flamegraph [OPTIONS] --repo <REPO> --run-id <RUN_ID> --token <TOKEN>

Options:
      --repo <REPO>      Repository in `owner/name` form (e.g. `octocat/Hello-World`)
      --run-id <RUN_ID>  Workflow run ID to inspect
      --token <TOKEN>    GitHub token. Falls back to GHA_FLAMEGRAPH_GITHUB_TOKEN [env: GHA_FLAMEGRAPH_GITHUB_TOKEN]
      --output <PATH>    Path for the rendered SVG flamegraph. Defaults to `flamegraph.svg` in the current directory [default: flamegraph.svg]
  -h, --help             Print help
  -V, --version          Print version

About

Flamegraphs for GitHub Actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages