ScopedProfile Class Reference
Used to provide C++ RAII-style profiling sample. The sample will start on the construction of the ScopedProfile
object and stop when the object leaves scope.
More...
#include <Profiler.hh>
Public Member Functions | |
ScopedProfile (const char *_name, uint32_t *_hash) | |
Constructor. Starts profile sample. More... | |
~ScopedProfile () | |
Destructor. Stops profile sample. More... | |
Detailed Description
Used to provide C++ RAII-style profiling sample. The sample will start on the construction of the ScopedProfile
object and stop when the object leaves scope.
Constructor & Destructor Documentation
◆ ScopedProfile()
|
inline |
Constructor. Starts profile sample.
- Parameters
-
[in] _name Name of the sample [in,out] _hash An optional hash value that can be cached between executions.
References Profiler::BeginSample(), and SingletonT< Profiler >::Instance().
◆ ~ScopedProfile()
|
inline |
Destructor. Stops profile sample.
References Profiler::EndSample(), and SingletonT< Profiler >::Instance().
The documentation for this class was generated from the following file: