/llvm-project/llvm/unittests/XRay/ |
H A D | ProfileTest.cpp | 186 std::vector<Profile> Profiles(3); in TEST() local 187 EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{ in TEST() 189 {{Profiles[0].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST() 190 EXPECT_FALSE(errorToBool(Profiles[1].addBlock(Profile::Block{ in TEST() 192 {{Profiles[1].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST() 193 EXPECT_FALSE(errorToBool(Profiles[2].addBlock(Profile::Block{ in TEST() 195 {{Profiles[2].internPath({2, 1}), Profile::Data{1, 1000}}}}))); in TEST() 196 Profile Merged = std::accumulate(Profiles.begin(), Profiles.end(), Profile(), in TEST() 212 std::vector<Profile> Profiles(2); in TEST() local 215 EXPECT_FALSE(errorToBool(Profiles[0].addBlock(Profile::Block{ in TEST() [all …]
|
/llvm-project/llvm/tools/llvm-profgen/ |
H A D | ProfileGenerator.h | 40 const SampleProfileMap &&Profiles) in ProfileGeneratorBase() argument 41 : Binary(Binary), ProfileMap(std::move(Profiles)){}; in ProfileGeneratorBase() 111 void filterAmbiguousProfile(SampleProfileMap &Profiles); 123 double calculateDensity(const SampleProfileMap &Profiles); 125 void calculateAndShowDensity(const SampleProfileMap &Profiles); 163 ProfileGenerator(ProfiledBinary *Binary, const SampleProfileMap &&Profiles) in ProfileGenerator() argument 164 : ProfileGeneratorBase(Binary, std::move(Profiles)){}; in ProfileGenerator() 186 void trimColdProfiles(const SampleProfileMap &Profiles, 197 CSProfileGenerator(ProfiledBinary *Binary, SampleProfileMap &Profiles) in CSProfileGenerator() argument 198 : ProfileGeneratorBase(Binary), ContextTracker(Profiles, nullptr){}; in CSProfileGenerator()
|
H A D | ProfileGenerator.cpp | 140 ProfileGeneratorBase::create(ProfiledBinary *Binary, SampleProfileMap &Profiles, in create() argument 144 Generator.reset(new CSProfileGenerator(Binary, Profiles)); in create() 146 Generator.reset(new ProfileGenerator(Binary, std::move(Profiles))); in create() 238 void ProfileGeneratorBase::filterAmbiguousProfile(SampleProfileMap &Profiles) { in filterAmbiguousProfile() argument 519 void ProfileGenerator::trimColdProfiles(const SampleProfileMap &Profiles, in trimColdProfiles() argument 793 ProfileGeneratorBase::calculateDensity(const SampleProfileMap &Profiles) { in calculateDensity() argument 799 for (const auto &I : Profiles) { in calculateDensity() 837 const SampleProfileMap &Profiles) { in calculateAndShowDensity() argument 838 double Density = calculateDensity(Profiles); in calculateAndShowDensity() 1135 SampleProfileMap &Profiles) { in computeSummaryAndThreshold() argument [all...] |
/llvm-project/llvm/utils/TableGen/ |
H A D | RISCVTargetDefEmitter.cpp |
|
/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | SampleProfReader.h | 350 : Profiles(), Ctx(C), Buffer(std::move(B)), Format(Format) {} in Profiles() function 387 if (Profiles.find(FunctionId(F)) == Profiles.end()) 389 if (std::error_code EC = read(S, Profiles)) 423 auto It = Profiles.find(FunctionId(Fname)); in getSamplesFor() 424 if (It != Profiles.end()) in getSamplesFor() 431 auto It = Profiles.find(FunctionId(Fname)); in reportError() 432 if (It != Profiles.end()) in reportError() 439 auto It = Profiles.find(FunctionId(*NameInProfile)); 440 if (It != Profiles [all...] |
H A D | ProfileCommon.h | 101 computeSummaryForProfiles(const sampleprof::SampleProfileMap &Profiles);
|
H A D | SampleProf.h | 1377 SampleContextTrimmer(SampleProfileMap &Profiles) : ProfileMap(Profiles){}; 1401 ProfileConverter(SampleProfileMap &Profiles);
|
H A D | SampleProfWriter.h | 350 std::error_code writeFuncMetadata(const SampleProfileMap &Profiles);
|
/llvm-project/llvm/unittests/ProfileData/ |
H A D | SampleProfTest.cpp | 199 SampleProfileMap Profiles; in testRoundTrip() local 200 Profiles[FooName] = std::move(FooSamples); in testRoundTrip() 201 Profiles[BarName] = std::move(BarSamples); in testRoundTrip() 202 Profiles[BazName] = std::move(BazSamples); in testRoundTrip() 203 Profiles[BooName] = std::move(BooSamples); in testRoundTrip() 229 EC = Writer->write(Profiles); in testRoundTrip()
|
/llvm-project/llvm/lib/ProfileData/ |
H A D | ProfileSummaryBuilder.cpp | 194 const SampleProfileMap &Profiles) { in computeSummaryForProfiles() argument 198 const sampleprof::SampleProfileMap *ProfilesToUse = &Profiles; in computeSummaryForProfiles() 207 ProfileConverter::flattenProfile(Profiles, ContextLessProfiles, true); in computeSummaryForProfiles()
|
H A D | SampleProfReader.cpp | 72 sortFuncProfiles(Profiles, V); in dump() 139 sortFuncProfiles(Profiles, V); in dumpJson() 368 FunctionSamples &FProfile = Profiles.create(FContext); in readImpl() 458 Profiles.erase(*FlatSample); in hasFormat() 460 assert((CSProfileCount == 0 || CSProfileCount == Profiles.size()) && in hasFormat() 464 TopLevelProbeProfileCount == Profiles.size()) && in hasFormat() 682 SampleProfileMap &Profiles) { in readImpl() 694 auto Res = Profiles.try_emplace(Hash, FContext, FunctionSamples()); in readOneSection() 709 return readFuncProfile(Start, Profiles); in readOneSection() 828 SampleProfileMap &Profiles) { in readFuncOffsetTable() [all...] |
H A D | SampleProf.cpp | 444 ProfileConverter::ProfileConverter(SampleProfileMap &Profiles) in getOrCreateContextPath() 445 : ProfileMap(Profiles) { in getOrCreateContextPath() 446 for (auto &FuncSample : Profiles) { in getOrCreateContextPath() 428 ProfileConverter(SampleProfileMap & Profiles) ProfileConverter() argument
|
H A D | SampleProfWriter.cpp | 331 const SampleProfileMap &Profiles) { 335 for (const auto &Entry : Profiles) { in writeFuncMetadata() 333 writeFuncMetadata(const SampleProfileMap & Profiles) writeFuncMetadata() argument
|
/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVProfiles.td | 1 //===------ RISCVProfiles.td - RISC-V Profiles -------------*- tablegen -*-===//
|
/llvm-project/bolt/tools/merge-fdata/ |
H A D | merge-fdata.cpp | 283 auto ParseProfile = [&](const std::string &Filename, auto &Profiles) { in mergeLegacyProfiles() 313 Profile = &Profiles[tid]; in mergeLegacyProfiles() 267 __anond776545c0202(const std::string &Filename, auto &Profiles) mergeLegacyProfiles() argument
|
/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | SampleContextTracker.h | 94 SampleContextTracker(SampleProfileMap &Profiles,
|
/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | SampleContextTracker.cpp | 198 SampleProfileMap &Profiles, in SampleContextTracker() argument 201 for (auto &FuncSample : Profiles) { in SampleContextTracker()
|
H A D | SampleProfile.cpp | 532 const SampleProfileMap &Profiles); 2104 Module &M, ProfileSummaryInfo *PSI, const SampleProfileMap &Profiles) { in rejectHighStalenessProfile() 2109 for (const auto &I : Profiles) { in rejectHighStalenessProfile() 2086 rejectHighStalenessProfile(Module & M,ProfileSummaryInfo * PSI,const SampleProfileMap & Profiles) rejectHighStalenessProfile() argument
|
/llvm-project/llvm/docs/ |
H A D | MisExpect.rst | 71 | Sampling | Profiles collected through sampling with external tools, such as ``perf`` on Lin…
|
/llvm-project/clang/docs/ |
H A D | MisExpect.rst | 73 | Sampling | Profiles collected through sampling with external tools, such as ``perf`` on Lin…
|
/llvm-project/llvm/tools/llvm-profdata/ |
H A D | llvm-profdata.cpp | 1611 SampleProfileMap &Profiles = Reader->getProfiles(); in parseWeightedFile() 1620 for (SampleProfileMap::iterator I = Profiles.begin(), E = Profiles.end(); in addWeightedInput() 3157 static int showHotFunctionList(const sampleprof::SampleProfileMap &Profiles, in showSampleProfile() 3182 for (const auto &I : Profiles) { in showSampleProfile() 3214 Profiles.size(), HotFuncSample, ProfileTotalSample, in showDebugInfoCorrelation() 1528 SampleProfileMap &Profiles = Reader->getProfiles(); mergeSampleProfile() local 3076 showHotFunctionList(const sampleprof::SampleProfileMap & Profiles,ProfileSummary & PS,uint32_t TopN,raw_fd_ostream & OS) showHotFunctionList() argument
|
/llvm-project/bolt/docs/ |
H A D | OptimizingLinux.md | 47 Profiles collected from multiple workloads could be joined into a single profile using `merge-fdata` utility:
|
H A D | index.rst | 238 Multiple Profiles
|
/llvm-project/bolt/ |
H A D | README.md | 192 ## Multiple Profiles
|
/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstrInfo.td | 14 // AMDGPU DAG Profiles
|