| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | DynoStats.cpp | 58 &Stats[FIRST_DYNO_STAT], &Stats[LAST_DYNO_STAT], in operator <() 59 &Other.Stats[FIRST_DYNO_STAT], &Other.Stats[LAST_DYNO_STAT]); in operator <() 63 return std::equal(&Stats[FIRST_DYNO_STAT], &Stats[LAST_DYNO_STAT], in operator ==() 64 &Other.Stats[FIRST_DYNO_STAT]); in operator ==() 72 return Stats[A] < Other.Stats[A]; in lessThan() 134 Stats[Stat] += Other[Stat]; in operator +=() 168 return Stats; in getDynoStats() 196 if (I == Stats.OpcodeHistogram.end()) { in getDynoStats() 200 Stats.OpcodeHistogram.emplace(Opcode, in getDynoStats() 250 Stats[DynoStats::LOADS] += CallFreq; in getDynoStats() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Statistic.cpp | 160 for (auto *Stat : Stats) { in reset() 172 Stats.clear(); in reset() 176 StatisticInfo &Stats = *StatInfo; in PrintStatistics() local 180 for (TrackingStatistic *Stat : Stats.Stats) { in PrintStatistics() 186 Stats.sort(); in PrintStatistics() 194 for (TrackingStatistic *Stat : Stats.Stats) in PrintStatistics() 204 StatisticInfo &Stats = *StatInfo; in PrintStatisticsJSON() local 206 Stats.sort(); in PrintStatisticsJSON() 211 for (const TrackingStatistic *Stat : Stats.Stats) { in PrintStatisticsJSON() 231 StatisticInfo &Stats = *StatInfo; in PrintStatistics() local [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator_combined.h | 29 Stats.Init(); in init() 41 return Secondary.Allocate(&Stats, Size, Alignment); in allocateSecondary() 49 Secondary.Deallocate(&Stats, Ptr); in deallocateSecondary() 53 Cache->Init(&Stats); in initCache() 57 Cache->Destroy(&Primary, &Stats); in destroyCache() 61 Stats.Get(StatType); in getStats() 72 AllocatorGlobalStats Stats; variable
|
| H A D | scudo_allocator_secondary.h | 74 void *Allocate(AllocatorStats *Stats, uptr Size, uptr Alignment) { in Allocate() argument 140 Stats->Add(AllocatorStatAllocated, CommittedSize); in Allocate() 141 Stats->Add(AllocatorStatMapped, CommittedSize); in Allocate() 151 void Deallocate(AllocatorStats *Stats, void *Ptr) { in Deallocate() argument 159 Stats->Sub(AllocatorStatAllocated, Size); in Deallocate() 160 Stats->Sub(AllocatorStatMapped, Size); in Deallocate()
|
| /llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/Mips/ |
| H A D | BenchmarkResultTest.cpp | 119 PerInstructionStats Stats; in TEST_F() local 120 Stats.push(BenchmarkMeasure{"a", 0.5, 0.0}); in TEST_F() 121 Stats.push(BenchmarkMeasure{"a", 1.5, 0.0}); in TEST_F() 122 Stats.push(BenchmarkMeasure{"a", -1.0, 0.0}); in TEST_F() 123 Stats.push(BenchmarkMeasure{"a", 0.0, 0.0}); in TEST_F() 124 EXPECT_EQ(Stats.min(), -1.0); in TEST_F() 125 EXPECT_EQ(Stats.max(), 1.5); in TEST_F() 126 EXPECT_EQ(Stats.avg(), 0.25); // (0.5+1.5-1.0+0.0) / 4 in TEST_F()
|
| /llvm-project-15.0.7/llvm/unittests/tools/llvm-exegesis/X86/ |
| H A D | BenchmarkResultTest.cpp | 124 PerInstructionStats Stats; in TEST() local 125 Stats.push(BenchmarkMeasure{"a", 0.5, 0.0}); in TEST() 126 Stats.push(BenchmarkMeasure{"a", 1.5, 0.0}); in TEST() 127 Stats.push(BenchmarkMeasure{"a", -1.0, 0.0}); in TEST() 128 Stats.push(BenchmarkMeasure{"a", 0.0, 0.0}); in TEST() 129 EXPECT_EQ(Stats.min(), -1.0); in TEST() 130 EXPECT_EQ(Stats.max(), 1.5); in TEST() 131 EXPECT_EQ(Stats.avg(), 0.25); // (0.5+1.5-1.0+0.0) / 4 in TEST()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | local_cache.h | 54 Stats.init(); in init() 56 S->link(&Stats); in init() 63 S->unlink(&Stats); in destroy() 79 Stats.add(StatAllocated, ClassSize); in allocate() 80 Stats.sub(StatFree, ClassSize); in allocate() 96 Stats.sub(StatAllocated, ClassSize); in deallocate() 97 Stats.add(StatFree, ClassSize); in deallocate() 126 LocalStats &getStats() { return Stats; } in getStats() 139 LocalStats Stats; member
|
| H A D | primary64.h | 111 Region->Stats.PoppedBlocks += B->getCount(); in popBatch() 120 Region->Stats.PushedBlocks += B->getCount(); in pushBatch() 166 PoppedBlocks += Region->Stats.PoppedBlocks; in getStats() 167 PushedBlocks += Region->Stats.PushedBlocks; in getStats() 297 RegionStats Stats = {}; member 416 const uptr InUse = Region->Stats.PoppedBlocks - Region->Stats.PushedBlocks; in getStats() 423 Region->Stats.PoppedBlocks, Region->Stats.PushedBlocks, InUse, in getStats() 434 DCHECK_GE(Region->Stats.PoppedBlocks, Region->Stats.PushedBlocks); 437 (Region->Stats.PoppedBlocks - Region->Stats.PushedBlocks) * BlockSize; 440 const uptr BytesPushed = (Region->Stats.PushedBlocks - [all …]
|
| H A D | primary32.h | 127 Sci->Stats.PoppedBlocks += B->getCount(); in popBatch() 137 Sci->Stats.PushedBlocks += B->getCount(); in pushBatch() 193 PoppedBlocks += Sci->Stats.PoppedBlocks; in getStats() 194 PushedBlocks += Sci->Stats.PushedBlocks; in getStats() 262 SizeClassStats Stats; in alignas() local 416 const uptr InUse = Sci->Stats.PoppedBlocks - Sci->Stats.PushedBlocks; in getStats() 421 Sci->Stats.PoppedBlocks, Sci->Stats.PushedBlocks, InUse, in getStats() 430 DCHECK_GE(Sci->Stats.PoppedBlocks, Sci->Stats.PushedBlocks); 433 (Sci->Stats.PoppedBlocks - Sci->Stats.PushedBlocks) * BlockSize; 437 (Sci->Stats.PushedBlocks - Sci->ReleaseInfo.PushedBlocksAtLastRelease) * [all …]
|
| H A D | wrappers_c.inc | 41 scudo::StatCounters Stats; 42 SCUDO_ALLOCATOR.getStats(Stats); 44 Info.hblkhd = static_cast<__scudo_mallinfo_data_t>(Stats[scudo::StatMapped]); 48 Info.fsmblks = static_cast<__scudo_mallinfo_data_t>(Stats[scudo::StatFree]); 51 static_cast<__scudo_mallinfo_data_t>(Stats[scudo::StatAllocated]); 59 scudo::StatCounters Stats; 60 SCUDO_ALLOCATOR.getStats(Stats); 62 Info.hblkhd = Stats[scudo::StatMapped]; 66 Info.fsmblks = Stats[scudo::StatFree]; 68 Info.uordblks = Stats[scudo::StatAllocated];
|
| H A D | combined.h | 169 Stats.init(); in init() 317 Stats.lock(); 320 Stats.unlock(); 532 Stats.lock(); 535 Stats.unlock(); 593 Stats.lock(); 596 Stats.unlock(); 683 Stats.disable(); in disable() 694 Stats.enable(); in enable() 839 Stats.get(S); in getStats() [all …]
|
| H A D | secondary.h | 421 Stats.init(); 423 S->link(&Stats); 482 LocalStats Stats; variable 532 Stats.add(StatAllocated, BlockSize); in allocate() 533 Stats.add(StatMapped, H->MapSize); in allocate() 596 Stats.add(StatAllocated, CommitSize); in allocate() 597 Stats.add(StatMapped, H->MapSize); in allocate() 611 Stats.sub(StatAllocated, CommitSize); in deallocate() 612 Stats.sub(StatMapped, H->MapSize); in deallocate()
|
| /llvm-project-15.0.7/llvm/tools/llvm-dwarfdump/ |
| H A D | Statistics.cpp | 915 PerFunctionStats &Stats = Entry.getValue(); in collectStatsForObjectFile() local 917 (Stats.NumFnInlined + Stats.NumFnOutOfLine); in collectStatsForObjectFile() 919 if (!Stats.IsFunction) in collectStatsForObjectFile() 921 Stats.NumLocalVars + Stats.ConstantMembers + Stats.NumArtificial; in collectStatsForObjectFile() 929 NumFunctions += Stats.IsFunction; in collectStatsForObjectFile() 931 NumInlinedFunctions += Stats.IsFunction * Stats.NumFnInlined; in collectStatsForObjectFile() 932 NumAbstractOrigins += Stats.IsFunction * Stats.NumAbstractOrigins; in collectStatsForObjectFile() 933 ParamTotal += Stats.NumParams; in collectStatsForObjectFile() 934 ParamWithType += Stats.NumParamTypes; in collectStatsForObjectFile() 935 ParamWithLoc += Stats.NumParamLocations; in collectStatsForObjectFile() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Preamble.cpp | 71 : File(File), ParsedCallback(ParsedCallback), Stats(Stats), in CppFilePreambleCallbacks() 97 if (Stats) { in AfterExecute() 99 Stats->BuildSize = AST.getASTAllocatedMemory(); in AfterExecute() 106 Stats->BuildSize += in AfterExecute() 110 Stats->BuildSize += PP.getTotalMemory(); in AfterExecute() 112 Stats->BuildSize += PRec->getTotalMemory(); in AfterExecute() 197 PreambleBuildStats *Stats; member in clang::clangd::__anoncf7fbb130111::CppFilePreambleCallbacks 469 PreambleBuildStats *Stats) { in buildPreamble() argument 523 FileName, PreambleCallback, Stats, in buildPreamble() 548 if (Stats != nullptr) { in buildPreamble() [all …]
|
| /llvm-project-15.0.7/bolt/include/bolt/Passes/ |
| H A D | CMOVConversion.h | 39 struct Stats { struct 52 Stats operator+(const Stats &O) { argument 70 Stats Global; argument
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeAnalyzer.cpp | 658 const PerBlockIDStats &Stats = Stat.second; in printStats() local 661 printSize(O.OS, Stats.NumBits); in printStats() 663 double pct = (Stats.NumBits * 100.0) / BufferSizeBits; in printStats() 665 if (Stats.NumInstances > 1) { in printStats() 667 printSize(O.OS, Stats.NumBits / (double)Stats.NumInstances); in printStats() 670 << Stats.NumSubBlocks / (double)Stats.NumInstances << "\n"; in printStats() 672 << Stats.NumAbbrevs / (double)Stats.NumInstances << "\n"; in printStats() 674 << Stats.NumRecords / (double)Stats.NumInstances << "\n"; in printStats() 680 if (Stats.NumRecords) { in printStats() 681 double pct = (Stats.NumAbbreviatedRecords * 100.0) / Stats.NumRecords; in printStats() [all …]
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | DynoStats.h | 65 uint64_t Stats[LAST_DYNO_STAT + 1]; 76 Stats[Stat] = 0; in DynoStats() 81 return Stats[I]; 89 #define Fn Stats[I] 133 inline raw_ostream &operator<<(raw_ostream &OS, const DynoStats &Stats) { 134 Stats.print(OS, nullptr);
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | Timer.cpp | 117 struct Stats { struct 125 static bool CategoryMapIteratorSortCriterion(const Stats &lhs, in CategoryMapIteratorSortCriterion() 126 const Stats &rhs) { in CategoryMapIteratorSortCriterion() 139 std::vector<Stats> sorted; in DumpCategoryTimes() 145 Stats stats{i->m_name, nanos, nanos_total, count}; in DumpCategoryTimes()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/ |
| H A D | Background.h | 85 struct Stats { struct 92 BackgroundQueue(std::function<void(Stats)> OnProgress = nullptr) argument 121 Stats Stat; 126 std::function<void(Stats)> OnProgress; 142 std::function<void(BackgroundQueue::Stats)> OnProgress = nullptr;
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/tool/ |
| H A D | ClangTidyMain.cpp | 268 static void printStats(const ClangTidyStats &Stats) { in printStats() argument 269 if (Stats.errorsIgnored()) { in printStats() 270 llvm::errs() << "Suppressed " << Stats.errorsIgnored() << " warnings ("; in printStats() 272 if (Stats.ErrorsIgnoredNonUserCode) { in printStats() 276 if (Stats.ErrorsIgnoredLineFilter) { in printStats() 277 llvm::errs() << Separator << Stats.ErrorsIgnoredLineFilter in printStats() 281 if (Stats.ErrorsIgnoredNOLINT) { in printStats() 282 llvm::errs() << Separator << Stats.ErrorsIgnoredNOLINT << " NOLINT"; in printStats() 285 if (Stats.ErrorsIgnoredCheckFilter) in printStats() 286 llvm::errs() << Separator << Stats.ErrorsIgnoredCheckFilter in printStats() [all …]
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/ |
| H A D | PDBSymbol.cpp | 130 TagStats Stats; in dumpChildStats() local 131 getChildStats(Stats); in dumpChildStats() 133 for (auto &Stat : Stats) { in dumpChildStats() 186 PDBSymbol::getChildStats(TagStats &Stats) const { in getChildStats() 190 Stats.clear(); in getChildStats() 192 ++Stats[Child->getSymTag()]; in getChildStats()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | ClangdTests.cpp | 702 Stats[FileIndex].HitsWithErrors++; in TEST() 704 Stats[FileIndex].HitsWithoutErrors++; in TEST() 710 return std::move(Stats); in TEST() 715 std::vector<FileStat> Stats; in TEST() member in clang::clangd::__anonadba4dc90111::TEST::TestDiagConsumer 748 auto &Stats = ReqStats[FileIndex]; in TEST() local 751 ++Stats.RequestsWithErrors; in TEST() 753 ++Stats.RequestsWithoutErrors; in TEST() 754 Stats.LastContentsHadErrors = HadErrors; in TEST() 755 Stats.FileIsRemoved = false; in TEST() 759 auto &Stats = ReqStats[FileIndex]; in TEST() local [all …]
|
| /llvm-project-15.0.7/polly/lib/Analysis/ |
| H A D | ScopDetection.cpp | 1373 NumLoops += Stats.NumLoops; in countBeneficialSubLoops() 1400 LoopStats Stats = in countBeneficialLoops() local 1402 LoopNum += Stats.NumLoops; in countBeneficialLoops() 1889 if (Stats.MaxDepth == 0) in updateLoopCountStatistic() 1891 else if (Stats.MaxDepth == 1) in updateLoopCountStatistic() 1893 else if (Stats.MaxDepth == 2) in updateLoopCountStatistic() 1895 else if (Stats.MaxDepth == 3) in updateLoopCountStatistic() 1897 else if (Stats.MaxDepth == 4) in updateLoopCountStatistic() 1899 else if (Stats.MaxDepth == 5) in updateLoopCountStatistic() 1907 if (Stats.MaxDepth == 0) in updateLoopCountStatistic() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | RegAllocGreedy.cpp | 2357 RAGreedyStats Stats; in computeStats() local 2382 ++Stats.Reloads; in computeStats() 2386 ++Stats.Spills; in computeStats() 2425 Stats.ReloadsCost = RelFreq * Stats.Reloads; in computeStats() 2426 Stats.FoldedReloadsCost = RelFreq * Stats.FoldedReloads; in computeStats() 2427 Stats.SpillsCost = RelFreq * Stats.Spills; in computeStats() 2428 Stats.FoldedSpillsCost = RelFreq * Stats.FoldedSpills; in computeStats() 2429 Stats.CopiesCost = RelFreq * Stats.Copies; in computeStats() 2430 return Stats; in computeStats() 2434 RAGreedyStats Stats; in reportStats() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Debugify.cpp | 717 DebugifyStatistics *Stats = nullptr; in checkDebugifyMetadata() local 719 Stats = &StatsMap->operator[](NameOfWrappedPass); in checkDebugifyMetadata() 770 if (Stats) { in checkDebugifyMetadata() 771 Stats->NumDbgLocsExpected += OriginalNumLines; in checkDebugifyMetadata() 772 Stats->NumDbgLocsMissing += MissingLines.count(); in checkDebugifyMetadata() 773 Stats->NumDbgValuesExpected += OriginalNumVars; in checkDebugifyMetadata() 774 Stats->NumDbgValuesMissing += MissingVars.count(); in checkDebugifyMetadata() 936 DebugifyStatistics Stats = Entry.second; in exportDebugifyStats() local 938 OS << Pass << ',' << Stats.NumDbgValuesMissing << ',' in exportDebugifyStats() 939 << Stats.NumDbgLocsMissing << ',' << Stats.getMissingValueRatio() << ',' in exportDebugifyStats() [all …]
|