File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ static IndexedMemProfRecord deserializeV2(const MemProfSchema &Schema,
208
208
// Read the meminfo nodes.
209
209
const uint64_t NumNodes =
210
210
endian::readNext<uint64_t , llvm::endianness::little>(Ptr);
211
+ Record.AllocSites .reserve (NumNodes);
211
212
for (uint64_t I = 0 ; I < NumNodes; I++) {
212
213
IndexedAllocationInfo Node;
213
214
Node.CSId = endian::readNext<CallStackId, llvm::endianness::little>(Ptr);
@@ -219,6 +220,7 @@ static IndexedMemProfRecord deserializeV2(const MemProfSchema &Schema,
219
220
// Read the callsite information.
220
221
const uint64_t NumCtxs =
221
222
endian::readNext<uint64_t , llvm::endianness::little>(Ptr);
223
+ Record.CallSiteIds .reserve (NumCtxs);
222
224
for (uint64_t J = 0 ; J < NumCtxs; J++) {
223
225
CallStackId CSId =
224
226
endian::readNext<CallStackId, llvm::endianness::little>(Ptr);
You can’t perform that action at this time.
0 commit comments