Mercurial > octave
diff libinterp/parse-tree/profiler.h @ 30155:14b098a6ba46
maint: Use public: qualifier in structs that are really classes.
* __eigs__.cc, graphics.in.h, load-path.h, ls-hdf5.h, ov-base-int.cc,
bp-table.h, profiler.h, token.h, Array-util.cc, MArray.cc,
Sparse-diag-op-defs.h, lo-ieee.h, oct-sort.cc, oct-sort.h:
Use public: qualifier in structs that are really classes.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 10 Sep 2021 07:02:04 -0700 |
parents | 939bef0b66e0 |
children | 91c6288781ba 796f54d4ddbf |
line wrap: on
line diff
--- a/libinterp/parse-tree/profiler.h Thu Sep 09 21:08:44 2021 -0700 +++ b/libinterp/parse-tree/profiler.h Fri Sep 10 07:02:04 2021 -0700 @@ -114,19 +114,23 @@ // hierarchical call tree. struct stats { + public: stats (void); + typedef std::set<octave_idx_type> function_set; + + // Convert a function_set list to an Octave array of indices. + static octave_value function_set_value (const function_set&); + + //-------- + double m_time; std::size_t m_calls; bool m_recursive; - typedef std::set<octave_idx_type> function_set; function_set m_parents; function_set m_children; - - // Convert a function_set list to an Octave array of indices. - static octave_value function_set_value (const function_set&); }; typedef std::vector<stats> flat_profile;