From 87fa9e3788488f868411f0b12fb99acac792340a Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Thu, 2 Jan 2025 15:47:50 -0500 Subject: [PATCH] +flamegraph+samply --- projects/crates.io/flamegraph/package.yml | 22 ++++++++++++++++++++++ projects/crates.io/samply/package.yml | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 projects/crates.io/flamegraph/package.yml create mode 100644 projects/crates.io/samply/package.yml diff --git a/projects/crates.io/flamegraph/package.yml b/projects/crates.io/flamegraph/package.yml new file mode 100644 index 0000000000..83ce35bc04 --- /dev/null +++ b/projects/crates.io/flamegraph/package.yml @@ -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 diff --git a/projects/crates.io/samply/package.yml b/projects/crates.io/samply/package.yml new file mode 100644 index 0000000000..1e27f84818 --- /dev/null +++ b/projects/crates.io/samply/package.yml @@ -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