diff src/pt-binop.cc @ 12960:43d78e103984

Use macro to start profiler blocks. profile.h: Define macros BEGIN/END_PROFILER_BLOCK. ov-builtin.cc: Use it. ov-mex-fcn.cc: Ditto. ov-usr-fcn.cc: Ditto. pt-binop.cc: Ditto. pt-unop.cc: Ditto.
author Daniel Kraft <d@domob.eu>
date Fri, 12 Aug 2011 12:21:48 +0200
parents 7820a12baadd
children e81ddf9cacd5
line wrap: on
line diff
--- a/src/pt-binop.cc	Thu Aug 11 21:12:56 2011 -0500
+++ b/src/pt-binop.cc	Fri Aug 12 12:21:48 2011 +0200
@@ -121,8 +121,7 @@
 
           if (! error_state && b.is_defined ())
             {
-              profile_data_accumulator::enter pe (profiler,
-                                                  "binary " + oper ());
+              BEGIN_PROFILER_BLOCK ("binary " + oper ())
 
               // Note: The profiler does not catch the braindead
               // short-circuit evaluation code above, but that should be
@@ -134,6 +133,8 @@
 
               if (error_state)
                 retval = octave_value ();
+
+              END_PROFILER_BLOCK
             }
         }
     }