(Commit a65ccc9... : jennings : 2016-03-15 14:00:18 -0500)
#include "qxrddebug.h"
#include <QApplication>
#include "qxrdapplication.h"
#include "qxrdapplication-ptr.h"
#include "qxrdwindow.h"
#include "qxrdsplashscreen.h"
#include "qxrdsplashscreen-ptr.h"
#include <stdio.h>
#include <QSplashScreen>
#include "qcepdataobject.h"
Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 26 of file qxrd.cpp.
References QcepAllocator::allocatedMemory(), QcepObject::allocatedObjects(), QcepDataObject::allocatedObjects(), QcepObject::allocatedObjectsSet(), DEBUG_APP, DEBUG_EXITWAIT, QcepObject::deletedObjects(), QcepDataObject::deletedObjects(), g_DebugLevel, and qcepDebug().
28 #if defined(Q_OS_UNIX) && !defined(Q_OS_MACX)
35 printf(
"App starts\n");
44 if (app->init(app, argc, argv)) {
45 if (app->get_GuiWanted()) {
59 printf(
"App finishes\n");
71 bool printIt = (nObjAlloc != nObjDeleted) || (nDataAlloc != nDataDeleted) || (allocated != 0);
77 printf(
"%d objects allocated\n", nObjAlloc);
78 printf(
"%d objects deleted\n", nObjDeleted);
79 printf(
"%d objects leaked\n", nObjAlloc - nObjDeleted);
81 printf(
"%d data objects allocated\n", nDataAlloc);
82 printf(
"%d data objects deleted\n", nDataDeleted);
83 printf(
"%d data objects leaked\n", nDataAlloc - nDataDeleted);
85 printf(
"%Ld bytes still allocated\n", allocated);
89 if (nObjAlloc != nObjDeleted) {
92 printf(
"%d : %s\n", i++, qPrintable(obj->objectName()));
qint64 qcepDebug(int cond)
static quint64 allocatedMemory()
static int deletedObjects()
static int deletedObjects()
static int allocatedObjects()
static QSet< QcepObject * > allocatedObjectsSet()
QSharedPointer< QcepDebugDictionary > g_DebugLevel
static int allocatedObjects()
QSharedPointer< QxrdApplication > QxrdApplicationPtr