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 ).
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 ).