Skip to content

Commit

Permalink
+flamegraph+samply
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider committed Jan 2, 2025
1 parent 2c6816b commit 87fa9e3
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions projects/crates.io/flamegraph/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
distributable:
url: https://github.com/flamegraph-rs/flamegraph/archive/refs/tags/{{ version.tag }}.tar.gz
strip-components: 1

provides:
- bin/flamegraph
- bin/cargo-flamegraph

versions:
github: flamegraph-rs/flamegraph

build:
dependencies:
rust-lang.org: '>=1.56'
rust-lang.org/cargo: '*'
script: cargo install --locked --path . --root {{prefix}}

test:
- test "$(flamegraph --version)" = "flamegraph {{ version }}"
# we'd love to do this, but it requires root perms, and that we hate
# - flamegraph -- {{prefix}}/bin/flamegraph --help
# - test -f flamegraph.svg
22 changes: 22 additions & 0 deletions projects/crates.io/samply/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
distributable:
url: https://github.com/mstange/samply/archive/refs/tags/{{ version.tag }}.tar.gz
strip-components: 1

provides:
- bin/samply

versions:
github: mstange/samply/tags
strip: /^samply-v/

build:
dependencies:
rust-lang.org: '>=1.74'
rust-lang.org/cargo: '*'
script: cargo install --locked --path samply --root {{prefix}}

test:
- test "$(samply --version)" = "samply {{ version }}"
# we'd love to do this on linux, but it requires root perms, and that we hate
# even on macOS, it loads a server, starts a browser, so... no.
# - samply record {{prefix}}/bin/samply --help

0 comments on commit 87fa9e3

Please sign in to comment.