|
|
|
|
|
by fake-name
2848 days ago
|
|
> If you want to profile a multi-threaded application, you must give an entry point to these profilers and then maybe merge the outputs. It basically boils down to (currently) doing multiprocessing profiling is a giant pain in the ass, you have to manually attach the profiler yourself if you ever launch another process, and every profiled process produces it's own output file. It's not impossible, it's just very annoying. I've been vaguely meaning to write a thing which attaches to the fork() call and automatically starts the profiler in the child-process, and handles aggregating all the results back to a single output when all children exit. |
|