207 Q_DECL_DEPRECATED
void beginGroup(
const QString &name )
SIP_DEPRECATED;
220 QStringList childGroups( const QString &parent = QString(), const QString &group = "startup" ) const;
230 void start( const QString &name, const QString &group = "startup", const QString &
id = QString() );
235 void end( const QString &group = "startup" );
245 void record( const QString &name,
double time, const QString &group = "startup", const QString &
id = QString() );
251 double profileTime( const QString &name, const QString &group = "startup" ) const;
256 void clear( const QString &group = "startup" );
262 double totalTime( const QString &group = "startup" );
267 QSet< QString > groups()
const {
return mGroups; }
275 bool groupIsActive(
const QString &group )
const;
280 static QString translateGroupName(
const QString &group );
284 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
285 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
286 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
287 QModelIndex parent(
const QModelIndex &child )
const override;
288 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
289 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
296 QString asText(
const QString &group = QString() );
302 void started(
const QString &group,
const QStringList &path,
const QString &name,
const QString &
id );
303 void ended(
const QString &group,
const QStringList &path,
const QString &name,
const QString &
id,
double elapsed );
314 void otherProfilerStarted(
const QString &group,
const QStringList &path,
const QString &name,
const QString &
id );
315 void otherProfilerEnded(
const QString &group,
const QStringList &path,
const QString &name,
const QString &
id,
double elapsed );
321 bool mInitialized =
false;
322 void setupConnections();
328 void extractModelAsText( QStringList &lines,
const QString &group,
const QModelIndex &parent = QModelIndex(),
int level = 0 );
335 QMap< QString, QStack< QgsRuntimeProfilerNode * > > mCurrentStack;
336 std::unique_ptr< QgsRuntimeProfilerNode > mRootNode;
338 QSet< QString > mGroups;