Gazebo Common

API Reference

6.0.0~pre2
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.
 
 ~ScopedProfile ()
 Destructor. Stops profile sample.
 

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()

ScopedProfile ( const char *  _name,
uint32_t *  _hash 
)
inline

Constructor. Starts profile sample.

Parameters
[in]_nameName of the sample
[in,out]_hashAn optional hash value that can be cached between executions.

◆ ~ScopedProfile()

~ScopedProfile ( )
inline

Destructor. Stops profile sample.


The documentation for this class was generated from the following file: