#include <QDebug>
#include <QRegExp>
#include <QString>
#include <QThread>
#include <QTime>
Zobrazit zdrojový text tohoto souboru.
|
QString | pDebug::memory () |
|
◆ INITIMING
Hodnota: QTime inittime = QTime::currentTime(); \
QTime relatime = QTime::currentTime();
Definice je uvedena na řádku 32 v souboru pdebug.h.
32#define INITIMING \
33 QTime inittime = QTime::currentTime(); \
34 QTime relatime = QTime::currentTime();
◆ PDEBUG
#define PDEBUG qDebug() << PDEBUG_METHOD_STRING |
Definice je uvedena na řádku 22 v souboru pdebug.h.
22#define PDEBUG \
23 qDebug() << PDEBUG_METHOD_STRING
◆ PDEBUG_METHOD_STRING
#define PDEBUG_METHOD_STRING |
Hodnota: qPrintable(QString(__PRETTY_FUNCTION__) \
.replace(QRegExp("^[a-zA-Z]*::[a-zA-Z*<>]*\\s"),"") \
.replace(QRegExp("^[a-zA-Z*<>]*\\s"),"") \
.replace(QRegExp("\\(.*\\)"), "()") \
.replace(QRegExp("^void "), "") \
)
Definice je uvedena na řádku 14 v souboru pdebug.h.
14#define PDEBUG_METHOD_STRING \
15 qPrintable(QString(__PRETTY_FUNCTION__) \
16 .replace(QRegExp("^[a-zA-Z]*::[a-zA-Z*<>]*\\s"),"") \
17 .replace(QRegExp("^[a-zA-Z*<>]*\\s"),"") \
18 .replace(QRegExp("\\(.*\\)"), "()") \
19 .replace(QRegExp("^void "), "") \
20 )
◆ PDEBUGMEM
#define PDEBUGMEM qDebug() << PDEBUG_METHOD_STRING << pDebug::memory() |
Definice je uvedena na řádku 25 v souboru pdebug.h.
25#define PDEBUGMEM \
26 qDebug() << PDEBUG_METHOD_STRING << pDebug::memory()
◆ PRINTIMING
Hodnota: PDEBUG << QThread::currentThread() << (x) << "line:" << __LINE__ << inittime.msecsTo(QTime::currentTime()) << relatime.msecsTo(QTime::currentTime()); \
relatime = QTime::currentTime();
Definice je uvedena na řádku 36 v souboru pdebug.h.
36#define PRINTIMING(x) \
37 PDEBUG << QThread::currentThread() << (x) << "line:" << __LINE__ << inittime.msecsTo(QTime::currentTime()) << relatime.msecsTo(QTime::currentTime()); \
38 relatime = QTime::currentTime();