[GD-General] profiling multi threaded applications
Brought to you by:
vexxed72
From: Andras B. <and...@gm...> - 2005-07-20 14:35:48
|
I was about to add a simple profiler into our engine, but I've just realized that the usual hierarchical profiler that measures the time for a chunk of code won't cut it, in a multithreaded application. I understand that even when I have a single threaded app, there are usually several other applications are running in the background, but mostly they are all idle, so it's just noise. But in this case, I would have multiple, heavily working threads. If the OS switches back and forth between these threads all the time, then how is it possible to make accurate, or even just usable measurements?? Thanks, Andras |