Home
last modified time | relevance | path

Searched refs:counters (Results 1 – 25 of 120) sorted by relevance

12345

/llvm-project-15.0.7/third-party/benchmark/test/
H A Duser_counters_test.cc28 state.counters["foo"] = 1; in BM_Counters_Simple()
72 state.counters["foo"] = 1; in BM_Counters_WithBytesAndItemsPSec()
73 state.counters["bar"] = ++num_calls1; in BM_Counters_WithBytesAndItemsPSec()
124 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate()
208 state.counters["foo"] = in BM_Counters_InvertedRate()
210 state.counters["bar"] = in BM_Counters_InvertedRate()
251 state.counters["foo"] = 1; in BM_Counters_Threads()
252 state.counters["bar"] = 2; in BM_Counters_Threads()
423 state.counters["foo"] = in BM_Counters_kIsIterationInvariantRate()
425 state.counters["bar"] = in BM_Counters_kIsIterationInvariantRate()
[all …]
H A Dperf_counters_gtest.cc69 auto counters = PerfCounters::Create({kGenericPerfEvent1}); in TEST() local
70 EXPECT_TRUE(counters.IsValid()); in TEST()
72 EXPECT_TRUE(counters.Snapshot(&values1)); in TEST()
75 EXPECT_TRUE(counters.Snapshot(&values2)); in TEST()
85 auto counters = in TEST() local
87 EXPECT_TRUE(counters.IsValid()); in TEST()
89 EXPECT_TRUE(counters.Snapshot(&values1)); in TEST()
93 EXPECT_TRUE(counters.Snapshot(&values2)); in TEST()
116 auto counters = in measure() local
119 counters.Snapshot(values1); in measure()
[all …]
H A Duser_counters_tabular_test.cc68 state.counters.insert({ in BM_Counters_Tabular()
378 state.counters.insert({ in BM_CounterRates_Tabular()
434 state.counters.insert({ in BM_CounterSet0_Tabular()
474 state.counters.insert({ in BM_CounterSet1_Tabular()
518 state.counters.insert({ in BM_CounterSet2_Tabular()
H A Dinternal_threading_test.cc42 state.counters["invtime"] = in BM_MainThread()
85 state.counters["invtime"] = in BM_WorkerThread()
129 state.counters["invtime"] = in BM_MainThreadAndWorkerThread()
/llvm-project-15.0.7/third-party/benchmark/src/
H A Dcsv_reporter.cc66 for (const auto& cnt : run.counters) { in ReportRuns()
88 for (const auto& cnt : run.counters) { in ReportRuns()
133 if (run.counters.find("bytes_per_second") != run.counters.end()) { in PrintRunData()
134 Out << run.counters.at("bytes_per_second"); in PrintRunData()
137 if (run.counters.find("items_per_second") != run.counters.end()) { in PrintRunData()
138 Out << run.counters.at("items_per_second"); in PrintRunData()
148 auto it = run.counters.find(ucn); in PrintRunData()
149 if (it == run.counters.end()) { in PrintRunData()
H A Dconsole_reporter.cc59 if (!run.counters.empty()) { in PrintHeader()
61 for (auto const& c : run.counters) { in PrintHeader()
80 (!internal::SameNames(run.counters, prev_counters_)); in ReportRuns()
83 prev_counters_ = run.counters; in ReportRuns()
161 for (auto& c : result.counters) { in PrintRunData()
H A Dbenchmark_runner.cc99 report.counters = results.counters; in CreateRunReport()
110 internal::Finish(&report.counters, results.iterations, seconds, in CreateRunReport()
137 internal::Increment(&results.counters, st.counters); in RunInThread()
H A Dstatistics.cc118 for (auto const& cnt : r.counters) { in ComputeStats()
138 for (auto const& cnt : run.counters) { in ComputeStats()
199 data.counters[kv.first] = c; in ComputeStats()
/llvm-project-15.0.7/mlir/lib/Support/
H A DDebugCounter.cpp26 llvm::cl::list<std::string> counters{ member
59 assert(!counters.count(actionTag) && in addCounter()
61 counters.try_emplace(actionTag, countToSkip, countToStopAfter); in addCounter()
67 auto counterIt = counters.find(tag); in shouldExecute()
68 if (counterIt == counters.end()) in shouldExecute()
89 llvm::make_pointer_range(counters)); in print()
120 for (StringRef arg : clOptions->counters) { in applyCLOptions()
149 counters[counterName].countToSkip = counterValue; in applyCLOptions()
152 counters[counterName].countToStopAfter = counterValue; in applyCLOptions()
/llvm-project-15.0.7/llvm/include/llvm/Target/
H A DTargetPfmCounters.td9 // This file defines the target-independent interfaces for performance counters.
13 // Definition of a hardware counters from libpfm identifiers.
17 // measured value is the sum of events on these counters.
21 // Issue counters can be tied to a ProcResource
43 // A binding of a set of counters to a CPU.
44 class PfmCountersBinding<string cpu_name, ProcPfmCounters counters> {
46 ProcPfmCounters Counters = counters;
50 class PfmCountersDefaultBinding<ProcPfmCounters counters>
51 : PfmCountersBinding<"", counters> {}
/llvm-project-15.0.7/llvm/test/Transforms/SimplifyCFG/
H A Dpreserve-store-alignment.ll7 @counters = global %struct.Counters zeroinitializer, align 16
35 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
37 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
45 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
56 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
91 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
110 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
153 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
218 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
261 …cast (i64* getelementptr inbounds (%struct.Counters, %struct.Counters* @counters, i64 0, i32 1) to…
[all …]
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Windows/
H A Dsanitizer_purge.cpp11 PROCESS_MEMORY_COUNTERS counters; in GetRSS() local
12 if (!GetProcessMemoryInfo(GetCurrentProcess(), &counters, sizeof(counters))) in GetRSS()
14 return counters.WorkingSetSize; in GetRSS()
/llvm-project-15.0.7/third-party/benchmark/bindings/python/google_benchmark/
H A Dexample.py84 state.counters["foo"] = num_foo
86 state.counters["foo_rate"] = Counter(num_foo, Counter.kIsRate)
88 state.counters["foo_inv_rate"] = Counter(num_foo, Counter.kIsRate | Counter.kInvert)
90 state.counters["foo_avg"] = Counter(num_foo, Counter.kAvgThreads)
92 state.counters["foo_avg_rate"] = Counter(num_foo, Counter.kAvgThreadsRate)
/llvm-project-15.0.7/compiler-rt/test/profile/Posix/
H A Dinstrprof-value-prof-shared.test2 …vm -enable-value-profiling=true -mllvm -vp-static-alloc=true -mllvm -vp-counters-per-site=256 -fPI…
3 …vm -enable-value-profiling=true -mllvm -vp-static-alloc=true -mllvm -vp-counters-per-site=256 -o %…
10 // RUN: %clang_pgogen -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=true -mllvm -vp-counters
11 // RUN: %clang_pgogen -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=true -mllvm -vp-counters
23 …of -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=true -mllvm -vp-counters-per-site=256 -fPI…
24 …of -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=true -mllvm -vp-counters-per-site=256 -rpa…
35 …n -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=false -mllvm -vp-counters-per-site=256 -fPI…
36 …n -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=false -mllvm -vp-counters-per-site=256 -rpa…
45 …n -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=false -mllvm -vp-counters-per-site=256 -fPI…
46 // RUN: %clang_pgogen -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=true -mllvm -vp-counters
/llvm-project-15.0.7/third-party/benchmark/docs/
H A Dperf_counters.md1 <a name="perf-counters" />
6 performance counters. This may be useful in investigation scenarios - narrowing
14 * The benchmark is compiled with support for collecting counters. Currently,
32 The counter values are reported back through the [User Counters](../README.md#custom-counters)
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_stoptheworld_test.cpp88 std::atomic_int counters[kThreadCount] = {}; member
103 callback_argument.counters[this_thread_index]++; in AdvancedIncrementerThread()
121 counters_at_init[j] = callback_argument->counters[j]; in AdvancedCallback()
125 if (callback_argument->counters[j] != counters_at_init[j]) { in AdvancedCallback()
/llvm-project-15.0.7/llvm/test/tools/llvm-profdata/
H A Dcount-mismatch.proftext1 # Make sure we don't try to combine counters with the same function
2 # name and a matching hash if the number of counters differs
16 # counters differs.
H A Dmalformed-ptr-to-counter-array.test38 // Octal '\11' is 9 in decimal: this should push CounterOffset to 1. As there are two counters,
56 …lformed instrumentation profile data: number of counters 2 is greater than the maximum number of c…
H A Dmalformed-num-counters-zero.test38 // Make NumCounters = 0 so that we get "number of counters is zero" error message
45 CHECK: malformed instrumentation profile data: number of counters is zero
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cert/
H A Dflp30-c.rst10 `FLP30-C. Do not use floating-point variables as loop counters
11 …ing.cert.org/confluence/display/c/FLP30-C.+Do+not+use+floating-point+variables+as+loop+counters>`_.
/llvm-project-15.0.7/llvm/test/Instrumentation/SanitizerCoverage/
H A Dinline-8bit-counters.ll1 ; Test -sanitizer-coverage-inline-8bit-counters=1
2 …ov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-inline-8bit-counters=1 -S | FileCheck…
/llvm-project-15.0.7/compiler-rt/test/profile/
H A Dinstrprof-value-prof.test2 …vm -enable-value-profiling=true -mllvm -vp-static-alloc=true -mllvm -vp-counters-per-site=256 -o %…
8 // RUN: %clang_pgogen -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=true -mllvm -vp-counters
16 …n -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=false -mllvm -vp-counters-per-site=256 -o %…
H A Dinstrprof-value-prof-evict.test1 …vm -enable-value-profiling=true -mllvm -vp-static-alloc=true -mllvm -vp-counters-per-site=10 -o %t…
7 …n -O2 -mllvm -disable-vp=false -mllvm -vp-static-alloc=true -mllvm -vp-counters-per-site=10 -o %t…
/llvm-project-15.0.7/libc/benchmarks/
H A DRATIONALE.md57 ### Performance counters and modern processor architecture
69 ### Performance counters semantics inconsistencies and availability
71 Although they have the same name, the exact semantics of performance counters
73 micro-architectures exposing the same performance counters.**
75 Each vendor decides which performance counters to implement and their exact
83 - Reading performance counters is done through Kernel [System
89 profiling) the kernel can decide to multiplex the performance counters
102 We have seen that performance counters are: not widely available, semantically
109 available counters and derive the time from a high number of runs: going from a
/llvm-project-15.0.7/third-party/benchmark/include/benchmark/
H A Dbenchmark.h670 counters["bytes_per_second"] = in SetBytesProcessed()
676 if (counters.find("bytes_per_second") != counters.end()) in bytes_processed()
677 return static_cast<int64_t>(counters.at("bytes_per_second")); in bytes_processed()
700 counters["items_per_second"] = in SetItemsProcessed()
706 if (counters.find("items_per_second") != counters.end()) in items_processed()
707 return static_cast<int64_t>(counters.at("items_per_second")); in items_processed()
784 UserCounters counters;
1591 UserCounters counters; member

12345