Mercurial > octave
comparison libinterp/parse-tree/profiler.cc @ 29960:939bef0b66e0
merge "namespace octave" and OCTAVE_NAMESPACE_BEGIN/END blocks
In files with both OCTAVE_NAMESPACE_BEGIN/END and "namespace octave"
blocks, merge adjacent blocks. Use the macros in place of "namespace
octave" in affected files and the corresponding header files.
Files affected: call-stack.cc, call-stack.h, defaults.cc, defaults.h,
defun-int.h, display.cc, display.h, environment.cc, environment.h,
error.cc, error.h, event-manager.cc, event-manager.h, fcn-info.cc,
fcn-info.h, help.cc, help.h, input.cc, input.h, interpreter.cc,
interpreter.h, load-path.cc, load-path.h, load-save.cc, load-save.h,
oct-hist.cc, oct-hist.h, pager.cc, pager.h, settings.cc, settings.h,
sighandlers.cc, sighandlers.h, symtab.cc, symtab.h, sysdep.cc,
sysdep.h, utils.cc, utils.h, __ode15__.cc, gzip.cc, ov-fcn-handle.cc,
ov-fcn-handle.h, ov-java.cc, ov-java.h, ov-typeinfo.cc, ov-typeinfo.h,
ov.cc, ov.h, octave.cc, octave.h, lex.ll, oct-parse.yy, profiler.cc,
profiler.h, pt-eval.cc, and pt-eval.h.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 14 Aug 2021 21:50:26 -0400 |
parents | 32c3a5805893 |
children | 7d6709900da7 |
comparison
equal
deleted
inserted
replaced
29959:9e35973fb6c0 | 29960:939bef0b66e0 |
---|---|
33 #include "oct-time.h" | 33 #include "oct-time.h" |
34 #include "ov-struct.h" | 34 #include "ov-struct.h" |
35 #include "pager.h" | 35 #include "pager.h" |
36 #include "profiler.h" | 36 #include "profiler.h" |
37 | 37 |
38 namespace octave | 38 OCTAVE_NAMESPACE_BEGIN |
39 { | 39 |
40 profiler::stats::stats (void) | 40 profiler::stats::stats (void) |
41 : m_time (0.0), m_calls (0), m_recursive (false), | 41 : m_time (0.0), m_calls (0), m_recursive (false), |
42 m_parents (), m_children () | 42 m_parents (), m_children () |
43 { } | 43 { } |
44 | 44 |
379 const double t = query_time (); | 379 const double t = query_time (); |
380 | 380 |
381 m_active_fcn->add_time (t - m_last_time); | 381 m_active_fcn->add_time (t - m_last_time); |
382 } | 382 } |
383 } | 383 } |
384 } | |
385 | |
386 OCTAVE_NAMESPACE_BEGIN | |
387 | 384 |
388 // Enable or disable the profiler data collection. | 385 // Enable or disable the profiler data collection. |
389 DEFMETHOD (__profiler_enable__, interp, args, , | 386 DEFMETHOD (__profiler_enable__, interp, args, , |
390 doc: /* -*- texinfo -*- | 387 doc: /* -*- texinfo -*- |
391 @deftypefn {} {} __profiler_enable__ () | 388 @deftypefn {} {} __profiler_enable__ () |