Home
last modified time | relevance | path

Searched refs:memprof (Results 1 – 25 of 45) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DIndexedMemProfData.cpp26 const memprof::MemProfSchema &Schema) { in writeMemProfSchema()
35 llvm::MapVector<GlobalValue::GUID, memprof::IndexedMemProfRecord> in writeMemProfRecords()
37 memprof::MemProfSchema *Schema, memprof::IndexedVersion Version, in writeMemProfRecords()
38 llvm::DenseMap<memprof::CallStackId, memprof::LinearCallStackId> in writeMemProfRecords()
40 memprof::RecordWriterTrait RecordWriter(Schema, Version, in writeMemProfRecords()
42 OnDiskChainedHashTableGenerator<memprof::RecordWriterTrait> in writeMemProfRecords()
60 llvm::MapVector<memprof::FrameId, memprof::Frame> &MemProfFrameData) { in writeMemProfFrames()
61 OnDiskChainedHashTableGenerator<memprof::FrameWriterTrait> in writeMemProfFrames()
75 static llvm::DenseMap<memprof::FrameId, memprof::LinearFrameId>
78 llvm::MapVector<memprof::FrameId, memprof::Frame> &MemProfFrameData, in writeMemProfFrameArray()
[all …]
H A DMemProfCommon.cpp21 using namespace llvm::memprof;
51 AllocationType llvm::memprof::getAllocType(uint64_t TotalLifetimeAccessDensity, in getAllocType()
73 uint64_t llvm::memprof::computeFullStackId(ArrayRef<Frame> CallStack) { in computeFullStackId()
H A DInstrProfReader.cpp1430 static Expected<memprof::MemProfRecord>
1431 getMemProfRecordV2(const memprof::IndexedMemProfRecord &IndexedRecord, in getMemProfRecordV2()
1434 memprof::FrameIdConverter<MemProfFrameHashTable> FrameIdConv( in getMemProfRecordV2()
1437 memprof::CallStackIdConverter<MemProfCallStackHashTable> CSIdConv( in getMemProfRecordV2()
1440 memprof::MemProfRecord Record = IndexedRecord.toMemProfRecord(CSIdConv); in getMemProfRecordV2()
1460 Expected<memprof::MemProfRecord>
1472 const memprof::IndexedMemProfRecord &IndexedRecord = *Iter; in getMemProfRecord()
1474 case memprof::Version2: in getMemProfRecord()
1480 case memprof::Version3: in getMemProfRecord()
1481 case memprof::Version4: in getMemProfRecord()
[all …]
H A DMemProfSummary.cpp16 using namespace llvm::memprof;
33 OS.write32(memprof::MemProfSummary::getNumSummaryFields()); in write()
H A DInstrProfWriter.cpp127 memprof::IndexedVersion MemProfVersionRequested, bool MemProfFullSchema, in InstrProfWriter()
220 const Function::GUID Id, const memprof::IndexedMemProfRecord &Record) { in addMemProfRecord()
248 memprof::IndexedMemProfRecord &Existing = Iter->second; in addMemProfRecord()
252 bool InstrProfWriter::addMemProfFrame(const memprof::FrameId Id, in addMemProfFrame()
253 const memprof::Frame &Frame, in addMemProfFrame()
269 const memprof::CallStackId CSId, in addMemProfCallStack()
270 const llvm::SmallVector<memprof::FrameId> &CallStack, in addMemProfCallStack()
285 bool InstrProfWriter::addMemProfData(memprof::IndexedMemProfData Incoming, in addMemProfData()
330 std::unique_ptr<memprof::DataAccessProfData> DataAccessProfDataIn) { in addDataAccessProfData()
H A DMemProfReader.cpp48 namespace memprof { namespace
580 const uint64_t Guid = memprof::getGUID(DIFrame.FunctionName); in symbolizeAndFilterStackFrames()
639 const auto *Header = reinterpret_cast<const memprof::Header *>(Next); in peekBuildIds()
670 const auto *Header = reinterpret_cast<const memprof::Header *>(Next); in readRawProfile()
800 memprof::AllMemProfData Doc; in parse()
838 [](const memprof::SymbolHandle &Handle) -> memprof::SymbolHandleRef { in parse()
844 auto DataAccessProfileData = std::make_unique<memprof::DataAccessProfData>(); in parse()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProfYAML.h11 namespace memprof {
28 std::vector<memprof::DataAccessProfRecord> Records;
46 template <> struct ScalarTraits<memprof::GUIDHex64> {
47 static void output(const memprof::GUIDHex64 &Val, void *, raw_ostream &Out) {
52 static StringRef input(StringRef Scalar, void *, memprof::GUIDHex64 &Val) {
65 Val = memprof::getGUID(Scalar);
72 template <> struct MappingTraits<memprof::Frame> {
81 FrameWithHex64(IO &, const memprof::Frame &F)
84 memprof::Frame denormalize(IO &) {
85 return memprof::Frame(Function, LineOffset, Column, IsInlineFrame);
[all …]
H A DInstrProfWriter.h58 memprof::IndexedMemProfData MemProfData;
79 memprof::IndexedVersion MemProfVersionRequested;
87 std::unique_ptr<memprof::DataAccessProfData> DataAccessProfileData;
91 memprof::MemProfSummaryBuilder MemProfSumBuilder;
102 memprof::IndexedVersion MemProfVersionRequested =
103 static_cast<memprof::IndexedVersion>(
104 memprof::MinimumSupportedVersion),
129 LLVM_ABI bool addMemProfData(memprof::IndexedMemProfData Incoming,
136 std::unique_ptr<memprof::DataAccessProfData> DataAccessProfile);
214 void setMemProfVersionRequested(memprof::IndexedVersion Version) { in setMemProfVersionRequested()
[all …]
H A DIndexedMemProfData.h27 namespace memprof {
92 ProfOStream &OS, memprof::IndexedMemProfData &MemProfData,
93 memprof::IndexedVersion MemProfVersionRequested, bool MemProfFullSchema,
94 std::unique_ptr<memprof::DataAccessProfData> DataAccessProfileData,
95 std::unique_ptr<memprof::MemProfSummary> MemProfSum);
H A DInstrProfReader.h597 OnDiskIterableChainedHashTable<memprof::RecordLookupTrait>;
599 OnDiskIterableChainedHashTable<memprof::FrameLookupTrait>;
601 OnDiskIterableChainedHashTable<memprof::CallStackLookupTrait>;
694 memprof::IndexedVersion Version =
695 static_cast<memprof::IndexedVersion>(memprof::MinimumSupportedVersion);
697 std::unique_ptr<memprof::MemProfSummary> MemProfSum;
699 memprof::MemProfSchema Schema;
713 std::unique_ptr<memprof::DataAccessProfData> DataAccessProfileData;
718 memprof::IndexedVersion Version);
726 LLVM_ABI Expected<memprof::MemProfRecord>
[all …]
H A DMemProfReader.h35 namespace memprof {
234 std::unique_ptr<memprof::DataAccessProfData> takeDataAccessProfData() { in takeDataAccessProfData()
242 setDataAccessProfileData(std::unique_ptr<memprof::DataAccessProfData> Data) { in setDataAccessProfileData()
246 std::unique_ptr<memprof::DataAccessProfData> DataAccessProfileData;
H A DMIBEntryDef.inc9 * This file defines the macros for memprof profiling data structures.
10 * Eg. usage to define the memprof meminfoblock struct:
H A DMemProfData.inc30 // A 64-bit magic number to uniquely identify the raw binary memprof profile file.
47 namespace memprof {
48 // A struct describing the header used for the raw binary memprof profile format.
232 } // namespace memprof
H A DMemProfCommon.h20 namespace memprof {
H A DMemProfSummaryBuilder.h21 namespace memprof {
H A DMemProfSummary.h20 namespace memprof {
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp21 using namespace llvm::memprof;
55 bool llvm::memprof::metadataIncludesAllContextSizeInfo() { in metadataIncludesAllContextSizeInfo()
59 bool llvm::memprof::metadataMayIncludeContextSizeInfo() { in metadataMayIncludeContextSizeInfo()
63 bool llvm::memprof::recordContextSizeInfoForAnalysis() { in recordContextSizeInfoForAnalysis()
68 MDNode *llvm::memprof::buildCallstackMetadata(ArrayRef<uint64_t> CallStack, in buildCallstackMetadata()
80 MDNode *llvm::memprof::getMIBStackNode(const MDNode *MIB) { in getMIBStackNode()
86 AllocationType llvm::memprof::getMIBAllocType(const MDNode *MIB) { in getMIBAllocType()
101 std::string llvm::memprof::getAllocTypeAttributeString(AllocationType Type) { in getAllocTypeAttributeString()
118 bool llvm::memprof::hasSingleAllocType(uint8_t AllocTypes) { in hasSingleAllocType()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_mibmap.h14 ::llvm::memprof::MemInfoBlock mib;
22 void InsertOrMerge(const uptr Id, const ::llvm::memprof::MemInfoBlock &Block,
H A DREADME.txt8 memprof_*.{cc,h} : Sources of the memprof runtime library.
17 make check-memprof
H A Dmemprof_rawprofile.cpp19 using ::llvm::memprof::MemInfoBlock;
20 using SegmentEntry = ::llvm::memprof::SegmentEntry;
21 using Header = ::llvm::memprof::Header;
H A Dmemprof_mibmap.cpp19 using ::llvm::memprof::MemInfoBlock;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemProfUse.cpp38 using namespace llvm::memprof;
112 static uint64_t computeStackId(const memprof::Frame &Frame) { in computeStackId()
190 memprof::extractCallsFromIR(Module &M, const TargetLibraryInfo &TLI, in extractCallsFromIR()
226 uint64_t CallerGUID = memprof::getGUID(CallerName); in extractCallsFromIR()
227 uint64_t CalleeGUID = memprof::getGUID(CalleeName); in extractCallsFromIR()
265 memprof::computeUndriftMap(Module &M, IndexedInstrProfReader *MemProfReader, in computeUndriftMap()
269 DenseMap<uint64_t, SmallVector<memprof::CallEdgeTy, 0>> CallsFromProfile = in computeUndriftMap()
271 DenseMap<uint64_t, SmallVector<memprof::CallEdgeTy, 0>> CallsFromIR = in computeUndriftMap()
301 memprof::MemProfRecord &MemProfRec) { in undriftMemProfRecord()
382 std::optional<memprof::MemProfRecord> MemProfRec; in readMemprof()
/freebsd/contrib/llvm-project/compiler-rt/include/profile/
H A DMIBEntryDef.inc9 * This file defines the macros for memprof profiling data structures.
10 * Eg. usage to define the memprof meminfoblock struct:
H A DMemProfData.inc30 // A 64-bit magic number to uniquely identify the raw binary memprof profile file.
47 namespace memprof {
48 // A struct describing the header used for the raw binary memprof profile format.
232 } // namespace memprof
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/
H A DMemProfUse.h43 namespace memprof {

12