cargo-profile icon indicating copy to clipboard operation
cargo-profile copied to clipboard

DTrace problem

Open ericbodden opened this issue 2 years ago • 0 comments

Hello.

When trying to run the profiler, I get this error message. Previously I tried flamegraph directly and received the same error. I had hoped that using this project would help, but that does not seem to be the case. I am using an Apple M1 MacBook with OSX Ventura 13.2.1.

$ sudo cargo profile flamegraph Finished dev [unoptimized + debuginfo] target(s) in 0.10s warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 note: to see what the problems were, use the option --future-incompat-report, or run cargo report future-incompatibilities --id 1 Profiling /Users/eric/git/scan-engine-rust/rust-engine/target/debug/scan-jvm dtrace: system integrity protection is on, some features will not be available

dtrace: failed to execute /Users/eric/git/scan-engine-rust/rust-engine/target/debug/scan-jvm: DTrace cannot instrument translated processes Error: failed to create flamegraph

Caused by: 0: failed to profile program 1: the binary file exited with an error: "dtrace" "-x" "ustackframes=100" "-n" "profile-997 /pid == $target/ { @[ustack(100)] = count(); }" "-o" "/tmp/cargo-profile.YCiO22C4JoE6/cargo-profile-flamegraph.stacks" "-c" "/Users/eric/git/scan-engine-rust/rust-engine/target/debug/scan-jvm"

ericbodden avatar Apr 06 '23 07:04 ericbodden