A node representing an entry in a QgsRuntimeProfiler.
More...
#include <qgsruntimeprofiler.h>
A node representing an entry in a QgsRuntimeProfiler.
- Since
- QGIS 3.16
Definition at line 39 of file qgsruntimeprofiler.h.
◆ Roles
Custom node data roles.
Enumerator |
---|
Name | Profile item name.
|
Group | Node group.
|
Elapsed | Node elapsed time.
|
ParentElapsed | Total elapsed time for node's parent.
|
Definition at line 44 of file qgsruntimeprofiler.h.
◆ QgsRuntimeProfilerNode() [1/2]
QgsRuntimeProfilerNode::QgsRuntimeProfilerNode |
( |
const QString & |
group, |
|
|
const QString & |
name |
|
) |
| |
◆ QgsRuntimeProfilerNode() [2/2]
◆ ~QgsRuntimeProfilerNode()
QgsRuntimeProfilerNode::~QgsRuntimeProfilerNode |
( |
| ) |
|
|
default |
◆ addChild()
◆ child()
Finds the child with matching group and name.
Returns nullptr
if a matching child was not found.
Definition at line 95 of file qgsruntimeprofiler.cpp.
◆ childAt()
◆ childCount()
int QgsRuntimeProfilerNode::childCount |
( |
| ) |
const |
|
inline |
◆ clear()
void QgsRuntimeProfilerNode::clear |
( |
| ) |
|
◆ data()
QVariant QgsRuntimeProfilerNode::data |
( |
int |
role = Qt::DisplayRole | ) |
const |
◆ elapsed()
double QgsRuntimeProfilerNode::elapsed |
( |
| ) |
const |
Returns the node's elapsed time, in seconds.
If the node is still running then 0 will be returned.
Definition at line 137 of file qgsruntimeprofiler.cpp.
◆ fullParentPath()
QStringList QgsRuntimeProfilerNode::fullParentPath |
( |
| ) |
const |
◆ indexOf()
Returns the index of the specified child node.
- Warning
- child must be a valid child of this node.
Definition at line 83 of file qgsruntimeprofiler.cpp.
◆ operator=()
◆ parent()
Returns the node's parent node.
If parent is nullptr
, the node is a root node
Definition at line 69 of file qgsruntimeprofiler.h.
◆ removeChildAt()
void QgsRuntimeProfilerNode::removeChildAt |
( |
int |
index | ) |
|
◆ setElapsed()
void QgsRuntimeProfilerNode::setElapsed |
( |
double |
time | ) |
|
◆ start()
void QgsRuntimeProfilerNode::start |
( |
| ) |
|
◆ stop()
void QgsRuntimeProfilerNode::stop |
( |
| ) |
|
◆ totalElapsedTimeForChildren()
double QgsRuntimeProfilerNode::totalElapsedTimeForChildren |
( |
const QString & |
group | ) |
const |
Returns the total elapsed time in seconds for all children of this node with matching group.
Definition at line 142 of file qgsruntimeprofiler.cpp.
The documentation for this class was generated from the following files: