Lines Matching refs:ProfileMap
44 SampleProfileWriter::writeFuncProfiles(const SampleProfileMap &ProfileMap) { in writeFuncProfiles() argument
46 sortFuncProfiles(ProfileMap, V); in writeFuncProfiles()
54 std::error_code SampleProfileWriter::write(const SampleProfileMap &ProfileMap) { in write() argument
55 if (std::error_code EC = writeHeader(ProfileMap)) in write()
58 if (std::error_code EC = writeFuncProfiles(ProfileMap)) in write()
118 SampleProfileWriterExtBinaryBase::write(const SampleProfileMap &ProfileMap) { in write() argument
119 if (std::error_code EC = writeHeader(ProfileMap)) in write()
124 if (std::error_code EC = writeSections(ProfileMap)) in write()
258 const SampleProfileMap &ProfileMap) { in writeNameTableSection() argument
259 for (const auto &I : ProfileMap) { in writeNameTableSection()
318 SecType Type, uint32_t LayoutIdx, const SampleProfileMap &ProfileMap) { in writeOneSection() argument
337 computeSummary(ProfileMap); in writeOneSection()
342 if (auto EC = writeNameTableSection(ProfileMap)) in writeOneSection()
351 if (std::error_code EC = writeFuncProfiles(ProfileMap)) in writeOneSection()
359 if (std::error_code EC = writeFuncMetadata(ProfileMap)) in writeOneSection()
377 const SampleProfileMap &ProfileMap) { in writeDefaultLayout() argument
382 if (auto EC = writeOneSection(SecProfSummary, 0, ProfileMap)) in writeDefaultLayout()
384 if (auto EC = writeOneSection(SecNameTable, 1, ProfileMap)) in writeDefaultLayout()
386 if (auto EC = writeOneSection(SecCSNameTable, 2, ProfileMap)) in writeDefaultLayout()
388 if (auto EC = writeOneSection(SecLBRProfile, 4, ProfileMap)) in writeDefaultLayout()
390 if (auto EC = writeOneSection(SecProfileSymbolList, 5, ProfileMap)) in writeDefaultLayout()
392 if (auto EC = writeOneSection(SecFuncOffsetTable, 3, ProfileMap)) in writeDefaultLayout()
394 if (auto EC = writeOneSection(SecFuncMetadata, 6, ProfileMap)) in writeDefaultLayout()
399 static void splitProfileMapToTwo(const SampleProfileMap &ProfileMap, in splitProfileMapToTwo() argument
402 for (const auto &I : ProfileMap) { in splitProfileMapToTwo()
411 const SampleProfileMap &ProfileMap) { in writeCtxSplitLayout() argument
413 splitProfileMapToTwo(ProfileMap, ContextProfileMap, NoContextProfileMap); in writeCtxSplitLayout()
415 if (auto EC = writeOneSection(SecProfSummary, 0, ProfileMap)) in writeCtxSplitLayout()
417 if (auto EC = writeOneSection(SecNameTable, 1, ProfileMap)) in writeCtxSplitLayout()
433 if (auto EC = writeOneSection(SecProfileSymbolList, 6, ProfileMap)) in writeCtxSplitLayout()
435 if (auto EC = writeOneSection(SecFuncMetadata, 7, ProfileMap)) in writeCtxSplitLayout()
442 const SampleProfileMap &ProfileMap) { in writeSections() argument
445 EC = writeDefaultLayout(ProfileMap); in writeSections()
447 EC = writeCtxSplitLayout(ProfileMap); in writeSections()
454 SampleProfileWriterCompactBinary::write(const SampleProfileMap &ProfileMap) { in write() argument
455 if (std::error_code EC = SampleProfileWriter::write(ProfileMap)) in write()
652 SampleProfileWriterBinary::writeHeader(const SampleProfileMap &ProfileMap) { in writeHeader() argument
655 computeSummary(ProfileMap); in writeHeader()
660 for (const auto &I : ProfileMap) { in writeHeader()
736 const SampleProfileMap &ProfileMap) { in writeHeader() argument
746 const SampleProfileMap &ProfileMap) { in writeHeader() argument
748 if (auto EC = SampleProfileWriterBinary::writeHeader(ProfileMap)) in writeHeader()
896 void SampleProfileWriter::computeSummary(const SampleProfileMap &ProfileMap) { in computeSummary() argument
898 Summary = Builder.computeSummaryForProfiles(ProfileMap); in computeSummary()