around this issue I'm trying to run cProfile.runctx() on each process in a multiprocessing pool, to get an idea of what the multiprocessing bottlenecks are in my source. Here is a simplified example of what I'm trying to do: , Try this:
I hope this helps . It seems cProfile simply doesn't work with multiprocessing. If you are happy to modify the code only profile the main process (or add specific profiling for the subprocesses), cProfile.run() seems to work to a degree.