Running Scalene with elevated privileges does not produce profiler results. #430
-
Hello, I am using Ubuntu 20.04 LTS on a HardKernel ODroid M1 board, and I am using the terminal to launch Scalene/my application. The application I am trying to profile needs elevated access in order to open and maintain serial connection as well as write to logging files. If I run the command Is there a way to run Scalene with elevated privilege that I missed in the documentation? Thank you in advance for any help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So I assume you are running your program normally with I installed Scalene as root (not recommended), but it worked. You might try this, which I verified works for me on Ubuntu.
|
Beta Was this translation helpful? Give feedback.
So I assume you are running your program normally with
sudo python3 main.py
, correct?I installed Scalene as root (not recommended), but it worked. You might try this, which I verified works for me on Ubuntu.
sudo bash -c "scalene --cli ./main.py"