[Libreoffice-commits] core.git: store/workben

Thomas Arnhold thomas at arnhold.org
Thu Mar 27 09:50:28 PDT 2014


 store/workben/t_store.cxx |   12 ------------
 1 file changed, 12 deletions(-)

New commits:
commit e0791969c8913f7719f59cf57983f5388a311cc6
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Thu Mar 27 17:48:36 2014 +0100

    remove PROFILE checks
    
    never defined, follow-up of 512de6e75d34d2144392d1e78c25446f2d0b3a35

diff --git a/store/workben/t_store.cxx b/store/workben/t_store.cxx
index 160d3d8..25ce3f7 100644
--- a/store/workben/t_store.cxx
+++ b/store/workben/t_store.cxx
@@ -334,9 +334,7 @@ int SAL_CALL main (int argc, char **argv)
         pBuffer[_DEMOSTOR_BUFSIZ - 1] = '\0';
 
         // Load/Save.
-#ifndef PROFILE
         OTime aStartTime (OTime::getSystemTime());
-#endif /* PROFILE */
 
         for (int i = 0; i < _DEMOSTOR_LOOPS; i++)
         {
@@ -401,7 +399,6 @@ int SAL_CALL main (int argc, char **argv)
 
             aStream.close();
 
-#ifndef PROFILE
             if (((i + 1) % (_DEMOSTOR_LOOPS/10)) == 0)
             {
                 OTime aDelta (OTime::getSystemTime() - aStartTime);
@@ -412,17 +409,14 @@ int SAL_CALL main (int argc, char **argv)
                 printf ("%d: %12.4g[usec]\n", (i+1),
                         (double)(nDelta)/(double)(i+1));
             }
-#endif /* PROFILE */
         }
 
-#ifndef PROFILE
         OTime aDelta (OTime::getSystemTime() - aStartTime);
 
         sal_uInt32 nDelta = aDelta.Seconds * 1000000;
         nDelta += (aDelta.Nanosec / 1000);
 
         printf ("Total(rd,wr): %d[usec]\n", (unsigned int)(nDelta));
-#endif /* PROFILE */
     }
 
     // Link/Rename.
@@ -478,9 +472,7 @@ int SAL_CALL main (int argc, char **argv)
     // Directory iteration.
     if (nOptions & OPTION_ITER)
     {
-#ifndef PROFILE
         OTime aStartTime (OTime::getSystemTime());
-#endif /* PROFILE */
         OUString aEmpty;
 
         // Root directory.
@@ -519,14 +511,12 @@ int SAL_CALL main (int argc, char **argv)
             printf ("Error: can't open directory: \"/\"\n");
         }
 
-#ifndef PROFILE
         OTime aDelta (OTime::getSystemTime() - aStartTime);
 
         sal_uInt32 nDelta = aDelta.Seconds * 1000000;
         nDelta += (aDelta.Nanosec / 1000);
 
         printf ("Total(iter): %d[usec]\n", (unsigned int)(nDelta));
-#endif /* PROFILE */
     }
 
     if (nOptions & OPTION_PAUSE)
@@ -544,14 +534,12 @@ int SAL_CALL main (int argc, char **argv)
     // Done.
     aFile.close();
 
-#ifndef PROFILE
     OTime aDelta (OTime::getSystemTime() - aMainStartTime);
 
     sal_uInt32 nDelta = aDelta.Seconds * 1000000;
     nDelta += (aDelta.Nanosec / 1000);
 
     printf ("Total: %d[usec]\n", (unsigned int)(nDelta));
-#endif /* PROFILE */
 
     return 0;
 }


More information about the Libreoffice-commits mailing list