Search code examples
c#visual-studio-2008optimizationgprof

Optimization: A tool like gprof for visual studio


As a C# programmer, i'm in a transition from small projects to medium projects. I didn't need a profiler for my little projects before. But now I need a tool that help me improving the performance of my code. I used gprof many years ago, in C.

Can someone give me a starting point, or recommend me a tool like gprof for VS2008? That is: A tool that counts how many times every function has been called, and how many time It's spended in every function. No matter if a had to pay for it (under certains limits).

Any other advice about how to locate portions of code that should be optimized will be great.

Thanks.


Solution

  • Any other advice about how to locate portions of code that should be optimized will be great.

    You can do better than gprof or anything that acts like it.

    Here's a quick-and-dirty explanation, including a link to the original gprof paper, and an explanation of what it does and does not do.

    Here's an example.