Class: ScopedRuntimeProfileContextManager¶
- class qgis.core.ScopedRuntimeProfileContextManager(operation)¶
Bases:
object
Context manager used to profile blocks of code in the QgsApplication.profiler() registry.
with QgsRuntimeProfiler.profile('My operation'): # do something
- __init__(operation)¶
Initialize self. See help(type(self)) for accurate signature.