How do you find the least optimized parts of a program?

Are there any tools to give some sort of histogram of where most of the execution time of the program is spent at?

This is for a project using c++ in visual studio 2008.

Answers


The name you're after is a profiler. Try Find Application Bottlenecks with Visual Studio Profiler


Need Your Help

XNA - Moving an animated rectangle horizontaly (no user input, but timer)

c# timer xna rectangles

Here I want to move this animated rectangle horizontaly without user input, using timer, maybe? The animated rectangle should move left and right (from starting point to end point, whole path = 315

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.