[mapguide-commits] r9444 - trunk/MgDev/Server/src/UnitTesting
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sun Jan 6 03:53:01 PST 2019
Author: jng
Date: 2019-01-06 03:53:01 -0800 (Sun, 06 Jan 2019)
New Revision: 9444
Modified:
trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.cpp
Log:
Add more progress chatter around TestCase_CheckCoordinateSystems(). As an aside: Wow! MgCoordinateSystemFactory::Create is really *that* slow!
Modified: trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.cpp
===================================================================
--- trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.cpp 2019-01-06 11:40:14 UTC (rev 9443)
+++ trunk/MgDev/Server/src/UnitTesting/TestCoordinateSystem.cpp 2019-01-06 11:53:01 UTC (rev 9444)
@@ -638,6 +638,7 @@
int nCoordinateSystemsPassed = 0;
long lStart = GetTickCount();
+ long lInvTotal = 0L;
// Open the test file and read the OGC WKT.
// If the test file cannot be opened return an error.
@@ -667,6 +668,7 @@
// Try and create a coordinate system object from the OGC WKT
nCoordinateSystemsTested++;
+ long lInvStart = GetTickCount();
try
{
ogcWkt = MgUtil::MultiByteToWideChar(text);
@@ -696,6 +698,13 @@
{
throw;
}
+ long lInvIter = GetTickCount() - lInvStart;
+ lInvTotal += lInvIter;
+
+ if ((nCoordinateSystemsTested % 50) == 0)
+ {
+ ACE_DEBUG((LM_INFO, ACE_TEXT("[%d/%d] coordinate systems passed [%6.4f (s) elapsed, %6.4f (s) avg invocation]\n"), nCoordinateSystemsPassed, nCoordinateSystemsTested, ((GetTickCount() - lStart) / 1000.0), (lInvTotal / 1000.0 / (double)nCoordinateSystemsTested)));
+ }
}
}
More information about the mapguide-commits
mailing list