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

New in version 3.14:

__init__(operation)