nrEngine::Profile Class Reference

Single profile processed by the profiler. More...


Public Member Functions

 Profile (const std::string &name, bool isSystemProfile=false)
 ~Profile ()


Detailed Description

Single profile processed by the profiler.

Our profiler does store such kind of profiles and manage them. Use macro NR_Profile(name) instead of instantiating this objects directly.
Using of such kind of macros does help to profile a single scope: i.e.: { NR_Profile("Scope"); .... }

Definition at line 79 of file Profiler.h.


Constructor & Destructor Documentation

nrEngine::Profile::Profile ( const std::string &  name,
bool  isSystemProfile = false 
)

Create an instance of this class and start profiling for this profile.

Definition at line 25 of file Profiler.cpp.

References nrEngine::Profiler::beginProfile(), and nrEngine::Engine::sProfiler().

nrEngine::Profile::~Profile (  ) 

Release used memory and stop the profiler for this profile.

Definition at line 31 of file Profiler.cpp.

References nrEngine::Profiler::endProfile(), and nrEngine::Engine::sProfiler().


The documentation for this class was generated from the following files:
Generated on Wed Sep 12 23:19:43 2007 for nrEngine by  doxygen 1.5.1