Class: QgsRuntimeProfiler¶
-
class
qgis.core.
QgsRuntimeProfiler
¶ Bases:
sip.wrapper
Constructor to create a new runtime profiler.
QgsRuntimeProfiler(QgsRuntimeProfiler)
-
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 – 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 – 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.
- Returns
The current total time collected in the profiler.
-