Home
last modified time | relevance | path

Searched refs:Profiles (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project/llvm/unittests/XRay/
H A DProfileTest.cpp186 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 DProfileGenerator.h40 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 DProfileGenerator.cpp140 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 DRISCVTargetDefEmitter.cpp
/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProfReader.h350 : 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 DProfileCommon.h101 computeSummaryForProfiles(const sampleprof::SampleProfileMap &Profiles);
H A DSampleProf.h1377 SampleContextTrimmer(SampleProfileMap &Profiles) : ProfileMap(Profiles){};
1401 ProfileConverter(SampleProfileMap &Profiles);
H A DSampleProfWriter.h350 std::error_code writeFuncMetadata(const SampleProfileMap &Profiles);
/llvm-project/llvm/unittests/ProfileData/
H A DSampleProfTest.cpp199 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 DProfileSummaryBuilder.cpp194 const SampleProfileMap &Profiles) { in computeSummaryForProfiles() argument
198 const sampleprof::SampleProfileMap *ProfilesToUse = &Profiles; in computeSummaryForProfiles()
207 ProfileConverter::flattenProfile(Profiles, ContextLessProfiles, true); in computeSummaryForProfiles()
H A DSampleProfReader.cpp72 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 DSampleProf.cpp444 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 DSampleProfWriter.cpp331 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 DRISCVProfiles.td1 //===------ RISCVProfiles.td - RISC-V Profiles -------------*- tablegen -*-===//
/llvm-project/bolt/tools/merge-fdata/
H A Dmerge-fdata.cpp283 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 DSampleContextTracker.h94 SampleContextTracker(SampleProfileMap &Profiles,
/llvm-project/llvm/lib/Transforms/IPO/
H A DSampleContextTracker.cpp198 SampleProfileMap &Profiles, in SampleContextTracker() argument
201 for (auto &FuncSample : Profiles) { in SampleContextTracker()
H A DSampleProfile.cpp532 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 DMisExpect.rst71 | Sampling | Profiles collected through sampling with external tools, such as ``perf`` on Lin…
/llvm-project/clang/docs/
H A DMisExpect.rst73 | Sampling | Profiles collected through sampling with external tools, such as ``perf`` on Lin…
/llvm-project/llvm/tools/llvm-profdata/
H A Dllvm-profdata.cpp1611 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 DOptimizingLinux.md47 Profiles collected from multiple workloads could be joined into a single profile using `merge-fdata` utility:
H A Dindex.rst238 Multiple Profiles
/llvm-project/bolt/
H A DREADME.md192 ## Multiple Profiles
/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstrInfo.td14 // AMDGPU DAG Profiles

12