201 Q_DECL_DEPRECATED
void beginGroup(
const QString &name )
SIP_DEPRECATED;
214 QStringList childGroups( const QString &parent = QString(), const QString &group = "startup" ) const;
224 void start( const QString &name, const QString &group = "startup", const QString &
id = QString() );
229 void end( const QString &group = "startup" );
239 void record( const QString &name,
double time, const QString &group = "startup", const QString &
id = QString() );
245 double profileTime( const QString &name, const QString &group = "startup" ) const;
250 void clear( const QString &group = "startup" );
256 double totalTime( const QString &group = "startup" );
261 QSet< QString > groups()
const {
return mGroups; }
269 bool groupIsActive(
const QString &group )
const;
274 static QString translateGroupName(
const QString &group );
278 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
279 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
280 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
281 QModelIndex parent(
const QModelIndex &child )
const override;
282 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
283 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
290 QString asText(
const QString &group = QString() );
296 void started(
const QString &group,
const QStringList &path,
const QString &name,
const QString &
id );
297 void ended(
const QString &group,
const QStringList &path,
const QString &name,
const QString &
id,
double elapsed );
308 void otherProfilerStarted(
const QString &group,
const QStringList &path,
const QString &name,
const QString &
id );
309 void otherProfilerEnded(
const QString &group,
const QStringList &path,
const QString &name,
const QString &
id,
double elapsed );
315 bool mInitialized =
false;
316 void setupConnections();
322 void extractModelAsText( QStringList &lines,
const QString &group,
const QModelIndex &parent = QModelIndex(),
int level = 0 );
329 QMap< QString, QStack< QgsRuntimeProfilerNode * > > mCurrentStack;
330 std::unique_ptr< QgsRuntimeProfilerNode > mRootNode;
332 QSet< QString > mGroups;