[Kst] branches/work/kst/portto4/kst/src

Peter Kümmel syntheticpp at yahoo.com
Sun Nov 29 13:52:32 CET 2009


SVN commit 1056123 by kuemmel:

measure time in AsciiSource constructor

 M  +4 -0      datasources/ascii/ascii.cpp  
 M  +2 -0      libkst/libkst.pro  
 A             libkst/measuretime.cpp   [License: GPL (v2+)]
 A             libkst/measuretime.h   [License: GPL (v2+)]


--- branches/work/kst/portto4/kst/src/datasources/ascii/ascii.cpp #1056122:1056123
@@ -40,6 +40,7 @@
 #include "ascii.h"
 #include "ui_asciiconfig.h"
 #include "kst_i18n.h"
+#include "measuretime.h"
 
 #ifdef Q_OS_WIN
 #define USE_KST_ATOF
@@ -198,6 +199,9 @@
 
 AsciiSource::AsciiSource(Kst::ObjectStore *store, QSettings *cfg, const QString& filename, const QString& type, const QDomElement& e)
 : Kst::DataSource(store, cfg, filename, type, File), _rowIndex(0L), _config(0L), _tmpBuf(0L), _tmpBufSize(0) {
+
+  TIME_IN_SCOPE(Ctor_AsciiSource);
+
   _valid = false;
   _haveHeader = false;
   _fieldListComplete = false;
--- branches/work/kst/portto4/kst/src/libkst/libkst.pro #1056122:1056123
@@ -31,6 +31,7 @@
     math_kst.cpp \
     matrix.cpp \
     matrixfactory.cpp \
+    measuretime.cpp \
     namedobject.cpp \
     object.cpp \
     objectlist.cpp \
@@ -82,6 +83,7 @@
     math_kst.h \
     matrix.h \
     matrixfactory.h \
+    measuretime.h \
     namedobject.h \
     object.h \
     objectlist.h \


More information about the Kst mailing list