[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/graphics/kst/kst
From:       George Staikos <staikos () kde ! org>
Date:       2005-10-26 17:35:31
Message-ID: 1130348131.814683.30255.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 474545 by staikos:

add benchmarking


 M  +9 -4      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #474544:474545
@@ -1903,15 +1903,17 @@
                          TickParameters &tpx,  TickParameters &tpy,
                          QPainter& p, bool& bOffsetX, bool& bOffsetY,
                           double xtick_len_px, double ytick_len_px) {
+#ifdef BENCHMARK
+  QTime t;
+  t.start();
+#endif
   double x_min, y_min, x_max, y_max;
-  int x_px, y_px;
-
   QRect v = p.window();
+  int x_px = v.width();
+  int y_px = v.height();
 
   bOffsetX = false;
   bOffsetY = false;
-  x_px = v.width();
-  y_px = v.height();
 
   getLScale(x_min, y_min, x_max, y_max);
   genAxisTickLabels(tpx, x_min, x_max, _xLog, _xAxisInterpretation, _xAxisDisplay,
@@ -2027,6 +2029,9 @@
   xright_bdr_px = ceil(xright_bdr_px);
   ytop_bdr_px   = ceil(ytop_bdr_px);
   ybot_bdr_px   = ceil(ybot_bdr_px);
+#ifdef BENCHMARK
+  kstdDebug() << "SET BORDERS CALLED on object " << tagName() << ", took " << t.elapsed() << endl;
+#endif
 }
 
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic