[postgis-commits] svn - r3308 - trunk/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Thu Nov 20 10:45:10 PST 2008
Author: mcayland
Date: 2008-11-20 10:45:09 -0800 (Thu, 20 Nov 2008)
New Revision: 3308
Modified:
trunk/lwgeom/lwgeom_functions_basic.c
trunk/lwgeom/lwgeom_inout.c
Log:
Found some new locations containing profiling code outside of the GEOS functions, so swap them over to using the new macros.
Modified: trunk/lwgeom/lwgeom_functions_basic.c
===================================================================
--- trunk/lwgeom/lwgeom_functions_basic.c 2008-11-20 15:00:57 UTC (rev 3307)
+++ trunk/lwgeom/lwgeom_functions_basic.c 2008-11-20 18:45:09 UTC (rev 3308)
@@ -1548,9 +1548,7 @@
PG_LWGEOM *geom2;
double mindist;
-#ifdef PROFILE
- profstart(PROF_QRUN);
-#endif
+ PROFSTART(PROF_QRUN);
geom1 = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
geom2 = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(1));
@@ -1583,9 +1581,7 @@
PG_LWGEOM *geom2;
double mindist, tolerance;
-#ifdef PROFILE
- profstart(PROF_QRUN);
-#endif
+ PROFSTART(PROF_QRUN);
geom1 = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
geom2 = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(1));
Modified: trunk/lwgeom/lwgeom_inout.c
===================================================================
--- trunk/lwgeom/lwgeom_inout.c 2008-11-20 15:00:57 UTC (rev 3307)
+++ trunk/lwgeom/lwgeom_inout.c 2008-11-20 18:45:09 UTC (rev 3308)
@@ -248,9 +248,7 @@
text *type;
unsigned int byteorder=-1;
-#ifdef PROFILE
- profstart(PROF_QRUN);
-#endif
+ PROFSTART(PROF_QRUN);
if ( (PG_NARGS()>1) && (!PG_ARGISNULL(1)) )
{
More information about the postgis-commits
mailing list