Public Member Functions | |
Profile (const std::string &name, bool isSystemProfile=false) | |
~Profile () |
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.
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().