16#ifndef QGSEVENTTRACING_H 
   17#define QGSEVENTTRACING_H 
   24#include <QElapsedTimer> 
   82class CORE_EXPORT QgsEventTracing
 
   98    static bool startTracing();
 
  103    static bool stopTracing();
 
  108    static bool isTracingEnabled();
 
  113    static bool writeTrace( 
const QString &fileName );
 
  120    static void addEvent( EventType type, 
const QString &category, 
const QString &name, 
const QString &
id = QString() );
 
  129        ScopedEvent( 
const QString &category, 
const QString &name ): mCat( category ), mName( name ) { addEvent( Begin, mCat, mName ); }
 
  130        ~ScopedEvent() { addEvent( End, mCat, mName ); }