Closed brainstorm closed 1 year ago
I think the initial error you ran into is because flamegraph only tries to run the workload command with sudo
-- that shouldn't need release/.cargo-lock
, which likely gets permission denied because you compiled as root
before running that command.
If you feel the documentation can be improved, please submit a well-argued change as a PR.
I expected
--root
to prepend the commandline with sudo? According tocargo flamegraph --help
:--root Run with root privileges (using sudo)
But in practice, it doesn't seem to work as expected whereas manually prepending
sudo
works fine? I'd propose to eliminate the flag to avoid confusion.I'm questioning the docs in the README.md too, which state: