gz/common/Profiler.hh
Go to the documentation of this file.
Used to perform application-wide performance profiling.
Definition: gz/common/Profiler.hh:59
void BeginSample(const char *_name, uint32_t *_hash=nullptr)
Begin a named profiling sample. Begins a CPU profiler sample with a given name. Can optionally take a...
void LogText(const char *_text)
Log text to profiler output (if supported) If the underlying profiler implementation supports additio...
bool Valid() const
Detect if profiler is enabled and has an implementation.
void SetThreadName(const char *_name)
Set the name of the current thread.
std::string ImplementationName() const
Get the underlying profiler implentation name.
Used to provide C++ RAII-style profiling sample. The sample will start on the construction of the Sco...
Definition: gz/common/Profiler.hh:107
~ScopedProfile()
Destructor. Stops profile sample.
Definition: gz/common/Profiler.hh:118
ScopedProfile(const char *_name, uint32_t *_hash)
Constructor. Starts profile sample.
Definition: gz/common/Profiler.hh:112
static Profiler * Instance()
Get an instance of the singleton.
Definition: gz/common/SingletonT.hh:32
Forward declarations for the common classes.