Scalene with long running program

550 Views Asked by At

I know I can run scalene with

scalene --cli your_prog.py

but for long running program how can I regularly print memory usage? (using gui/cli scalene)

1

There are 1 best solutions below

2
On

Found the answer, there is an option

--profile-interval PROFILE_INTERVAL

to output profile interval every PROFILE_INTERVAL seconds, default is infinity

you can get all these options using

scalene --help