Moved here as a feature request from the following SO question:
http://stackoverflow.com/questions/38358881/how-to-profile-multiple-subprocesses-using-python-multiprocessing-and-memory-pro
The mprof script allows you to track memory usage of a process over time, and includes a -C flag which will also sum up the memory usage of all child processes (forks) spawned by the primary process.
Instead of summation, I would like the mprof script to include a flag that will identify each process by pid in the generated .dat file, allowing the plot command to visualize each process' memory usage independently of each other, over time.
Moved here as a feature request from the following SO question:
http://stackoverflow.com/questions/38358881/how-to-profile-multiple-subprocesses-using-python-multiprocessing-and-memory-pro
The
mprofscript allows you to track memory usage of a process over time, and includes a-Cflag which will also sum up the memory usage of all child processes (forks) spawned by the primary process.Instead of summation, I would like the
mprofscript to include a flag that will identify each process by pid in the generated.datfile, allowing theplotcommand to visualize each process' memory usage independently of each other, over time.