QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
i
l
m
n
o
p
s
t
+
Functions
a
b
c
d
f
g
i
l
m
n
o
p
t
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
2
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
2
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
v
+
Related Functions
a
c
d
e
f
g
l
n
o
p
q
r
s
t
v
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Variables
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
Enumerator
+
Macros
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
core
qgsruntimeprofiler.h
Go to the documentation of this file.
1
#ifndef QGSRUNTIMEPROFILER_H
2
#define QGSRUNTIMEPROFILER_H
3
4
#include <QTime>
5
#include <QPair>
6
#include <QStack>
7
11
class
CORE_EXPORT
QgsRuntimeProfiler
12
{
13
public
:
17
QgsRuntimeProfiler
();
18
24
static
QgsRuntimeProfiler
* instance();
25
31
void
beginGroup(
const
QString
& name );
32
36
void
endGroup();
37
43
void
start(
const
QString
& name );
44
48
void
end();
49
55
const
QList<QPair<QString, double >
>
profileTimes
()
const
{
return
mProfileTimes; }
56
60
void
clear();
61
66
double
totalTime();
67
68
private
:
69
static
QgsRuntimeProfiler
* mInstance;
70
71
QString
mGroupPrefix;
72
QStack<QString>
mGroupStack;
73
QTime
mProfileTime;
74
QString
mCurrentName;
75
QList<QPair<QString, double >
> mProfileTimes;
76
};
77
78
#endif // QGSRUNTIMEPROFILER_H
QgsRuntimeProfiler
Definition:
qgsruntimeprofiler.h:11
QTime
QString
QList
QgsRuntimeProfiler::profileTimes
const QList< QPair< QString, double > > profileTimes() const
Return all the current profile times.
Definition:
qgsruntimeprofiler.h:55
QStack< QString >
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13