flamegraph-rs / flamegraph

Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
Apache License 2.0
4.61k stars 141 forks source link

Optional sudo flags as --root argument #295

Closed Korrigan closed 9 months ago

Korrigan commented 9 months ago

Thank you for this useful tool! :)

This PR allows to configure the sudo behavior when --root is used so one can provide additional command-line flags which will be passed to "sudo". This is especially useful when preserving environment is needed: cargo flamegraph --root='--preserve-env' --bin my-bin (so this provides a solution for #47 ).

djc commented 9 months ago

Thanks!

larseggert commented 7 months ago

Any chance for a release that would ship this PR?

djc commented 7 months ago

Published 0.6.5.