Mercurial > hg > octave-terminal
changeset 12955:05941540287c
Style fixes on profiler internal functions
* profile.m: Change __foo_bar to __foo_bar__
* profiler.cc: Ditto
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Thu, 11 Aug 2011 21:12:15 -0500 |
parents | a451ae847adb |
children | 332a97ea63ba |
files | scripts/general/profile.m src/profiler.cc |
diffstat | 2 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/general/profile.m +++ b/scripts/general/profile.m @@ -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
--- a/src/profiler.cc +++ b/src/profiler.cc @@ -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\