/freebsd-current/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 | memprof_mibmap.cpp | 19 using ::llvm::memprof::MemInfoBlock;
|
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_allocator.cpp | 39 using ::llvm::memprof::MemInfoBlock; 89 // timestamped at memprof init time (when memprof_init_timestamp_s 182 // Since memprof's mapping is compacting, the shadow chunk may be
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | InstrProfWriter.h | 54 // A map to hold memprof data per function. The lower 64 bits obtained from 56 llvm::MapVector<GlobalValue::GUID, memprof::IndexedMemProfRecord> 61 llvm::MapVector<memprof::FrameId, memprof::Frame> MemProfFrameData; 93 /// Add a memprof record for a function identified by its \p Id. 95 const memprof::IndexedMemProfRecord &Record); 97 /// Add a memprof frame identified by the hash of the contents of the frame in 99 bool addMemProfFrame(const memprof::FrameId, const memprof::Frame &F,
|
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 | InstrProfReader.h | 556 OnDiskIterableChainedHashTable<memprof::RecordLookupTrait>; 558 OnDiskIterableChainedHashTable<memprof::FrameLookupTrait>; 654 memprof::MemProfSchema Schema; 731 /// Return the memprof record for the function identified by 733 Expected<memprof::MemProfRecord> getMemProfRecord(uint64_t FuncNameHash);
|
H A D | RawMemProfReader.h | 32 namespace memprof { namespace in namespace:llvm 33 // A class for memprof profile data populated directly from external 101 // memprof profile data for that function, i.e allocation and callsite info. 112 // memprof profiles from instrumentation based profiling. 123 // a raw binary memprof profile. 126 // a raw binary memprof profile. 178 // Construct memprof records for each function and store it in the 211 } // namespace memprof
|
H A D | MemProf.h | 16 namespace memprof { namespace in namespace:llvm 324 // Holds the memprof profile information for a function. The internal 344 // TODO: Filter out duplicates which may occur if multiple memprof 384 // Serializes the memprof records in \p Records to the ostream \p OS based 388 // Deserializes memprof records from the Buffer. 393 // memprof, we remove any .llvm suffix added by LTO. MemProfRecords are 398 // Holds the memprof profile information for a function. The internal 423 // Prints out the contents of the memprof record in YAML. 443 // Reads a memprof schema from a buffer. All entries in the buffer are 445 // ids in the schema. Subsequent entries are integers which map to memprof [all...] |
/freebsd-current/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:
|
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemoryProfileInfo.cpp | 17 using namespace llvm::memprof; 24 "memprof-lifetime-access-density-cold-threshold", cl::init(0.05), 32 "memprof-ave-lifetime-cold-threshold", cl::init(200), cl::Hidden, 39 "memprof-min-ave-lifetime-access-density-hot-threshold", cl::init(1000), 44 AllocationType llvm::memprof::getAllocType(uint64_t TotalLifetimeAccessDensity, 65 MDNode *llvm::memprof::buildCallstackMetadata(ArrayRef<uint64_t> CallStack, 76 MDNode *llvm::memprof::getMIBStackNode(const MDNode *MIB) { 78 // The stack metadata is the first operand of each memprof MIB metadata. 82 AllocationType llvm::memprof::getMIBAllocType(const MDNode *MIB) { 84 // The allocation type is currently the second operand of each memprof [all...] |
H A D | ModuleSummaryAnalysis.cpp | 60 using namespace llvm::memprof; 462 // Summarize memprof related metadata. This is only needed for ThinLTO. 594 // Make sure that all calls we decided could not have memprof summaries get a
|
/freebsd-current/contrib/llvm-project/llvm/lib/ProfileData/ |
H A D | InstrProfWriter.cpp | 269 const Function::GUID Id, const memprof::IndexedMemProfRecord &Record) { 275 memprof::IndexedMemProfRecord &Existing = Result.first->second; 279 bool InstrProfWriter::addMemProfFrame(const memprof::FrameId Id, 280 const memprof::Frame &Frame, 285 // out. We don't support the merging of memprof data whose Frame -> Id 521 OS.write(0ULL); // Reserve space for the memprof record table offset. 522 OS.write(0ULL); // Reserve space for the memprof frame payload offset. 523 OS.write(0ULL); // Reserve space for the memprof frame table offset. 525 auto Schema = memprof::PortableMemInfoBlock::getSchema(); 531 auto RecordWriter = std::make_unique<memprof [all...] |
H A D | MemProf.cpp | 10 namespace memprof { namespace in namespace:llvm 102 "memprof schema invalid"); 111 "memprof schema invalid"); 120 } // namespace memprof
|
H A D | RawMemProfReader.cpp | 43 #define DEBUG_TYPE "memprof" 46 namespace memprof { namespace in namespace:llvm 66 // serialization of memprof profiles to the same file. 165 // are added to the memprof runtime. 405 // Convert the raw profile callstack data into memprof records. While doing so 414 "memprof callstack record does not contain id: " + Twine(StackId)); 448 // We attach the memprof record to each function bottom-up including the 570 auto *Header = reinterpret_cast<const memprof::Header *>(Next); 593 auto *Header = reinterpret_cast<const memprof::Header *>(Next); 605 "memprof ra [all...] |
H A D | InstrProfReader.cpp | 1225 auto SchemaOr = memprof::readMemProfSchema(Ptr); 1234 /*Base=*/Start, memprof::RecordLookupTrait(Schema))); 1240 /*Base=*/Start, memprof::FrameLookupTrait())); 1390 Expected<memprof::MemProfRecord> 1392 // TODO: Add memprof specific errors. 1395 "no memprof data available in profile"); 1400 "memprof record not found for function hash " + Twine(FuncNameHash)); 1404 memprof::FrameId LastUnmappedFrameId = 0; 1406 auto IdToFrameCallback = [&](const memprof::FrameId Id) { 1411 return memprof [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/memprof/tests/ |
H A D | rawprofile.cpp | 1 #include "memprof/memprof_rawprofile.h" 21 using ::llvm::memprof::MemInfoBlock;
|
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | MemoryProfileInfo.h | 24 namespace memprof { namespace in namespace:llvm 105 /// Returns true if memprof metadata attached, false if not (attribute added). 109 /// Helper class to iterate through stack ids in both metadata (memprof MIB and 190 } // end namespace memprof
|
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | MemProfiler.cpp | 49 using namespace llvm::memprof; 51 #define DEBUG_TYPE "memprof" 67 constexpr char MemProfModuleCtorName[] = "memprof.module_ctor"; 83 "memprof-guard-against-version-mismatch", 87 // This flag may need to be replaced with -f[no-]memprof-reads. 88 static cl::opt<bool> ClInstrumentReads("memprof-instrument-reads", 93 ClInstrumentWrites("memprof-instrument-writes", 98 "memprof-instrument-atomics", 103 "memprof-use-callbacks", 108 ClMemoryAccessCallbackPrefix("memprof [all...] |
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-profdata/ |
H A D | llvm-profdata.cpp | 625 using ::llvm::memprof::RawMemProfReader; 633 // should not be merged with memprof profiles. 661 // Add the memprof records into the writer context. 3124 auto ReaderOr = llvm::memprof::RawMemProfReader::create( 3132 std::unique_ptr<llvm::memprof::RawMemProfReader> Reader(
|
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | InlineFunction.cpp | 81 using namespace llvm::memprof; 811 // Remove existing memprof, which will either be replaced or may not be needed 842 // Update any memprof metadata on the cloned call. 846 // We currently expect that allocations with memprof metadata also have 875 // Update memprof related metadata (!memprof and !callsite) based on the 878 // and moving the subset of any memprof contexts to the inlined callee 886 // there was any memprof metadata inlined. 899 // involved in any profiled call contexts, and we can remove any memprof
|
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | MemProfContextDisambiguation.cpp | 51 using namespace llvm::memprof; 53 #define DEBUG_TYPE "memprof-context-disambiguation" 71 "Number of original (not cloned) allocations with memprof profiles " 93 "memprof-dot-file-path-prefix", cl::init(""), cl::Hidden, 97 static cl::opt<bool> ExportToDot("memprof-export-to-dot", cl::init(false), 102 DumpCCG("memprof-dump-ccg", cl::init(false), cl::Hidden, 106 VerifyCCG("memprof-verify-ccg", cl::init(false), cl::Hidden, 110 VerifyNodes("memprof-verify-nodes", cl::init(false), cl::Hidden, 114 "memprof-import-summary", 119 TailCallSearchDepth("memprof [all...] |