Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
with:
toolchain: stable
components: rustfmt, clippy
- run: rustup toolchain install nightly # we need nightly for some tests which try to detect rustflags
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo fmt -- --check
- run: cargo test

msrv:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ opener = "0.8.1"
shlex = "2.0.1"
rustc-demangle = { version = "0.1", features = ["std"] }

[dev-dependencies]
current_platform = "0.2"

[target.'cfg(unix)'.dependencies]
signal-hook = "0.4.1"
serde_json = "1"

[target.'cfg(windows)'.dependencies]
blondie = "0.5.2"
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ your cargo binary directory. On most systems this is something like `~/.cargo/bi

## Linux

**Note**: If you're using lld (which is the default since Rust 1.90.0) or mold on Linux, you must use the `--no-rosegment` flag. Otherwise perf will not be able to generate accurate stack traces ([explanation](https://crbug.com/919499#c16)).
**Note**: If you're using lld (which is the default since Rust 1.90.0) or mold on Linux, you may need to use the `--no-rosegment` flag. Otherwise perf will not be able to generate accurate stack traces ([explanation](https://crbug.com/919499#c16)). `cargo-flamegraph` tries to add this flag automatically but your setup may require extra configuration.

<details>

For example, Rust 1.90.0 and later:

Expand All @@ -64,6 +66,8 @@ linker = "clang"
rustflags = ["-Clink-arg=-fuse-ld=/usr/local/bin/mold", "-Clink-arg=-Wl,--no-rosegment"]
```

</details>

#### Debian (x86 and aarch)

**Note**: Debian bullseye packages an outdated version of Rust which does not meet flamegraph's requirements. You should use [rustup](https://rustup.rs/) to install an up-to-date version of Rust, or upgrade to Debian bookworm or newer.
Expand Down
Loading
Loading