[PC-BSD Commits] r21560 - pcbsd-projects/PCDM

svn at pcbsd.org svn at pcbsd.org
Fri Feb 15 15:42:16 PST 2013


Author: kenmoore
Date: 2013-02-15 23:42:16 +0000 (Fri, 15 Feb 2013)
New Revision: 21560

Modified:
   pcbsd-projects/PCDM/main.cpp
   pcbsd-projects/PCDM/pcdm-gui.cpp
   pcbsd-projects/PCDM/pcdm-gui.h
Log:
Turn off a bunch of the minor timing output in main, and turn on a couple timing outputs in the GUI creation process.



Modified: pcbsd-projects/PCDM/main.cpp
===================================================================
--- pcbsd-projects/PCDM/main.cpp	2013-02-15 23:36:29 UTC (rev 21559)
+++ pcbsd-projects/PCDM/main.cpp	2013-02-15 23:42:16 UTC (rev 21560)
@@ -31,7 +31,7 @@
   QString confFile = "/usr/local/share/PCDM/pcdm.conf";
   if(!QFile::exists(confFile)){ confFile = ":samples/pcdm.conf"; }
   Config::loadConfigFile(confFile);
-  qDebug() << "Config File Loaded:" << QString::number(clock.elapsed())+" ms";
+  //qDebug() << "Config File Loaded:" << QString::number(clock.elapsed())+" ms";
   // Startup the main application
   QApplication a(argc,argv); 
   
@@ -41,7 +41,7 @@
     splash.setPixmap( QPixmap(Config::splashscreen()) ); //load the splashscreen file
   }
   splash.show();
-  qDebug() << "No SplashScreen Started:" << QString::number(clock.elapsed())+" ms";
+  //qDebug() << "SplashScreen Started:" << QString::number(clock.elapsed())+" ms";
   //Initialize the xprocess
   XProcess desktop;
   
@@ -64,7 +64,7 @@
 	goodAL=TRUE; //flag this as a good login to skip the GUI
     }
   }
-  qDebug() << "AutoLogin Finished:" << QString::number(clock.elapsed())+" ms";
+  //qDebug() << "AutoLogin Finished:" << QString::number(clock.elapsed())+" ms";
   if(!goodAL){
     // ------START THE PCDM GUI-------
     
@@ -117,7 +117,6 @@
     
     qDebug() << "Showing GUI:" << QString::number(clock.elapsed())+" ms";
     w.show();
-    qDebug() << "Starting GUI:" << QString::number(clock.elapsed())+" ms";
     returnCode = a.exec();
     Backend::startXSession();
   }  // end of PCDM GUI running

Modified: pcbsd-projects/PCDM/pcdm-gui.cpp
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-15 23:36:29 UTC (rev 21559)
+++ pcbsd-projects/PCDM/pcdm-gui.cpp	2013-02-15 23:42:16 UTC (rev 21560)
@@ -11,14 +11,14 @@
 
 PCDMgui::PCDMgui() : QMainWindow()
 {
-    //timer = new QTime();
-    //timer->start();
+    timer = new QTime();
+    timer->start();
     //Load the Theme
     loadTheme();
-
+    qDebug() << "GUI Time: Theme Loaded:" << QString::number(timer->elapsed()) + " ms";
     //Create the GUI based upon the current Theme
     createGUIfromTheme();
-
+    qDebug() << "GUI Time: GUI Created:" << QString::number(timer->elapsed())+" ms";
 }
 
 PCDMgui::~PCDMgui()

Modified: pcbsd-projects/PCDM/pcdm-gui.h
===================================================================
--- pcbsd-projects/PCDM/pcdm-gui.h	2013-02-15 23:36:29 UTC (rev 21559)
+++ pcbsd-projects/PCDM/pcdm-gui.h	2013-02-15 23:42:16 UTC (rev 21560)
@@ -17,6 +17,7 @@
 #include <QX11EmbedContainer>
 #include <QSpacerItem>
 #include <QProcessEnvironment>
+#include <QTime>
 
 #include "pcdm-backend.h"
 #include "themeStruct.h"



More information about the Commits mailing list