|
QCAD
Open Source 2D CAD
|
Go to the documentation of this file.
36 #if defined(Q_OS_MAC) && !defined(Q_OS_IOS)
37 #include <CoreServices/CoreServices.h>
38 #include <mach/mach.h>
39 #include <mach/mach_time.h>
43 #if !defined(Q_OS_WIN) && !defined(Q_OS_ANDROID)
47 #ifndef RDEFAULT_QSTRING
48 #define RDEFAULT_QSTRING QString()
80 static void startTimer(
int id=0);
86 static uint stopTimer(
int id,
const QString& msg, uint msThreshold = 0);
93 return stopTimer(0, msg);
96 static void timeStamp();
98 static void hexDump(
const QString& str);
104 static void printCounters();
114 #if defined(Q_OS_MAC) && !defined(Q_OS_IOS)
115 static QMap<int, uint64_t> timerMac;
static QMap< int, QTime > timer
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RDebug.h:117
static uint stopTimer(const QString &msg)
Stops the timer with ID 0 and prints the given message together with the time that has elapsed.
Definition: RDebug.h:92
#define RDEFAULT_QSTRING
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RDebug.h:48
Q_DECLARE_METATYPE(RMath *)
static QString getPrefix()
Definition: RDebug.h:109
This class provides some static methods for printing debugging information to stderr.
Definition: RDebug.h:73
static QMap< QString, int > counter
Definition: RDebug.h:119
static QString prefix
Definition: RDebug.h:120
#define QCADCORE_EXPORT
Definition: core_global.h:10
static void setPrefix(const QString &p)
Definition: RDebug.h:106