comparison 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
comparison
equal deleted inserted replaced
30154:868156b5027b 30155:14b098a6ba46
112 // One entry in the flat profile (i.e., a collection of data for a single 112 // One entry in the flat profile (i.e., a collection of data for a single
113 // function). This is filled in when building the flat profile from the 113 // function). This is filled in when building the flat profile from the
114 // hierarchical call tree. 114 // hierarchical call tree.
115 struct stats 115 struct stats
116 { 116 {
117 public:
117 stats (void); 118 stats (void);
119
120 typedef std::set<octave_idx_type> function_set;
121
122 // Convert a function_set list to an Octave array of indices.
123 static octave_value function_set_value (const function_set&);
124
125 //--------
118 126
119 double m_time; 127 double m_time;
120 std::size_t m_calls; 128 std::size_t m_calls;
121 129
122 bool m_recursive; 130 bool m_recursive;
123 131
124 typedef std::set<octave_idx_type> function_set;
125 function_set m_parents; 132 function_set m_parents;
126 function_set m_children; 133 function_set m_children;
127
128 // Convert a function_set list to an Octave array of indices.
129 static octave_value function_set_value (const function_set&);
130 }; 134 };
131 135
132 typedef std::vector<stats> flat_profile; 136 typedef std::vector<stats> flat_profile;
133 137
134 // Store data for one node in the call-tree of the hierarchical profiler 138 // Store data for one node in the call-tree of the hierarchical profiler