EgtGeomKernel :

- log per calcolo tempi.
This commit is contained in:
Daniele Bariletti
2025-10-06 09:19:36 +02:00
parent e4d3f5f9a4
commit 4a541402da
+20 -5
View File
@@ -1579,6 +1579,10 @@ VolZmap::Comp_5AxisMilling( int nGrid, const Point3d& ptS, const Point3d& ptE, c
vector<SurfBezForInters> vSurfBez( nTotSurf) ;
double dSide = 0 ;
//debug
static PerformanceCounter Counter;
//debug
// punti di riferimento sul tool
// tip del tool
Point3d ptP1T ;
@@ -1689,10 +1693,10 @@ VolZmap::Comp_5AxisMilling( int nGrid, const Point3d& ptS, const Point3d& ptE, c
}
else {
static PerformanceCounter Counter ;
{
{//debug
Counter.Start() ;
}
}//debug
// costruisco tutti gli archi subito
@@ -1909,12 +1913,12 @@ VolZmap::Comp_5AxisMilling( int nGrid, const Point3d& ptS, const Point3d& ptE, c
vvPtCtrl.back().insert( vvPtCtrl.back().end(), vPntTopEndBack2.rbegin(), vPntTopEndBack2.rend()) ;
}
{
{//debug
static double dCreationTime = 0;
dCreationTime += Counter.Stop();
string sOut = "bezier_creation = " + ToString( dCreationTime, 3) ;
LOG_INFO( GetEGkLogger(), sOut.c_str())
}
}//debug
}
//debug
@@ -2011,6 +2015,10 @@ VolZmap::Comp_5AxisMilling( int nGrid, const Point3d& ptS, const Point3d& ptE, c
} ;
vector<IntervalsToSubtract> vIntervalsToSubtr ;
{//debug
Counter.Start();
}//debug
for ( int i = nStartI ; i <= nEndI ; ++ i) {
nLastForwardJ = -1 ;
j = nStartJ ;
@@ -2155,6 +2163,13 @@ VolZmap::Comp_5AxisMilling( int nGrid, const Point3d& ptS, const Point3d& ptE, c
}
}
{//debug
static double dCalcTime = 0;
dCalcTime += Counter.Stop();
string sOut = "inters_calc = " + ToString(dCalcTime, 3);
LOG_INFO(GetEGkLogger(), sOut.c_str())
}//debug
return true ;
}