Lines Matching refs:memprof
187 memprof::IndexedVersion MemProfVersionRequested, bool MemProfFullSchema) in InstrProfWriter()
275 const Function::GUID Id, const memprof::IndexedMemProfRecord &Record) { in addMemProfRecord()
281 memprof::IndexedMemProfRecord &Existing = Iter->second; in addMemProfRecord()
285 bool InstrProfWriter::addMemProfFrame(const memprof::FrameId Id, in addMemProfFrame()
286 const memprof::Frame &Frame, in addMemProfFrame()
302 const memprof::CallStackId CSId, in addMemProfCallStack()
303 const llvm::SmallVector<memprof::FrameId> &CallStack, in addMemProfCallStack()
444 const memprof::MemProfSchema &Schema) { in writeMemProfSchema()
453 llvm::MapVector<GlobalValue::GUID, memprof::IndexedMemProfRecord> in writeMemProfRecords()
455 memprof::MemProfSchema *Schema, memprof::IndexedVersion Version, in writeMemProfRecords()
456 llvm::DenseMap<memprof::CallStackId, memprof::LinearCallStackId> in writeMemProfRecords()
458 memprof::RecordWriterTrait RecordWriter(Schema, Version, in writeMemProfRecords()
460 OnDiskChainedHashTableGenerator<memprof::RecordWriterTrait> in writeMemProfRecords()
478 llvm::MapVector<memprof::FrameId, memprof::Frame> &MemProfFrameData) { in writeMemProfFrames()
479 OnDiskChainedHashTableGenerator<memprof::FrameWriterTrait> in writeMemProfFrames()
493 static llvm::DenseMap<memprof::FrameId, memprof::LinearFrameId>
496 llvm::MapVector<memprof::FrameId, memprof::Frame> &MemProfFrameData, in writeMemProfFrameArray()
497 llvm::DenseMap<memprof::FrameId, memprof::FrameStat> &FrameHistogram) { in writeMemProfFrameArray()
499 llvm::DenseMap<memprof::FrameId, memprof::LinearFrameId> MemProfFrameIndexes; in writeMemProfFrameArray()
510 std::vector<std::pair<memprof::FrameId, const memprof::Frame *>> FrameIdOrder; in writeMemProfFrameArray()
516 [&](const std::pair<memprof::FrameId, const memprof::Frame *> &L, in writeMemProfFrameArray()
517 const std::pair<memprof::FrameId, const memprof::Frame *> &R) { in writeMemProfFrameArray()
550 llvm::MapVector<memprof::CallStackId, llvm::SmallVector<memprof::FrameId>> in writeMemProfCallStacks()
552 OnDiskChainedHashTableGenerator<memprof::CallStackWriterTrait> in writeMemProfCallStacks()
562 static llvm::DenseMap<memprof::CallStackId, memprof::LinearCallStackId>
565 llvm::MapVector<memprof::CallStackId, llvm::SmallVector<memprof::FrameId>> in writeMemProfCallStackArray()
567 llvm::DenseMap<memprof::FrameId, memprof::LinearFrameId> in writeMemProfCallStackArray()
569 llvm::DenseMap<memprof::FrameId, memprof::FrameStat> &FrameHistogram) { in writeMemProfCallStackArray()
570 llvm::DenseMap<memprof::CallStackId, memprof::LinearCallStackId> in writeMemProfCallStackArray()
573 memprof::CallStackRadixTreeBuilder Builder; in writeMemProfCallStackArray()
598 memprof::IndexedMemProfData &MemProfData) { in writeMemProfV0()
604 auto Schema = memprof::getFullSchema(); in writeMemProfV0()
608 writeMemProfRecords(OS, MemProfData.Records, &Schema, memprof::Version0); in writeMemProfV0()
632 memprof::IndexedMemProfData &MemProfData) { in writeMemProfV1()
633 OS.write(memprof::Version1); in writeMemProfV1()
639 auto Schema = memprof::getFullSchema(); in writeMemProfV1()
643 writeMemProfRecords(OS, MemProfData.Records, &Schema, memprof::Version1); in writeMemProfV1()
670 memprof::IndexedMemProfData &MemProfData, in writeMemProfV2()
672 OS.write(memprof::Version2); in writeMemProfV2()
680 auto Schema = memprof::getHotColdSchema(); in writeMemProfV2()
682 Schema = memprof::getFullSchema(); in writeMemProfV2()
686 writeMemProfRecords(OS, MemProfData.Records, &Schema, memprof::Version2); in writeMemProfV2()
718 memprof::IndexedMemProfData &MemProfData, in writeMemProfV3()
720 OS.write(memprof::Version3); in writeMemProfV3()
726 auto Schema = memprof::getHotColdSchema(); in writeMemProfV3()
728 Schema = memprof::getFullSchema(); in writeMemProfV3()
731 llvm::DenseMap<memprof::FrameId, memprof::FrameStat> FrameHistogram = in writeMemProfV3()
732 memprof::computeFrameHistogram(MemProfData.CallStacks); in writeMemProfV3()
735 llvm::DenseMap<memprof::FrameId, memprof::LinearFrameId> MemProfFrameIndexes = in writeMemProfV3()
739 llvm::DenseMap<memprof::CallStackId, memprof::LinearCallStackId> in writeMemProfV3()
745 writeMemProfRecords(OS, MemProfData.Records, &Schema, memprof::Version3, in writeMemProfV3()
760 memprof::IndexedMemProfData &MemProfData, in writeMemProf()
761 memprof::IndexedVersion MemProfVersionRequested, in writeMemProf()
764 case memprof::Version0: in writeMemProf()
766 case memprof::Version1: in writeMemProf()
768 case memprof::Version2: in writeMemProf()
770 case memprof::Version3: in writeMemProf()
778 MemProfVersionRequested, memprof::MinimumSupportedVersion, in writeMemProf()
779 memprof::MaximumSupportedVersion)); in writeMemProf()