21 mGroupStack.
push( name );
31 if ( mGroupStack.isEmpty() )
33 qWarning(
"QSettings::endGroup: No matching beginGroup()" );
38 int len = group.
size();
40 mGroupPrefix.
truncate( mGroupPrefix.
size() - ( len + 1 ) );
53 double timing = mProfileTime.
elapsed() / 1000.0;
61 mProfileTimes.
clear();
68 for ( ; it != mProfileTimes.
constEnd(); ++it )
70 total += ( *it ).second;
QgsRuntimeProfiler()
Constructor to create a new runtime profiler.
void truncate(int position)
QString & prepend(QChar ch)
void endGroup()
End the current active group.
double totalTime()
The current total time collected in the profiler.
void beginGroup(const QString &name)
Begin the group for the profiler.
void append(const T &value)
static QgsRuntimeProfiler * instance()
Instance of the run time profiler.
void clear()
clear Clear all profile data.
void start(const QString &name)
Start a profile event with the given name.
void end()
End the current profile event.
const_iterator constEnd() const
const_iterator constBegin() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const