Class: QgsRuntimeProfiler

class qgis.core.QgsRuntimeProfiler

Bases: sip.wrapper

Constructor to create a new runtime profiler.

QgsRuntimeProfiler(QgsRuntimeProfiler)

Methods

beginGroup

Begin the group for the profiler.

clear

clear Clear all profile data.

end

End the current profile event.

endGroup

End the current active group.

start

Start a profile event with the given name.

totalTime

The current total time collected in the profiler.

beginGroup(self, name: str)

Begin the group for the profiler. Groups will append {GroupName}/ to the front of the profile tag set using start.

Parameters

name (str) – The name of the group.

clear(self)

clear Clear all profile data.

end(self)

End the current profile event.

endGroup(self)

End the current active group.

start(self, name: str)

Start a profile event with the given name.

Parameters

name (str) – The name of the profile event. Will have the name of the active group appended after ending.

totalTime(self) → float

The current total time collected in the profiler.

Return type

float

Returns

The current total time collected in the profiler.