lundi 6 juillet 2020

How can I inspect processes created using Python's multiprocessing module to see their current workload?

I've implemented the Producer-Consumer pattern using Python's multiprocessing module.

I want to inspect the Consumer's workload to identify whether the single Producer is able to produce "work" fast enough.

Is there any canonical way of seeing this besides logging? In particular, is it possible to see which Consumers are currently sleeping, e.g. in a call to multiprocessing.Queue.get()?

Aucun commentaire:

Enregistrer un commentaire