Mercurial > octave-nkf
diff src/ov-mex-fcn.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 | 5d18231eee00 |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/src/ov-mex-fcn.cc Thu Aug 11 21:12:56 2011 -0500 +++ b/src/ov-mex-fcn.cc Fri Aug 12 12:21:48 2011 +0200 @@ -148,8 +148,9 @@ try { - profile_data_accumulator::enter pe (profiler, profiler_name ()); + BEGIN_PROFILER_BLOCK (profiler_name ()) retval = call_mex (have_fmex, mex_fcn_ptr, args, nargout, this); + END_PROFILER_BLOCK } catch (octave_execution_exception) {