Lines Matching full:second
124 mergeSampleProfErrors(Result, addCalledTarget(I.first, I.second, Weight));
139 OS << " " << I.first << ":" << I.second;
168 OS << SI->first << ": " << SI->second;
182 for (const auto &FS : CS->second) {
184 OS << CS->first << ": inlined callee: " << FS.second.getFunction()
186 FS.second.print(OS, Indent + 4);
206 SortedProfiles.push_back(std::make_pair(I.first, &I.second));
210 if (A.second->getTotalSamples() == B.second->getTotalSamples())
211 return A.second->getContext() < B.second->getContext();
212 return A.second->getTotalSamples() > B.second->getTotalSamples();
261 FS = FS->findFunctionSamplesAt(S[i].first, S[i].second, Remapper,
270 for (const auto &TS : BS.second.getCallTargets())
274 for (const auto &NameFS : CS.second) {
276 NameFS.second.findAllNames(NameSet);
291 auto FS = I->second.find(getRepInFormat(CalleeName));
292 if (FS != I->second.end())
293 return &FS->second;
298 CalleeName = R->second.stringRef();
299 auto FS = I->second.find(getRepInFormat(CalleeName));
300 if (FS != I->second.end())
301 return &FS->second;
307 auto FS = I->second.find(getRepInFormat(*NameInProfile));
308 if (FS != I->second.end())
309 return &FS->second;
319 for (const auto &NameFS : I->second)
320 if (NameFS.second.getTotalSamples() >= MaxTotalSamples) {
321 MaxTotalSamples = NameFS.second.getTotalSamples();
322 R = &NameFS.second;
367 const SampleContext &Context = I.second.getContext();
368 const FunctionSamples &FunctionProfile = I.second;
371 ColdProfiles.emplace_back(I.first, &I.second);
379 auto MergedContext = I.second->getContext().getContextFrames();
384 MergedProfile.merge(*I.second);
392 if (TrimColdContext && I.second.getTotalSamples() < ColdCountThreshold &&
393 ProfileMap.find(I.second.getContext()) == ProfileMap.end())
398 auto Ret = ProfileMap.emplace(I.second.getContext(), FunctionSamples());
399 FunctionSamples &OrigProfile = Ret.first->second;
400 OrigProfile.merge(I.second);
435 assert(It->second.FuncName == CalleeName &&
437 return &It->second;
447 FunctionSamples *FSamples = &FuncSample.second;
471 auto &ChildNode = It.second;