Python Forum
can I tell how much cpu is used by a program?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can I tell how much cpu is used by a program?
#1
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 ,
Reply
#2
you'll have to figure where to put the calls, but you can use timeit
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020