# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1313115135 18000 # Node ID 05941540287cf8fc1c75813f51c563a0089362be # Parent a451ae847adba4df8ad5e0cacd3a511ec6ec2757 Style fixes on profiler internal functions * profile.m: Change __foo_bar to __foo_bar__ * profiler.cc: Ditto diff -r a451ae847adb -r 05941540287c scripts/general/profile.m --- a/scripts/general/profile.m Thu Aug 11 17:55:23 2011 +0200 +++ b/scripts/general/profile.m Thu Aug 11 21:12:15 2011 -0500 @@ -65,20 +65,20 @@ switch (option) case 'on' - __profiler_reset (); - __profiler_enable (true); + __profiler_reset__ (); + __profiler_enable__ (true); case 'off' - __profiler_enable (false); + __profiler_enable__ (false); case 'clear' - __profiler_reset (); + __profiler_reset__ (); case 'resume' - __profiler_enable (true); + __profiler_enable__ (true); case 'status' - enabled = __profiler_enable (); + enabled = __profiler_enable__ (); if (enabled) enabled = 'on'; else @@ -87,7 +87,7 @@ retval = struct ('ProfilerStatus', enabled); case 'info' - data = __profiler_data (); + data = __profiler_data__ (); retval = struct ('FunctionTable', data); otherwise diff -r a451ae847adb -r 05941540287c src/profiler.cc --- a/src/profiler.cc Thu Aug 11 17:55:23 2011 +0200 +++ b/src/profiler.cc Thu Aug 11 21:12:15 2011 -0500 @@ -352,7 +352,7 @@ profile_data_accumulator profiler; // Enable or disable the profiler data collection. -DEFUN (__profiler_enable, args, , +DEFUN (__profiler_enable__, args, , "-*- texinfo -*-\n\ @deftypefn {Function File} __profiler_enable ()\n\ Undocumented internal function.\n\ @@ -378,7 +378,7 @@ } // Clear all collected profiling data. -DEFUN (__profiler_reset, args, , +DEFUN (__profiler_reset__, args, , "-*- texinfo -*-\n\ @deftypefn {Function File} __profiler_reset ()\n\ Undocumented internal function.\n\ @@ -396,7 +396,7 @@ } // Query the timings collected by the profiler. -DEFUN (__profiler_data, args, nargout, +DEFUN (__profiler_data__, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Function File} __profiler_data ()\n\ Undocumented internal function.\n\