I am trying to debug a memory leak in a module using Scalene.
Unfortunately, it appears that I can only run scalene script.py
while I need to be able to specify the module to correctly run the application with python -m mymodule
, which I can't seem to do with scalene.
Is there a way to overcome this? Thank you in advance
cf Scalene's documentation :
scalene your_prog.py # full profile (prints to console)
python3 -m scalene your_prog.py # equivalent alternative
You can use the second form with Scalene.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With