Python Forum

Full Version: can I tell how much cpu is used by a program?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello ,
I have start to use "multiprocessing \ Pool " to run some code
and I want to know how much I'm using now (without the pool)
how much used when I use pool(5) , and how much using pool(30)
to make sure my computer can handle and will not crush \ get memory issue

how can I do it ?

Thanks ,
you'll have to figure where to put the calls, but you can use timeit