Home
last modified time | relevance | path

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

12345678910>>...31

/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDecoderCountersUtil.java33 public static int getTotalBufferCount(DecoderCounters counters) { in getTotalBufferCount() argument
34 counters.ensureUpdated(); in getTotalBufferCount()
35 return counters.skippedInputBufferCount in getTotalBufferCount()
36 + counters.skippedOutputBufferCount in getTotalBufferCount()
37 + counters.droppedBufferCount in getTotalBufferCount()
38 + counters.renderedOutputBufferCount; in getTotalBufferCount()
42 String name, DecoderCounters counters, int expected) { in assertSkippedOutputBufferCount() argument
43 counters.ensureUpdated(); in assertSkippedOutputBufferCount()
44 int actual = counters.skippedOutputBufferCount; in assertSkippedOutputBufferCount()
46 "Codec(%s) skipped an unexpected number of buffers. Counters:\n%s", name, counters) in assertSkippedOutputBufferCount()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DDecoderCountersUtil.java33 public static int getTotalBufferCount(DecoderCounters counters) { in getTotalBufferCount() argument
34 counters.ensureUpdated(); in getTotalBufferCount()
35 return counters.skippedInputBufferCount in getTotalBufferCount()
36 + counters.skippedOutputBufferCount in getTotalBufferCount()
37 + counters.droppedBufferCount in getTotalBufferCount()
38 + counters.renderedOutputBufferCount; in getTotalBufferCount()
42 String name, DecoderCounters counters, int expected) { in assertSkippedOutputBufferCount() argument
43 counters.ensureUpdated(); in assertSkippedOutputBufferCount()
44 int actual = counters.skippedOutputBufferCount; in assertSkippedOutputBufferCount()
46 "Codec(%s) skipped an unexpected number of buffers. Counters:\n%s", name, counters) in assertSkippedOutputBufferCount()
[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/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/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/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/
DCacheWriterTest.java68 CachingCounters counters = new CachingCounters(); in cache() local
75 counters); in cache()
78 counters.assertValues(0, 100, 100); in cache()
89 CachingCounters counters = new CachingCounters(); in cacheSetOffsetAndLength() local
96 counters); in cacheSetOffsetAndLength()
99 counters.assertValues(0, 20, 20); in cacheSetOffsetAndLength()
100 counters.reset(); in cacheSetOffsetAndLength()
107 counters); in cacheSetOffsetAndLength()
110 counters.assertValues(20, 80, 100); in cacheSetOffsetAndLength()
125 CachingCounters counters = new CachingCounters(); in cacheUnknownLength() local
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/datasource/src/test/java/com/google/android/exoplayer2/upstream/cache/
DCacheWriterTest.java68 CachingCounters counters = new CachingCounters(); in cache() local
75 counters); in cache()
78 counters.assertValues(0, 100, 100); in cache()
89 CachingCounters counters = new CachingCounters(); in cacheSetOffsetAndLength() local
96 counters); in cacheSetOffsetAndLength()
99 counters.assertValues(0, 20, 20); in cacheSetOffsetAndLength()
100 counters.reset(); in cacheSetOffsetAndLength()
107 counters); in cacheSetOffsetAndLength()
110 counters.assertValues(20, 80, 100); in cacheSetOffsetAndLength()
125 CachingCounters counters = new CachingCounters(); in cacheUnknownLength() local
[all …]
/external/angle/src/tests/compiler_tests/
DAtomicCounter_test.cpp51 std::vector<sh::ShaderVariable> counters = getUniforms(); in TEST_F() local
53 EXPECT_EQ(std::string("a"), counters[0].name); in TEST_F()
54 EXPECT_EQ(2, counters[0].binding); in TEST_F()
55 EXPECT_EQ(4, counters[0].offset); in TEST_F()
57 EXPECT_EQ(std::string("b"), counters[1].name); in TEST_F()
58 EXPECT_EQ(2, counters[1].binding); in TEST_F()
59 EXPECT_EQ(8, counters[1].offset); in TEST_F()
61 EXPECT_EQ(std::string("c"), counters[2].name); in TEST_F()
62 EXPECT_EQ(2, counters[2].binding); in TEST_F()
63 EXPECT_EQ(12, counters[2].offset); in TEST_F()
[all …]
/external/rust/crates/rayon-core/src/sleep/
Dmod.rs13 mod counters; module
14 pub(crate) use self::counters::THREADS_MAX;
15 use self::counters::{AtomicCounters, JobsEventCounter};
31 counters: AtomicCounters, field
70 counters: AtomicCounters::new(), in new()
81 self.counters.add_inactive_thread(); in start_looking()
99 let threads_to_wake = self.counters.sub_inactive_thread(); in work_found()
128 let counters = self in announce_sleepy() localVariable
129 .counters in announce_sleepy()
131 let jobs_counter = counters.jobs_counter(); in announce_sleepy()
[all …]
/external/webrtc/modules/rtp_rtcp/source/
Dreceive_statistics_unittest.cc133 StreamDataCounters counters = statistician->GetReceiveStreamDataCounters(); in TEST_P() local
134 EXPECT_EQ(176u, counters.transmitted.payload_bytes); in TEST_P()
135 EXPECT_EQ(24u, counters.transmitted.header_bytes); in TEST_P()
136 EXPECT_EQ(0u, counters.transmitted.padding_bytes); in TEST_P()
137 EXPECT_EQ(2u, counters.transmitted.packets); in TEST_P()
142 counters = statistician->GetReceiveStreamDataCounters(); in TEST_P()
143 EXPECT_EQ(576u, counters.transmitted.payload_bytes); in TEST_P()
144 EXPECT_EQ(24u, counters.transmitted.header_bytes); in TEST_P()
145 EXPECT_EQ(0u, counters.transmitted.padding_bytes); in TEST_P()
146 EXPECT_EQ(2u, counters.transmitted.packets); in TEST_P()
[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/cronet/base/process/
Dprocess_metrics_win.cc196 IoCounters counters; in GetCumulativeDiskUsageInBytes() local
197 if (!GetIOCounters(&counters)) in GetCumulativeDiskUsageInBytes()
200 return counters.ReadTransferCount + counters.WriteTransferCount + in GetCumulativeDiskUsageInBytes()
201 counters.OtherTransferCount; in GetCumulativeDiskUsageInBytes()
288 SYSTEM_PERFORMANCE_INFORMATION counters = {}; in GetSystemPerformanceInfo() local
293 if (::NtQuerySystemInformation(::SystemPerformanceInformation, &counters, in GetSystemPerformanceInfo()
300 info->idle_time = static_cast<uint64_t>(counters.IdleTime.QuadPart); in GetSystemPerformanceInfo()
302 static_cast<uint64_t>(counters.ReadTransferCount.QuadPart); in GetSystemPerformanceInfo()
304 static_cast<uint64_t>(counters.WriteTransferCount.QuadPart); in GetSystemPerformanceInfo()
306 static_cast<uint64_t>(counters.OtherTransferCount.QuadPart); in GetSystemPerformanceInfo()
[all …]
/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/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/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/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/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/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/webrtc/call/adaptation/
Dresource_adaptation_processor.cc164 if (adaptation_limits.counters.Total() <= most_limited.counters.Total()) { in RemoveLimitationsImposedByResource()
172 most_limited.counters, most_limited.restrictions); in RemoveLimitationsImposedByResource()
180 << most_limited.counters.ToString(); in RemoveLimitationsImposedByResource()
248 most_limited_restrictions.counters.Total() >= in OnResourceUnderuse()
265 adaptation.counters()); in OnResourceUnderuse()
293 restrictions.counters); in OnResourceOveruse()
304 adaptation.counters()); in OnResourceOveruse()
324 if (restrictions_with_counters.counters.Total() > in FindMostLimitedResources()
325 most_limited_restrictions.counters.Total()) { in FindMostLimitedResources()
329 } else if (most_limited_restrictions.counters == in FindMostLimitedResources()
[all …]
/external/angle/src/common/
Dangleutils.cpp58 uint32_t GetPerfMonitorCounterIndex(const PerfMonitorCounters &counters, const std::string &name) in GetPerfMonitorCounterIndex() argument
60 for (uint32_t counterIndex = 0; counterIndex < static_cast<uint32_t>(counters.size()); in GetPerfMonitorCounterIndex()
63 if (counters[counterIndex].name == name) in GetPerfMonitorCounterIndex()
86 const PerfMonitorCounter &GetPerfMonitorCounter(const PerfMonitorCounters &counters, in GetPerfMonitorCounter() argument
89 return GetPerfMonitorCounter(const_cast<PerfMonitorCounters &>(counters), name); in GetPerfMonitorCounter()
92 PerfMonitorCounter &GetPerfMonitorCounter(PerfMonitorCounters &counters, const std::string &name) in GetPerfMonitorCounter() argument
94 uint32_t counterIndex = GetPerfMonitorCounterIndex(counters, name); in GetPerfMonitorCounter()
95 ASSERT(counterIndex < static_cast<uint32_t>(counters.size())); in GetPerfMonitorCounter()
96 return counters[counterIndex]; in GetPerfMonitorCounter()
/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_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/main/java/com/google/android/exoplayer2/util/
DDebugTextViewHelper.java188 private static String getDecoderCountersBufferCountString(DecoderCounters counters) { in getDecoderCountersBufferCountString() argument
189 if (counters == null) { in getDecoderCountersBufferCountString()
192 counters.ensureUpdated(); in getDecoderCountersBufferCountString()
194 + counters.skippedInputBufferCount in getDecoderCountersBufferCountString()
196 + counters.skippedOutputBufferCount in getDecoderCountersBufferCountString()
198 + counters.renderedOutputBufferCount in getDecoderCountersBufferCountString()
200 + counters.droppedBufferCount in getDecoderCountersBufferCountString()
202 + counters.maxConsecutiveDroppedBufferCount in getDecoderCountersBufferCountString()
204 + counters.droppedToKeyframeCount; in getDecoderCountersBufferCountString()
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/core/src/main/java/com/google/android/exoplayer2/util/
DDebugTextViewHelper.java188 private static String getDecoderCountersBufferCountString(DecoderCounters counters) { in getDecoderCountersBufferCountString() argument
189 if (counters == null) { in getDecoderCountersBufferCountString()
192 counters.ensureUpdated(); in getDecoderCountersBufferCountString()
194 + counters.skippedInputBufferCount in getDecoderCountersBufferCountString()
196 + counters.skippedOutputBufferCount in getDecoderCountersBufferCountString()
198 + counters.renderedOutputBufferCount in getDecoderCountersBufferCountString()
200 + counters.droppedBufferCount in getDecoderCountersBufferCountString()
202 + counters.maxConsecutiveDroppedBufferCount in getDecoderCountersBufferCountString()
204 + counters.droppedToKeyframeCount; in getDecoderCountersBufferCountString()
/external/jazzer-api/agent/src/test/java/com/code_intelligence/jazzer/instrumentor/
DMockCoverageMap.java23 public static final ByteBuffer counters = ByteBuffer.allocate(SIZE); field in MockCoverageMap
31 if (previous_mem.get(i) != counters.get(i)) { in updated()
36 System.arraycopy(counters.array(), 0, previous_mem.array(), 0, SIZE); in updated()
44 byte counter = counters.get(id); in recordCoverage()
45 counters.put(id, (byte) (counter == -1 ? 1 : counter + 1)); in recordCoverage()
49 Arrays.fill(counters.array(), (byte) 0); in clear()

12345678910>>...31