Mercurial > octave
diff libinterp/corefcn/interpreter.cc @ 23753:c3828bd031cd
move profiler inside evaluator and inside octave namespace
* interpreter.h, interpreter.cc (interpreter::get_profiler):
New function.
* pt-eval.h, pt-eval.cc (tree_evaluator::m_profiler): New data member.
(tree_evaluator::get_profiler): New function.
* profiler.h, profiler.cc (profiler): Delete global variable.
(class profiler): Rename from profile_data_accumulator. Move inside
octave namespace. Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 08 Jul 2017 10:33:07 -0400 |
parents | 1f0daaf81955 |
children | 41795b504a8b |
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc Sat Jul 08 10:14:32 2017 -0400 +++ b/libinterp/corefcn/interpreter.cc Sat Jul 08 10:33:07 2017 -0400 @@ -1202,6 +1202,11 @@ return m_evaluator.get_call_stack (); } + profiler& interpreter::get_profiler (void) + { + return m_evaluator.get_profiler (); + } + void interpreter::mlock (void) { call_stack& cs = get_call_stack ();