Home
last modified time | relevance | path

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

12345678910>>...29

/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DListenerCallQueueTest.java56 Multiset<Object> counters = ConcurrentHashMultiset.create(); in testEnqueueAndDispatch() local
57 queue.enqueue(incrementingEvent(counters, listener, 1)); in testEnqueueAndDispatch()
58 queue.enqueue(incrementingEvent(counters, listener, 2)); in testEnqueueAndDispatch()
59 queue.enqueue(incrementingEvent(counters, listener, 3)); in testEnqueueAndDispatch()
60 queue.enqueue(incrementingEvent(counters, listener, 4)); in testEnqueueAndDispatch()
61 assertEquals(0, counters.size()); in testEnqueueAndDispatch()
63 assertEquals(multiset(listener, 4), counters); in testEnqueueAndDispatch() local
71 Multiset<Object> counters = ConcurrentHashMultiset.create(); in testEnqueueAndDispatch_multipleListeners() local
72 queue.enqueue(incrementingEvent(counters, listener1, 1)); in testEnqueueAndDispatch_multipleListeners()
73 queue.enqueue(incrementingEvent(counters, listener1, 2)); in testEnqueueAndDispatch_multipleListeners()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DListenerCallQueueTest.java56 Multiset<Object> counters = ConcurrentHashMultiset.create(); in testEnqueueAndDispatch() local
57 queue.enqueue(incrementingEvent(counters, listener, 1)); in testEnqueueAndDispatch()
58 queue.enqueue(incrementingEvent(counters, listener, 2)); in testEnqueueAndDispatch()
59 queue.enqueue(incrementingEvent(counters, listener, 3)); in testEnqueueAndDispatch()
60 queue.enqueue(incrementingEvent(counters, listener, 4)); in testEnqueueAndDispatch()
61 assertEquals(0, counters.size()); in testEnqueueAndDispatch()
63 assertEquals(multiset(listener, 4), counters); in testEnqueueAndDispatch() local
71 Multiset<Object> counters = ConcurrentHashMultiset.create(); in testEnqueueAndDispatch_multipleListeners() local
72 queue.enqueue(incrementingEvent(counters, listener1, 1)); in testEnqueueAndDispatch_multipleListeners()
73 queue.enqueue(incrementingEvent(counters, listener1, 2)); in testEnqueueAndDispatch_multipleListeners()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDecoderCountersUtil.java35 public static int getTotalBufferCount(DecoderCounters counters) { in getTotalBufferCount() argument
36 counters.ensureUpdated(); in getTotalBufferCount()
37 return counters.skippedOutputBufferCount + counters.droppedBufferCount in getTotalBufferCount()
38 + counters.renderedOutputBufferCount; in getTotalBufferCount()
41 public static void assertSkippedOutputBufferCount(String name, DecoderCounters counters, in assertSkippedOutputBufferCount() argument
43 counters.ensureUpdated(); in assertSkippedOutputBufferCount()
44 int actual = counters.skippedOutputBufferCount; in assertSkippedOutputBufferCount()
51 public static void assertTotalBufferCount(String name, DecoderCounters counters, int minCount, in assertTotalBufferCount() argument
53 int actual = getTotalBufferCount(counters); in assertTotalBufferCount()
68 public static void assertDroppedBufferLimit(String name, DecoderCounters counters, int limit) { in assertDroppedBufferLimit() argument
[all …]
/external/angle/src/tests/gl_tests/
DVulkanPerformanceCounterTest.cpp89 void setExpectedCountersForInvalidateTest(const rx::vk::PerfCounters &counters, in setExpectedCountersForInvalidateTest() argument
99 expected->renderPasses = counters.renderPasses + incrementalRenderPasses; in setExpectedCountersForInvalidateTest()
100 expected->depthClears = counters.depthClears + incrementalDepthClears; in setExpectedCountersForInvalidateTest()
101 expected->depthLoads = counters.depthLoads + incrementalDepthLoads; in setExpectedCountersForInvalidateTest()
102 expected->depthStores = counters.depthStores + incrementalDepthStores; in setExpectedCountersForInvalidateTest()
103 expected->stencilClears = counters.stencilClears + incrementalStencilClears; in setExpectedCountersForInvalidateTest()
104 expected->stencilLoads = counters.stencilLoads + incrementalStencilLoads; in setExpectedCountersForInvalidateTest()
105 expected->stencilStores = counters.stencilStores + incrementalStencilStores; in setExpectedCountersForInvalidateTest()
108 void compareDepthStencilCountersForInvalidateTest(const rx::vk::PerfCounters &counters, in compareDepthStencilCountersForInvalidateTest() argument
111 EXPECT_EQ(expected.depthClears, counters.depthClears); in compareDepthStencilCountersForInvalidateTest()
[all …]
/external/libxml2/xstc/
Dxstc.py471 self.counters = self.createCounters()
478 counters = {self.CNT_TOTAL:0, self.CNT_RAN:0, self.CNT_SUCCEEDED:0,
483 return counters
495 def updateCounters(self, test, counters): argument
497 counters[self.CNT_MEMLEAK] += 1
499 counters[self.CNT_SUCCEEDED] +=1
501 counters[self.CNT_FAILED] += 1
503 counters[self.CNT_BAD] += 1
505 counters[self.CNT_UNIMPLEMENTED] += 1
507 counters[self.CNT_INTERNAL] += 1
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Dreceive_statistics_unittest.cc98 StreamDataCounters counters = statistician->GetReceiveStreamDataCounters(); in TEST_F() local
99 EXPECT_EQ(176u, counters.transmitted.payload_bytes); in TEST_F()
100 EXPECT_EQ(24u, counters.transmitted.header_bytes); in TEST_F()
101 EXPECT_EQ(0u, counters.transmitted.padding_bytes); in TEST_F()
102 EXPECT_EQ(2u, counters.transmitted.packets); in TEST_F()
107 counters = statistician->GetReceiveStreamDataCounters(); in TEST_F()
108 EXPECT_EQ(576u, counters.transmitted.payload_bytes); in TEST_F()
109 EXPECT_EQ(24u, counters.transmitted.header_bytes); in TEST_F()
110 EXPECT_EQ(0u, counters.transmitted.padding_bytes); in TEST_F()
111 EXPECT_EQ(2u, counters.transmitted.packets); in TEST_F()
[all …]
/external/angle/src/tests/compiler_tests/
DAtomicCounter_test.cpp52 std::vector<sh::ShaderVariable> counters = getUniforms(); in TEST_F() local
54 EXPECT_EQ(std::string("a"), counters[0].name); in TEST_F()
55 EXPECT_EQ(2, counters[0].binding); in TEST_F()
56 EXPECT_EQ(4, counters[0].offset); in TEST_F()
58 EXPECT_EQ(std::string("b"), counters[1].name); in TEST_F()
59 EXPECT_EQ(2, counters[1].binding); in TEST_F()
60 EXPECT_EQ(8, counters[1].offset); in TEST_F()
62 EXPECT_EQ(std::string("c"), counters[2].name); in TEST_F()
63 EXPECT_EQ(2, counters[2].binding); in TEST_F()
64 EXPECT_EQ(12, counters[2].offset); in TEST_F()
[all …]
/external/rust/crates/rayon-core/src/sleep/
Dmod.rs13 mod counters; module
14 use self::counters::{AtomicCounters, JobsEventCounter};
30 counters: AtomicCounters, field
68 counters: AtomicCounters::new(), in new()
79 self.counters.add_inactive_thread(); in start_looking()
97 let threads_to_wake = self.counters.sub_inactive_thread(); in work_found()
126 let counters = self in announce_sleepy() localVariable
127 .counters in announce_sleepy()
129 let jobs_counter = counters.jobs_counter(); in announce_sleepy()
172 let counters = self.counters.load(Ordering::SeqCst); in sleep() localVariable
[all …]
/external/mesa3d/prebuilt-intermediates/perf/
Dgen_perf_metrics.c43264 query->counters = rzalloc_array(query, struct gen_perf_query_counter, 67); in hsw_register_render_basic_counter_query()
43274 struct gen_perf_query_counter *counter = query->counters; in hsw_register_render_basic_counter_query()
43356 counter = &query->counters[query->n_counters++]; in hsw_register_render_basic_counter_query()
43368 counter = &query->counters[query->n_counters++]; in hsw_register_render_basic_counter_query()
43380 counter = &query->counters[query->n_counters++]; in hsw_register_render_basic_counter_query()
43392 counter = &query->counters[query->n_counters++]; in hsw_register_render_basic_counter_query()
43405 counter = &query->counters[query->n_counters++]; in hsw_register_render_basic_counter_query()
43418 counter = &query->counters[query->n_counters++]; in hsw_register_render_basic_counter_query()
43430 counter = &query->counters[query->n_counters++]; in hsw_register_render_basic_counter_query()
43442 counter = &query->counters[query->n_counters++]; in hsw_register_render_basic_counter_query()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/cache/
DCacheUtilTest.java202 CachingCounters counters = new CachingCounters(); in cache() local
204 cache, new DataSpec(Uri.parse("test_data")), dataSource, counters, /* isCanceled= */ null); in cache()
206 counters.assertValues(0, 100, 100); in cache()
217 CachingCounters counters = new CachingCounters(); in cacheSetOffsetAndLength() local
218 CacheUtil.cache(cache, dataSpec, dataSource, counters, /* isCanceled= */ null); in cacheSetOffsetAndLength()
220 counters.assertValues(0, 20, 20); in cacheSetOffsetAndLength()
221 counters.reset(); in cacheSetOffsetAndLength()
223 CacheUtil.cache(cache, new DataSpec(testUri), dataSource, counters, /* isCanceled= */ null); in cacheSetOffsetAndLength()
225 counters.assertValues(20, 80, 100); in cacheSetOffsetAndLength()
237 CachingCounters counters = new CachingCounters(); in cacheUnknownLength() local
[all …]
/external/apache-xml/src/main/java/org/apache/xalan/transformer/
DCountersTable.java61 Vector counters = (Vector) this.get(numberElem); in getCounters() local
63 return (null == counters) ? putElemNumber(numberElem) : counters; in getCounters()
78 Vector counters = new Vector(); in putElemNumber() local
80 this.put(numberElem, counters); in putElemNumber()
82 return counters; in putElemNumber()
131 Vector counters = getCounters(numberElem); in countNode() local
132 int nCounters = counters.size(); in countNode()
142 Counter counter = (Counter) counters.elementAt(i); in countNode()
171 Counter counter = (Counter) counters.elementAt(i); in countNode()
203 counters.addElement(counter); in countNode()
/external/libcxx/utils/google-benchmark/test/
Duser_counters_test.cc28 state.counters["foo"] = 1; in BM_Counters_Simple()
29 state.counters["bar"] = 2 * (double)state.iterations(); in BM_Counters_Simple()
65 state.counters["foo"] = 1; in BM_Counters_WithBytesAndItemsPSec()
66 state.counters["bar"] = ++num_calls1; in BM_Counters_WithBytesAndItemsPSec()
110 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate()
111 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate()
145 state.counters["foo"] = 1; in BM_Counters_Threads()
146 state.counters["bar"] = 2; in BM_Counters_Threads()
181 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads()
182 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads()
[all …]
/external/llvm-project/libcxx/utils/google-benchmark/test/
Duser_counters_test.cc28 state.counters["foo"] = 1; in BM_Counters_Simple()
29 state.counters["bar"] = 2 * (double)state.iterations(); in BM_Counters_Simple()
65 state.counters["foo"] = 1; in BM_Counters_WithBytesAndItemsPSec()
66 state.counters["bar"] = ++num_calls1; in BM_Counters_WithBytesAndItemsPSec()
110 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate()
111 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate()
145 state.counters["foo"] = 1; in BM_Counters_Threads()
146 state.counters["bar"] = 2; in BM_Counters_Threads()
181 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads()
182 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads()
[all …]
/external/google-benchmark/test/
Duser_counters_test.cc28 state.counters["foo"] = 1; in BM_Counters_Simple()
29 state.counters["bar"] = 2 * (double)state.iterations(); in BM_Counters_Simple()
70 state.counters["foo"] = 1; in BM_Counters_WithBytesAndItemsPSec()
71 state.counters["bar"] = ++num_calls1; in BM_Counters_WithBytesAndItemsPSec()
120 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate()
121 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate()
161 state.counters["foo"] = bm::Counter{0.0001, bm::Counter::kInvert}; in BM_Invert()
162 state.counters["bar"] = bm::Counter{10000, bm::Counter::kInvert}; in BM_Invert()
200 state.counters["foo"] = in BM_Counters_InvertedRate()
202 state.counters["bar"] = in BM_Counters_InvertedRate()
[all …]
/external/libcxx/utils/google-benchmark/src/
Dcsv_reporter.cc51 for (const auto& cnt : run.counters) { in ReportRuns()
73 for (const auto& cnt : run.counters) { in ReportRuns()
124 if (run.counters.find("bytes_per_second") != run.counters.end()) { in PrintRunData()
125 Out << run.counters.at("bytes_per_second"); in PrintRunData()
128 if (run.counters.find("items_per_second") != run.counters.end()) { in PrintRunData()
129 Out << run.counters.at("items_per_second"); in PrintRunData()
143 auto it = run.counters.find(ucn); in PrintRunData()
144 if (it == run.counters.end()) { in PrintRunData()
/external/llvm-project/libcxx/utils/google-benchmark/src/
Dcsv_reporter.cc51 for (const auto& cnt : run.counters) { in ReportRuns()
73 for (const auto& cnt : run.counters) { in ReportRuns()
124 if (run.counters.find("bytes_per_second") != run.counters.end()) { in PrintRunData()
125 Out << run.counters.at("bytes_per_second"); in PrintRunData()
128 if (run.counters.find("items_per_second") != run.counters.end()) { in PrintRunData()
129 Out << run.counters.at("items_per_second"); in PrintRunData()
143 auto it = run.counters.find(ucn); in PrintRunData()
144 if (it == run.counters.end()) { in PrintRunData()
/external/google-benchmark/src/
Dcsv_reporter.cc63 for (const auto& cnt : run.counters) { in ReportRuns()
85 for (const auto& cnt : run.counters) { in ReportRuns()
129 if (run.counters.find("bytes_per_second") != run.counters.end()) { in PrintRunData()
130 Out << run.counters.at("bytes_per_second"); in PrintRunData()
133 if (run.counters.find("items_per_second") != run.counters.end()) { in PrintRunData()
134 Out << run.counters.at("items_per_second"); in PrintRunData()
144 auto it = run.counters.find(ucn); in PrintRunData()
145 if (it == run.counters.end()) { in PrintRunData()
/external/llvm-project/llvm/utils/benchmark/test/
Duser_counters_test.cc24 state.counters["foo"] = 1; in BM_Counters_Simple()
25 state.counters["bar"] = 2 * (double)state.iterations(); in BM_Counters_Simple()
56 state.counters["foo"] = 1; in BM_Counters_WithBytesAndItemsPSec()
57 state.counters["bar"] = ++num_calls1; in BM_Counters_WithBytesAndItemsPSec()
98 state.counters["foo"] = bm::Counter{1, bm::Counter::kIsRate}; in BM_Counters_Rate()
99 state.counters["bar"] = bm::Counter{2, bm::Counter::kIsRate}; in BM_Counters_Rate()
129 state.counters["foo"] = 1; in BM_Counters_Threads()
130 state.counters["bar"] = 2; in BM_Counters_Threads()
159 state.counters["foo"] = bm::Counter{1, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads()
160 state.counters["bar"] = bm::Counter{2, bm::Counter::kAvgThreads}; in BM_Counters_AvgThreads()
[all …]
/external/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/X86/
DX86GenExegesis.inc108 nullptr, // No issue counters.
115 X86PfmIssueCounters + 0, 4 // Issue counters.
121 X86PfmIssueCounters + 4, 3 // Issue counters.
127 X86PfmIssueCounters + 7, 8 // Issue counters.
133 X86PfmIssueCounters + 15, 2 // Issue counters.
139 X86PfmIssueCounters + 17, 2 // Issue counters.
145 nullptr, // No issue counters.
152 nullptr, // No issue counters.
159 nullptr, // No issue counters.
166 X86PfmIssueCounters + 19, 8 // Issue counters.
[all …]
/external/pthreadpool/test/
Dpthreadpool.cc231 std::vector<std::atomic_int> counters(kParallelize1DRange); in TEST() local
239 static_cast<void*>(counters.data()), in TEST()
244 EXPECT_EQ(counters[i].load(std::memory_order_relaxed), 1) in TEST()
245 …<< "Element " << i << " was processed " << counters[i].load(std::memory_order_relaxed) << " times … in TEST()
250 std::vector<std::atomic_int> counters(kParallelize1DRange); in TEST() local
262 static_cast<void*>(counters.data()), in TEST()
267 EXPECT_EQ(counters[i].load(std::memory_order_relaxed), 1) in TEST()
268 …<< "Element " << i << " was processed " << counters[i].load(std::memory_order_relaxed) << " times … in TEST()
273 std::vector<std::atomic_int> counters(kParallelize1DRange); in TEST() local
282 static_cast<void*>(counters.data()), in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Target/
DTargetPfmCounters.td9 // This file defines the target-independent interfaces for performance counters.
11 // Definition of a hardware counters from libpfm identifiers.
15 // measured value is the sum of events on these counters.
19 // Issue counters can be tied to a ProcResource
41 // A binding of a set of counters to a CPU.
42 class PfmCountersBinding<string cpu_name, ProcPfmCounters counters> {
44 ProcPfmCounters Counters = counters;
48 class PfmCountersDefaultBinding<ProcPfmCounters counters>
49 : PfmCountersBinding<"", counters> {}
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DDebugTextViewHelper.java186 private static String getDecoderCountersBufferCountString(DecoderCounters counters) { in getDecoderCountersBufferCountString() argument
187 if (counters == null) { in getDecoderCountersBufferCountString()
190 counters.ensureUpdated(); in getDecoderCountersBufferCountString()
191 return " sib:" + counters.skippedInputBufferCount in getDecoderCountersBufferCountString()
192 + " sb:" + counters.skippedOutputBufferCount in getDecoderCountersBufferCountString()
193 + " rb:" + counters.renderedOutputBufferCount in getDecoderCountersBufferCountString()
194 + " db:" + counters.droppedBufferCount in getDecoderCountersBufferCountString()
195 + " mcdb:" + counters.maxConsecutiveDroppedBufferCount in getDecoderCountersBufferCountString()
196 + " dk:" + counters.droppedToKeyframeCount; in getDecoderCountersBufferCountString()
/external/llvm-project/llvm/include/llvm/Target/
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> {}
/external/webrtc/video/
Dsend_statistics_proxy_unittest.cc124 StreamDataCounters counters; in UpdateDataCounters() local
125 proxy->DataCountersUpdated(counters, ssrc); in UpdateDataCounters()
253 StreamDataCounters& counters = expected_.substreams[ssrc].rtp_stats; in TEST_F() local
257 counters.transmitted.payload_bytes = offset; in TEST_F()
258 counters.transmitted.header_bytes = offset + 1; in TEST_F()
259 counters.fec.packets = offset_uint32 + 2; in TEST_F()
260 counters.transmitted.padding_bytes = offset + 3; in TEST_F()
261 counters.retransmitted.packets = offset_uint32 + 4; in TEST_F()
262 counters.transmitted.packets = offset_uint32 + 5; in TEST_F()
263 callback->DataCountersUpdated(counters, ssrc); in TEST_F()
[all …]
/external/mesa3d/src/freedreno/computerator/
Dmain.c153 const struct fd_perfcntr_counter *counter = &group->counters[idx]; in setup_counter()
176 struct perfcntr *counters = NULL; in parse_perfcntrs() local
189 counters = realloc(counters, ++cnt * sizeof(counters[0])); in parse_perfcntrs()
190 setup_counter(name, &counters[cnt-1]); in parse_perfcntrs()
194 counters = realloc(counters, ++cnt * sizeof(counters[0])); in parse_perfcntrs()
195 setup_counter(name, &counters[cnt-1]); in parse_perfcntrs()
199 return counters; in parse_perfcntrs()

12345678910>>...29