| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | IndexedMemProfData.cpp | 26 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 D | MemProfCommon.cpp | 21 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 D | InstrProfReader.cpp | 1430 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 D | MemProfSummary.cpp | 16 using namespace llvm::memprof; 33 OS.write32(memprof::MemProfSummary::getNumSummaryFields()); in write()
|
| H A D | InstrProfWriter.cpp | 127 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 D | MemProfReader.cpp | 48 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 D | MemProfYAML.h | 11 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 D | InstrProfWriter.h | 58 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 D | IndexedMemProfData.h | 27 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 D | InstrProfReader.h | 597 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 D | MemProfReader.h | 35 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 D | MIBEntryDef.inc | 9 * This file defines the macros for memprof profiling data structures. 10 * Eg. usage to define the memprof meminfoblock struct:
|
| H A D | MemProfData.inc | 30 // 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 D | MemProfCommon.h | 20 namespace memprof {
|
| H A D | MemProfSummaryBuilder.h | 21 namespace memprof {
|
| H A D | MemProfSummary.h | 20 namespace memprof {
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemoryProfileInfo.cpp | 21 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 D | memprof_mibmap.h | 14 ::llvm::memprof::MemInfoBlock mib; 22 void InsertOrMerge(const uptr Id, const ::llvm::memprof::MemInfoBlock &Block,
|
| H A D | README.txt | 8 memprof_*.{cc,h} : Sources of the memprof runtime library. 17 make check-memprof
|
| H A D | memprof_rawprofile.cpp | 19 using ::llvm::memprof::MemInfoBlock; 20 using SegmentEntry = ::llvm::memprof::SegmentEntry; 21 using Header = ::llvm::memprof::Header;
|
| H A D | memprof_mibmap.cpp | 19 using ::llvm::memprof::MemInfoBlock;
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemProfUse.cpp | 38 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 D | MIBEntryDef.inc | 9 * This file defines the macros for memprof profiling data structures. 10 * Eg. usage to define the memprof meminfoblock struct:
|
| H A D | MemProfData.inc | 30 // 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 D | MemProfUse.h | 43 namespace memprof {
|