Searched refs:memprof (Results 1 - 22 of 22) sorted by relevance

/freebsd-current/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 Dmemprof_mibmap.cpp19 using ::llvm::memprof::MemInfoBlock;
H A Dmemprof_rawprofile.cpp19 using ::llvm::memprof::MemInfoBlock;
20 using SegmentEntry = ::llvm::memprof::SegmentEntry;
21 using Header = ::llvm::memprof::Header;
H A Dmemprof_allocator.cpp39 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 DInstrProfWriter.h54 // 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 DMIBEntryDef.inc9 * This file defines the macros for memprof profiling data structures.
10 * Eg. usage to define the memprof meminfoblock struct:
H A DInstrProfReader.h556 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 DRawMemProfReader.h32 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 DMemProf.h16 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 DMIBEntryDef.inc9 * 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 DMemoryProfileInfo.cpp17 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 DModuleSummaryAnalysis.cpp60 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 DInstrProfWriter.cpp269 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 DMemProf.cpp10 namespace memprof { namespace in namespace:llvm
102 "memprof schema invalid");
111 "memprof schema invalid");
120 } // namespace memprof
H A DRawMemProfReader.cpp43 #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 DInstrProfReader.cpp1225 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 Drawprofile.cpp1 #include "memprof/memprof_rawprofile.h"
21 using ::llvm::memprof::MemInfoBlock;
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemoryProfileInfo.h24 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 DMemProfiler.cpp49 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 Dllvm-profdata.cpp625 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 DInlineFunction.cpp81 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 DMemProfContextDisambiguation.cpp51 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...]

Completed in 400 milliseconds