Home
last modified time | relevance | path

Searched refs:FrameId (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProf.h198 using FrameId = uint64_t; variable
314 inline FrameId hash() const { in hash()
328 return static_cast<FrameId>(Result); in hash()
344 llvm::SmallVector<FrameId> CallStack;
352 IndexedAllocationInfo(ArrayRef<FrameId> CS, CallStackId CSId,
386 llvm::function_ref<const Frame(const FrameId)> IdToFrameCallback) { in AllocationInfo()
387 for (const FrameId &Id : IndexedAI.CallStack) { in AllocationInfo()
417 llvm::SmallVector<llvm::SmallVector<FrameId>> CallSites;
481 llvm::function_ref<const Frame(const FrameId Id)> IdToFrameCallback) { in MemProfRecord()
485 for (const ArrayRef<FrameId> Site : Record.CallSites) { in MemProfRecord()
[all …]
H A DMemProfReader.h50 const llvm::DenseMap<FrameId, Frame> &getFrameMapping() const { in getFrameMapping()
55 const llvm::DenseMap<CallStackId, llvm::SmallVector<FrameId>> &
68 std::function<const Frame(const FrameId)> Callback = nullptr) {
100 llvm::DenseMap<FrameId, Frame> FrameIdMap,
106 llvm::DenseMap<FrameId, Frame> FrameIdMap, in MemProfReader() argument
107 llvm::DenseMap<CallStackId, llvm::SmallVector<FrameId>> CSIdMap, in MemProfReader()
114 const Frame &idToFrame(const FrameId Id) const { in idToFrame()
120 llvm::DenseMap<FrameId, Frame> IdToFrame;
122 llvm::DenseMap<CallStackId, llvm::SmallVector<FrameId>> CSIdToCallStack;
166 std::function<const Frame(const FrameId)> Callback) override;
[all …]
H A DInstrProfWriter.h112 bool addMemProfFrame(const memprof::FrameId, const memprof::Frame &F,
118 const llvm::SmallVector<memprof::FrameId> &CallStack,
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DMemProf.cpp32 Size += sizeof(FrameId) * IAI.CallStack.size(); in serializedSizeV0()
84 Result += Frames.size() * sizeof(FrameId); in serializedSizeV0()
140 for (const FrameId &Id : N.CallStack) in serializeV0()
141 LE.write<FrameId>(Id); in serializeV0()
149 for (const FrameId &Id : Frames) in serializeV0()
150 LE.write<FrameId>(Id); in serializeV0()
228 const FrameId Id = in deserializeV0()
229 endian::readNext<FrameId, llvm::endianness::little>(Ptr); in deserializeV0()
244 llvm::SmallVector<FrameId> Frames; in deserializeV0()
247 const FrameId Id = in deserializeV0()
[all …]
H A DInstrProfWriter.cpp285 bool InstrProfWriter::addMemProfFrame(const memprof::FrameId Id, in addMemProfFrame()
303 const llvm::SmallVector<memprof::FrameId> &CallStack, in addMemProfCallStack()
393 for (auto &[FrameId, Frame] : IPW.MemProfData.Frames) { in mergeRecordsFromWriter()
396 if (!addMemProfFrame(FrameId, Frame, Warn)) in mergeRecordsFromWriter()
478 llvm::MapVector<memprof::FrameId, memprof::Frame> &MemProfFrameData) { in writeMemProfFrames() argument
481 for (auto &[FrameId, Frame] : MemProfFrameData) { in writeMemProfFrames()
483 FrameTableGenerator.insert(FrameId, Frame); in writeMemProfFrames()
493 static llvm::DenseMap<memprof::FrameId, memprof::LinearFrameId>
496 llvm::MapVector<memprof::FrameId, memprof::Frame> &MemProfFrameData, in writeMemProfFrameArray() argument
497 llvm::DenseMap<memprof::FrameId, memprof::FrameStat> &FrameHistogram) { in writeMemProfFrameArray() argument
[all …]
H A DMemProfReader.cpp237 llvm::DenseMap<FrameId, Frame> FrameIdMap, in MemProfReader() argument
484 using LocationPtr = const llvm::SmallVector<FrameId> *; in mapRawProfileToRecords()
498 llvm::SmallVector<FrameId> Callstack; in mapRawProfileToRecords()
506 const SmallVector<FrameId> &Frames = SymbolizedFrame[Address]; in mapRawProfileToRecords()
619 const FrameId Hash = F.hash(); in symbolizeAndFilterStackFrames()
776 std::function<const Frame(const FrameId)> Callback) { in readNextRecord()
780 auto IdToFrameCallback = [this](const FrameId Id) { in readNextRecord()