QGIS API Documentation  3.4.15-Madeira (e83d02e274)
Public Member Functions | List of all members
QgsRuntimeProfiler Class Reference

#include <qgsruntimeprofiler.h>

Public Member Functions

 QgsRuntimeProfiler ()=default
 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
 Returns 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...
 

Detailed Description

Definition at line 29 of file qgsruntimeprofiler.h.

Constructor & Destructor Documentation

QgsRuntimeProfiler::QgsRuntimeProfiler ( )
default

Constructor to create a new runtime profiler.

Member Function Documentation

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.

Parameters
nameThe name of the group.

Definition at line 18 of file qgsruntimeprofiler.cpp.

void QgsRuntimeProfiler::clear ( )

clear Clear all profile data.

Definition at line 57 of file qgsruntimeprofiler.cpp.

void QgsRuntimeProfiler::end ( )

End the current profile event.

Definition at line 48 of file qgsruntimeprofiler.cpp.

void QgsRuntimeProfiler::endGroup ( )

End the current active group.

Definition at line 28 of file qgsruntimeprofiler.cpp.

const QList<QPair<QString, double > > QgsRuntimeProfiler::profileTimes ( ) const
inline

Returns all the current profile times.

Returns
A list of profile event names and times.
Note
not available in Python bindings

Definition at line 67 of file qgsruntimeprofiler.h.

void QgsRuntimeProfiler::start ( const QString &  name)

Start a profile event with the given name.

Parameters
nameThe name of the profile event. Will have the name of the active group appended after ending.

Definition at line 42 of file qgsruntimeprofiler.cpp.

double QgsRuntimeProfiler::totalTime ( )

The current total time collected in the profiler.

Returns
The current total time collected in the profiler.

Definition at line 62 of file qgsruntimeprofiler.cpp.


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