File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,7 @@ class MCPseudoProbeInlineTreeBase {
241
241
InlinedProbeTreeMap &getChildren () { return Children; }
242
242
const InlinedProbeTreeMap &getChildren () const { return Children; }
243
243
std::vector<ProbeType> &getProbes () { return Probes; }
244
+ const std::vector<ProbeType> &getProbes () const { return Probes; }
244
245
void addProbes (ProbeType Probe) { Probes.push_back (Probe); }
245
246
// Caller node of the inline site
246
247
MCPseudoProbeInlineTreeBase<ProbeType, DerivedProbeInlineTreeType> *Parent =
Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ void BinarySizeContextTracker::trackInlineesOptimizedAway(
137
137
138
138
void BinarySizeContextTracker::trackInlineesOptimizedAway (
139
139
MCPseudoProbeDecoder &ProbeDecoder,
140
- MCDecodedPseudoProbeInlineTree &ProbeNode, ProbeFrameStack &ProbeContext) {
140
+ const MCDecodedPseudoProbeInlineTree &ProbeNode,
141
+ ProbeFrameStack &ProbeContext) {
141
142
StringRef FuncName =
142
143
ProbeDecoder.getFuncDescForGUID (ProbeNode.Guid )->FuncName ;
143
144
ProbeContext.emplace_back (FuncName, 0 );
Original file line number Diff line number Diff line change @@ -167,9 +167,10 @@ class BinarySizeContextTracker {
167
167
void trackInlineesOptimizedAway (MCPseudoProbeDecoder &ProbeDecoder);
168
168
169
169
using ProbeFrameStack = SmallVector<std::pair<StringRef, uint32_t >>;
170
- void trackInlineesOptimizedAway (MCPseudoProbeDecoder &ProbeDecoder,
171
- MCDecodedPseudoProbeInlineTree &ProbeNode,
172
- ProbeFrameStack &Context);
170
+ void
171
+ trackInlineesOptimizedAway (MCPseudoProbeDecoder &ProbeDecoder,
172
+ const MCDecodedPseudoProbeInlineTree &ProbeNode,
173
+ ProbeFrameStack &Context);
173
174
174
175
void dump () { RootContext.dumpTree (); }
175
176
You can’t perform that action at this time.
0 commit comments