[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue Dec 21 06:25:04 CET 2004
CVS commit by staikos:
printf->kdDebug() and place a marker for regression testing
M +8 -7 kst2dplot.cpp 1.338
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.337:1.338
@@ -2003,4 +2003,5 @@ void Kst2DPlot::draw(QPainter &p, KstPai
#ifdef BENCHMARK
+ kdDebug() << ">>>>>>>>>>>>>>>>>>>> DRAWING PLOT " << tagName() << endl;
QTime bench_time;
int i_bt=0, bt[15];
@@ -5457,5 +5458,5 @@ void Kst2DPlot::plotCurves(QPainter& p,
#ifdef BENCHMARK
clock_t linesEnd = clock();
- printf(" Lines clocks: %d\n", linesEnd - linesStart);
+ kdDebug() << " Lines clocks: " << (linesEnd - linesStart) << endl;
#endif
#ifdef BENCHMARK
@@ -5740,10 +5741,10 @@ void Kst2DPlot::plotCurves(QPainter& p,
#ifdef BENCHMARK
int i = bench_time.elapsed();
- printf("Plotting curve %d: %ims\n", i_curve, i);
- printf(" Without locks: %ims\n", b_4);
- if (b_1 > 0) printf(" Lines: %ims\n", b_1);
- if (b_2 - b_1 > 0) printf(" Bars: %ims\n", b_2 - b_1);
- if (b_3 - b_2 > 0) printf(" Points: %ims\n", b_3 - b_2);
- if (b_4 - b_3 > 0) printf(" Errors: %ims\n", b_4 - b_3);
+ kdDebug() << "Plotting curve " << i_curve << ": " << i << "ms" << endl;
+ kdDebug() << " Without locks: " << b_4 << "ms" << endl;
+ if (b_1 > 0) kdDebug() << " Lines: " << b_1 << "ms" << endl;
+ if (b_2 - b_1 > 0) kdDebug() << " Bars: " << (b_2 - b_1) << "ms" << endl;
+ if (b_3 - b_2 > 0) kdDebug() << " Points: " << (b_3 - b_2) << "ms" << endl;
+ if (b_4 - b_3 > 0) kdDebug() << " Errors: " << (b_4 - b_3) << "ms" << endl;
#endif
} // next curve
More information about the Kst
mailing list