QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
#include <qgsruntimeprofiler.h>
Public Member Functions | |
QgsRuntimeProfiler () | |
Constructor to create a new runtime profiler. More... | |
void | beginGroup (const QString &name) |
Begin the group for the profiler. More... | |
void | clear () |
clear Clear all profile data. More... | |
void | end () |
End the current profile event. More... | |
void | endGroup () |
End the current active group. More... | |
const QList< QPair< QString, double > > | profileTimes () const |
Return all the current profile times. More... | |
void | start (const QString &name) |
Start a profile event with the given name. More... | |
double | totalTime () |
The current total time collected in the profiler. More... | |
Static Public Member Functions | |
static QgsRuntimeProfiler * | instance () |
Instance of the run time profiler. More... | |
Definition at line 11 of file qgsruntimeprofiler.h.
QgsRuntimeProfiler::QgsRuntimeProfiler | ( | ) |
Constructor to create a new runtime profiler.
Definition at line 14 of file qgsruntimeprofiler.cpp.
void QgsRuntimeProfiler::beginGroup | ( | const QString & | name | ) |
Begin the group for the profiler.
Groups will append {GroupName}/ to the front of the profile tag set using start.
name | The name of the group. |
Definition at line 19 of file qgsruntimeprofiler.cpp.
void QgsRuntimeProfiler::clear | ( | ) |
clear Clear all profile data.
Definition at line 59 of file qgsruntimeprofiler.cpp.
void QgsRuntimeProfiler::end | ( | ) |
End the current profile event.
Definition at line 49 of file qgsruntimeprofiler.cpp.
void QgsRuntimeProfiler::endGroup | ( | ) |
End the current active group.
Definition at line 29 of file qgsruntimeprofiler.cpp.
|
static |
Instance of the run time profiler.
To use the main profiler use this instance.
Definition at line 7 of file qgsruntimeprofiler.cpp.
Return all the current profile times.
Definition at line 55 of file qgsruntimeprofiler.h.
void QgsRuntimeProfiler::start | ( | const QString & | name | ) |
Start a profile event with the given name.
name | The name of the profile event. Will have the name of the active group appened after ending. |
Definition at line 43 of file qgsruntimeprofiler.cpp.
double QgsRuntimeProfiler::totalTime | ( | ) |
The current total time collected in the profiler.
Definition at line 64 of file qgsruntimeprofiler.cpp.