Skip to content

dbcfd/CppProfiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Profiler

Based on Andrew's High Performance C++ Profiler (http://floodyberry.wordpress.com/2009/10/07/high-performance-cplusplus-profiling/), this is an inline profiler.

Build Instructions

If using Visual Studio a standard cmake command is

cmake .. -G"Visual Studio 9 2008" -DLINK_STATICALLY:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release

This will build with Visual Studio 2008, and link the library statically. It will also build in Release mode.

Basic Usage

Set compiler flag ENABLE_PROFILER for any build type you wish to profile. If using inline or linking statically, set USE_PROFILER_STATICALLY.

Call PROFILER_DETECTARGS at the start of your programs.

Call PROFILE_SCOPED or PROFILE_SCOPED_DESC at the beginning of any scoped block you wish to profile.

Call PROFILER_DUMPHTML, PROFILER_DUMPSTRING, or PROFILER_DUMP at the end to receive results.

About

Inline c++ profiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published