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