QGIS/python/core/auto_generated/qgsruntimeprofiler.sip.in

72 lines
2.0 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
class QgsRuntimeProfiler
{
2017-05-18 16:39:21 +02:00
%TypeHeaderCode
2017-05-18 16:39:21 +02:00
#include "qgsruntimeprofiler.h"
%End
public:
2017-05-18 16:39:21 +02: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
void beginGroup( const QString &name );
2017-05-18 16:39:21 +02:00
%Docstring
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
void endGroup();
2017-05-18 16:39:21 +02:00
%Docstring
End the current active group.
2017-05-18 16:39:21 +02:00
%End
void start( const QString &name );
2017-05-18 16:39:21 +02:00
%Docstring
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
the active group appended after ending.
2017-05-18 16:39:21 +02:00
%End
void end();
2017-05-18 16:39:21 +02:00
%Docstring
End the current profile event.
2017-05-18 16:39:21 +02:00
%End
2016-06-03 15:13:42 +02:00
void clear();
2017-05-18 16:39:21 +02:00
%Docstring
clear Clear all profile data.
2017-05-18 16:39:21 +02:00
%End
double totalTime();
2017-05-18 16:39:21 +02:00
%Docstring
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
};
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 *
************************************************************************/