Original Post
Are there any free C++ profilers that someone would recommend? Thanks. -Nick
Quote:
Original post by nickwinters
Are there any free C++ profilers that someone would recommend?
Thanks.
-Nick
- <Profile>- <Entry> <Name>Program</Name> <Hits>1</Hits> <Time>0.14889693455053377000</Time> </Entry>- <Entry> <Name>Test For Loop 1000 Iterations Math</Name> <Hits>1000</Hits> <Time>0.00066504539559014263</Time> </Entry>- <Entry> <Name>Test For Loop 1000 Iterations No Math</Name> <Hits>1000</Hits> <Time>0.00073357527686321463</Time> </Entry>- <Entry> <Name>Test For Loop 32767 Iterations Math</Name> <Hits>32767</Hits> <Time>0.02826456649705676900</Time> </Entry>- <Entry> <Name>Test For Loop 32767 Iterations No Math</Name> <Hits>32767</Hits> <Time>0.03429002294722138800</Time> </Entry> </Profile>#include "CProfiler.h"// Profiler variableCProfiler profiler;int main( int argc, char* argv[] ){ // Start the total program time profiler.Start( "Program" ); for ( int x=0; x < 1000; x++ ) { profiler.Start( "Test For Loop 1000 Iterations Math" ); int val = 100 / 2 * 5 / 5 * 6 / 4 * 7 / 4; profiler.Stop( "Test For Loop 1000 Iterations Math" ); } for ( x=0; x < 1000; x++ ) { profiler.Start( "Test For Loop 1000 Iterations No Math" ); ; // Do nothing profiler.Stop( "Test For Loop 1000 Iterations No Math" ); } for ( x=0; x < 32767; x++ ) { profiler.Start( "Test For Loop 32767 Iterations Math" ); int val = 100 / 2 * 5 / 5 * 6 / 4 * 7 / 4; profiler.Stop( "Test For Loop 32767 Iterations Math" ); } for ( x=0; x < 32767; x++ ) { profiler.Start( "Test For Loop 32767 Iterations No Math" ); ; // Do nothing profiler.Stop( "Test For Loop 32767 Iterations No Math" ); } // Stop the total program time profiler.Stop( "Program" ); // It is important to remember to save the results ;) but call this last! profiler.Write_Data( "Profile.xml" ); // Standard return return 0;}Quote:
There are a few free commercial profilers that are good. One example is VTune for intel processors
Quote:
Original post by wyrzy Quote:
There are a few free commercial profilers that are good. One example is VTune for intel processors
VTune is Not free for Windows. There is a free evalution (believe its good for 30 days - don't quote me). If you are running Windows then VTune is free for Non-Commercial development.
I personally use CompuWare's DevPartner Community Edition.
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more