Wednesday, November 14, 2007

Tip of the day: Primitive but efficient way for profiling (on development machine)

Small thing I read about. It is so simple and obvious but I never thought about it...

In the lack of a decent profiler,

if u observe that a certain process takes a large amount of time (such as system startup),

start the debugger and while the time consuming task is running, click the pause button in VS.

Now take a look at the call stack to see which method take the time to execute.

No comments: