[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Wed Oct 26 01:11:03 CEST 2005


SVN commit 474291 by staikos:

this is no longer a bottleneck issue, so remove timings (and noise)


 M  +1 -28     kst2dplot.cpp  


--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #474290:474291
@@ -1871,15 +1871,8 @@
   getLScale(x_min, y_min, x_max, y_max);
   set2dPlotTickPix(xtick_len_px, ytick_len_px, x_px, y_px);
 
-#ifdef BENCHMARK
-  QTime t;
-  t.start();
-#endif
   setBorders(xleft_bdr_px, xright_bdr_px, ytop_bdr_px, ybot_bdr_px,
              tpx, tpy, p, offsetX, offsetY, xtick_len_px, ytick_len_px);
-#ifdef BENCHMARK
-  kstdDebug() << "setBorders took: " << t.elapsed() << endl;
-#endif
 
   p.restore();
   plotRegion.setLeft( d2i(xleft_bdr_px) );
@@ -1888,6 +1881,7 @@
   plotRegion.setBottom( d2i(ybot_bdr_px) );
 }
 
+
 void Kst2DPlot::set2dPlotTickPix(double& xtickpix, double& ytickpix, int x_pix, int y_pix) {
   // set tick size: 4 points on a full letter size plot
   if (x_pix < y_pix) {
@@ -1920,24 +1914,9 @@
   x_px = v.width();
   y_px = v.height();
 
-#ifdef BENCHMARK
-  QTime t;
-  t.start();
-#endif
   getLScale(x_min, y_min, x_max, y_max);
-#ifdef BENCHMARK
-  kstdDebug() << "setBorders -> getLScale took: " << t.elapsed() << endl;
-#endif
-
-
-#ifdef BENCHMARK
-  t.start();
-#endif
   genAxisTickLabels(tpx, x_min, x_max, _xLog, _xAxisInterpretation, _xAxisDisplay,
                     _xAxisTimezoneLocal, _xAxisTimezoneHrs, true, _isXAxisInterpreted, _xOffsetMode);
-#ifdef BENCHMARK
-  kstdDebug() << "setBorders -> genAxisTickLabels took: " << t.elapsed() << endl;
-#endif
 
   // calculate the top border
   if (_suppressTop) {
@@ -1988,9 +1967,6 @@
   }
 
   
-#ifdef BENCHMARK
-  t.start();
-#endif
   int tpxLabelCount = tpx.labels.count();
   int tpyLabelCount = tpy.labels.count();
   
@@ -2036,9 +2012,6 @@
       xleft_bdr_px += _fullTickLabel->lineSpacing() - _yLabel->lineSpacing();
     }
   }
-#ifdef BENCHMARK
-  kstdDebug() << "setBorders -> full tick labels took: " << t.elapsed() << endl;
-#endif
 
   // add additional spacing if ticks are outside plot
   if (xTicksOutPlot()) {


More information about the Kst mailing list