| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
| H A D | IndexedMemProfData.h | 49 CallStackId CSId = hashCallStack(CS); in addCallStack() local 50 CallStacks.try_emplace(CSId, CS); in addCallStack() 51 return CSId; in addCallStack() 55 CallStackId CSId = hashCallStack(CS); in addCallStack() local 56 CallStacks.try_emplace(CSId, std::move(CS)); in addCallStack() 57 return CSId; in addCallStack() 83 CallStackId CSId; in hashCallStack() local 84 std::memcpy(&CSId, Hash.data(), sizeof(Hash)); in hashCallStack() 85 return CSId; in hashCallStack()
|
| H A D | MemProf.h | 364 CallStackId CSId = 0; 369 IndexedCallSiteInfo(CallStackId CSId) : CSId(CSId) {} 370 IndexedCallSiteInfo(CallStackId CSId, 372 : CSId(CSId), CalleeGuids(std::move(CalleeGuids)) {} 375 return CSId == Other.CSId && CalleeGuids == Other.CalleeGuids; 388 CallStackId CSId = 0; 393 IndexedAllocationInfo(CallStackId CSId, const MemInfoBlock &MB, 395 : CSId(CSId), Info(MB, Schema) {} 396 IndexedAllocationInfo(CallStackId CSId, const PortableMemInfoBlock &MB) 397 : CSId(CSId), Info(MB) {} [all …]
|
| H A D | MemProfRadixTree.h | 77 std::vector<Frame> operator()(CallStackId CSId) { in operator() 79 auto CSIter = Map.find(CSId); in operator() 81 LastUnmappedId = CSId; in operator() 231 std::vector<Frame> operator()(CallStackId CSId) { return CSIdConv(CSId); } in operator()
|
| H A D | PGOCtxProfReader.h | 148 void ingestContext(uint32_t CSId, PGOCtxProfContext &&Other) { in ingestContext() argument 149 callsites()[CSId].emplace(Other.guid(), std::move(Other)); in ingestContext() 152 void ingestAllContexts(uint32_t CSId, CallTargetMapTy &&Other) { in ingestAllContexts() argument 153 auto [_, Inserted] = callsites().try_emplace(CSId, std::move(Other)); in ingestAllContexts()
|
| H A D | InstrProfWriter.h | 243 bool addMemProfCallStack(const memprof::CallStackId CSId,
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | MemProf.cpp | 122 LE.write<CallStackId>(N.CSId); in serializeV2() 129 LE.write<CallStackId>(CS.CSId); in serializeV2() 142 assert(MemProfCallStackIndexes.contains(N.CSId)); in serializeV3() 143 LE.write<LinearCallStackId>(MemProfCallStackIndexes[N.CSId]); in serializeV3() 150 assert(MemProfCallStackIndexes.contains(CS.CSId)); in serializeV3() 151 LE.write<LinearCallStackId>(MemProfCallStackIndexes[CS.CSId]); in serializeV3() 165 assert(MemProfCallStackIndexes.contains(N.CSId)); in serializeV4() 166 LE.write<LinearCallStackId>(MemProfCallStackIndexes[N.CSId]); in serializeV4() 173 assert(MemProfCallStackIndexes.contains(CS.CSId)); in serializeV4() 174 LE.write<LinearCallStackId>(MemProfCallStackIndexes[CS.CSId]); in serializeV4() [all …]
|
| H A D | MemProfSummaryBuilder.cpp | 25 void MemProfSummaryBuilder::addRecord(uint64_t CSId, in addRecord() argument 27 auto I = Contexts.insert(CSId); in addRecord() 56 addRecord(Alloc.CSId, Alloc.Info); in addRecord()
|
| H A D | MemProfRadixTree.cpp | 200 for (const auto &[CSId, CallStack] : llvm::reverse(CallStacks)) { in build() 203 CallStackPos.insert({CSId, Pos}); in build()
|
| H A D | MemProfReader.cpp | 516 CallStackId CSId = MemProfData.addCallStack(Callstack); in mapRawProfileToRecords() local 523 Record.AllocSites.emplace_back(CSId, MIB); in mapRawProfileToRecords() 821 CallStackId CSId = AddCallStack(AI.CallStack); in parse() local 822 IndexedRecord.AllocSites.emplace_back(CSId, AI.Info); in parse() 827 CallStackId CSId = AddCallStack(CallSite.Frames); in parse() local 828 IndexedRecord.CallSites.emplace_back(CSId, CallSite.CalleeGuids); in parse()
|
| H A D | InstrProfWriter.cpp | 269 const memprof::CallStackId CSId, in addMemProfCallStack() argument 272 auto [Iter, Inserted] = MemProfData.CallStacks.insert({CSId, CallStack}); in addMemProfCallStack() 306 for (const auto &[CSId, CS] : Incoming.CallStacks) in addMemProfData() 307 if (addMemProfCallStack(CSId, CS, Warn)) in addMemProfData() 413 for (auto &[CSId, CallStack] : IPW.MemProfData.CallStacks) { in mergeRecordsFromWriter() 414 if (!addMemProfCallStack(CSId, CallStack, Warn)) in mergeRecordsFromWriter()
|
| H A D | IndexedMemProfData.cpp | 136 for (auto &[CSId, CallStack] : MemProfCallStackData) in writeMemProfCallStacks() 137 CallStackTableGenerator.insert(CSId, CallStack); in writeMemProfCallStacks()
|
| H A D | InstrProfReader.cpp | 1523 Worklist.set(IndexedAI.CSId); in getMemProfCallerCalleePairs()
|