16 #ifndef QGSEVENTTRACING_H 17 #define QGSEVENTTRACING_H 19 #include "qgis_core.h" 24 #include <QElapsedTimer> 80 class CORE_EXPORT QgsEventTracing
96 static bool startTracing();
101 static bool stopTracing();
106 static bool isTracingEnabled();
111 static bool writeTrace(
const QString &fileName );
118 static void addEvent( EventType type,
const QString &category,
const QString &name,
const QString &
id = QString() );
127 ScopedEvent(
const QString &category,
const QString &name ): mCat( category ), mName( name ) { addEvent( Begin, mCat, mName ); }
128 ~ScopedEvent() { addEvent( End, mCat, mName ); }
137 #endif // QGSEVENTTRACING_H