2017-05-18 16:39:21 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsruntimeprofiler.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-06-03 17:49:42 +10:00
|
|
|
class QgsRuntimeProfiler
|
|
|
|
{
|
2017-05-18 16:39:21 +02:00
|
|
|
|
2016-06-03 17:49:42 +10:00
|
|
|
%TypeHeaderCode
|
2017-05-18 16:39:21 +02:00
|
|
|
#include "qgsruntimeprofiler.h"
|
2016-06-03 17:49:42 +10:00
|
|
|
%End
|
|
|
|
public:
|
2017-05-18 16:39:21 +02:00
|
|
|
|
2016-06-03 17:49:42 +10:00
|
|
|
QgsRuntimeProfiler();
|
2017-05-18 16:39:21 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor to create a new runtime profiler.
|
2017-05-18 16:39:21 +02:00
|
|
|
%End
|
2016-06-03 17:49:42 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void beginGroup( const QString &name );
|
2017-05-18 16:39:21 +02:00
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
Begin the group for the profiler. Groups will append {GroupName}/ to the
|
2017-12-15 10:36:55 -04:00
|
|
|
front of the profile tag set using start.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param name: The name of the group.
|
2017-05-18 16:39:21 +02:00
|
|
|
%End
|
2016-06-03 17:49:42 +10:00
|
|
|
|
|
|
|
void endGroup();
|
2017-05-18 16:39:21 +02:00
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
End the current active group.
|
2017-05-18 16:39:21 +02:00
|
|
|
%End
|
2016-06-03 17:49:42 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void start( const QString &name );
|
2017-05-18 16:39:21 +02:00
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
Start a profile event with the given name.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param name: The name of the profile event. Will have the name of
|
2018-05-24 21:21:14 +10:00
|
|
|
the active group appended after ending.
|
2017-05-18 16:39:21 +02:00
|
|
|
%End
|
2016-06-03 17:49:42 +10:00
|
|
|
|
|
|
|
void end();
|
2017-05-18 16:39:21 +02:00
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
End the current profile event.
|
2017-05-18 16:39:21 +02:00
|
|
|
%End
|
2016-06-03 17:49:42 +10:00
|
|
|
|
2016-06-03 15:13:42 +02:00
|
|
|
|
2016-06-03 17:49:42 +10:00
|
|
|
void clear();
|
2017-05-18 16:39:21 +02:00
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
clear Clear all profile data.
|
2017-05-18 16:39:21 +02:00
|
|
|
%End
|
2016-06-03 17:49:42 +10:00
|
|
|
|
|
|
|
double totalTime();
|
2017-05-18 16:39:21 +02:00
|
|
|
%Docstring
|
2018-05-26 14:10:30 +10:00
|
|
|
The current total time collected in the profiler.
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:return: The current total time collected in the profiler.
|
2017-05-18 16:39:21 +02:00
|
|
|
%End
|
2016-06-03 17:49:42 +10:00
|
|
|
|
|
|
|
};
|
2017-05-18 16:39:21 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgsruntimeprofiler.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|