/external/igt-gpu-tools/lib/ |
D | igt_stats.c | 34 #define sorted_value(stats, i) (stats->is_float ? stats->sorted_f[i] : stats->sorted_u64[i]) argument 35 #define unsorted_value(stats, i) (stats->is_float ? stats->values_f[i] : stats->values_u64[i]) argument 80 static void igt_stats_ensure_capacity(igt_stats_t *stats, in igt_stats_ensure_capacity() argument 83 unsigned int new_n_values = stats->n_values + n_additional_values; in igt_stats_ensure_capacity() 86 if (new_n_values <= stats->capacity) in igt_stats_ensure_capacity() 90 stats->values_u64 = realloc(stats->values_u64, in igt_stats_ensure_capacity() 91 sizeof(*stats->values_u64) * new_capacity); in igt_stats_ensure_capacity() 92 igt_assert(stats->values_u64); in igt_stats_ensure_capacity() 94 stats->capacity = new_capacity; in igt_stats_ensure_capacity() 96 free(stats->sorted_u64); in igt_stats_ensure_capacity() [all …]
|
/external/igt-gpu-tools/lib/tests/ |
D | igt_stats.c | 30 static void push_fixture_1(igt_stats_t *stats) in push_fixture_1() argument 32 igt_stats_push(stats, 2); in push_fixture_1() 33 igt_stats_push(stats, 4); in push_fixture_1() 34 igt_stats_push(stats, 6); in push_fixture_1() 35 igt_stats_push(stats, 8); in push_fixture_1() 36 igt_stats_push(stats, 10); in push_fixture_1() 42 igt_stats_t stats; in test_init_zero() local 44 stats.mean = 1.; in test_init_zero() 45 igt_stats_init(&stats); in test_init_zero() 46 igt_assert_eq_double(stats.mean, 0.); in test_init_zero() [all …]
|
/external/grpc-grpc/tools/run_tests/performance/ |
D | massage_qps_stats.py | 21 for stats in scenario_result["serverStats"] + scenario_result["clientStats"]: 22 if "coreStats" in stats: 25 core_stats = stats["coreStats"] 26 del stats["coreStats"] 27 stats[ 30 stats[ 33 stats["core_cqs_created"] = massage_qps_stats_helpers.counter( 35 stats[ 38 stats[ 41 stats[ [all …]
|
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/performance/ |
D | massage_qps_stats.py | 21 for stats in scenario_result["serverStats"] + scenario_result["clientStats"]: 22 if "coreStats" in stats: 25 core_stats = stats["coreStats"] 26 del stats["coreStats"] 27 stats[ 30 stats[ 33 stats["core_cqs_created"] = massage_qps_stats_helpers.counter( 35 stats[ 38 stats[ 41 stats[ [all …]
|
/external/guava/android/guava-tests/test/com/google/common/cache/ |
D | CacheLoadingTest.java | 104 CacheStats stats = cache.stats(); in testLoad() local 105 assertEquals(0, stats.missCount()); in testLoad() 106 assertEquals(0, stats.loadSuccessCount()); in testLoad() 107 assertEquals(0, stats.loadExceptionCount()); in testLoad() 108 assertEquals(0, stats.hitCount()); in testLoad() 112 stats = cache.stats(); in testLoad() 113 assertEquals(1, stats.missCount()); in testLoad() 114 assertEquals(1, stats.loadSuccessCount()); in testLoad() 115 assertEquals(0, stats.loadExceptionCount()); in testLoad() 116 assertEquals(0, stats.hitCount()); in testLoad() [all …]
|
D | CacheManualTest.java | 28 CacheStats stats = cache.stats(); in testGetIfPresent() local 29 assertEquals(0, stats.missCount()); in testGetIfPresent() 30 assertEquals(0, stats.loadSuccessCount()); in testGetIfPresent() 31 assertEquals(0, stats.loadExceptionCount()); in testGetIfPresent() 32 assertEquals(0, stats.hitCount()); in testGetIfPresent() 38 stats = cache.stats(); in testGetIfPresent() 39 assertEquals(1, stats.missCount()); in testGetIfPresent() 40 assertEquals(0, stats.loadSuccessCount()); in testGetIfPresent() 41 assertEquals(0, stats.loadExceptionCount()); in testGetIfPresent() 42 assertEquals(0, stats.hitCount()); in testGetIfPresent() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheLoadingTest.java | 104 CacheStats stats = cache.stats(); in testLoad() local 105 assertEquals(0, stats.missCount()); in testLoad() 106 assertEquals(0, stats.loadSuccessCount()); in testLoad() 107 assertEquals(0, stats.loadExceptionCount()); in testLoad() 108 assertEquals(0, stats.hitCount()); in testLoad() 112 stats = cache.stats(); in testLoad() 113 assertEquals(1, stats.missCount()); in testLoad() 114 assertEquals(1, stats.loadSuccessCount()); in testLoad() 115 assertEquals(0, stats.loadExceptionCount()); in testLoad() 116 assertEquals(0, stats.hitCount()); in testLoad() [all …]
|
D | CacheManualTest.java | 28 CacheStats stats = cache.stats(); in testGetIfPresent() local 29 assertEquals(0, stats.missCount()); in testGetIfPresent() 30 assertEquals(0, stats.loadSuccessCount()); in testGetIfPresent() 31 assertEquals(0, stats.loadExceptionCount()); in testGetIfPresent() 32 assertEquals(0, stats.hitCount()); in testGetIfPresent() 38 stats = cache.stats(); in testGetIfPresent() 39 assertEquals(1, stats.missCount()); in testGetIfPresent() 40 assertEquals(0, stats.loadSuccessCount()); in testGetIfPresent() 41 assertEquals(0, stats.loadExceptionCount()); in testGetIfPresent() 42 assertEquals(0, stats.hitCount()); in testGetIfPresent() [all …]
|
/external/libvpx/libvpx/ |
D | vpxstats.c | 19 int stats_open_file(stats_io_t *stats, const char *fpf, int pass) { in stats_open_file() argument 21 stats->pass = pass; in stats_open_file() 24 stats->file = fopen(fpf, "wb"); in stats_open_file() 25 stats->buf.sz = 0; in stats_open_file() 26 stats->buf.buf = NULL; in stats_open_file() 27 res = (stats->file != NULL); in stats_open_file() 31 stats->file = fopen(fpf, "rb"); in stats_open_file() 33 if (stats->file == NULL) fatal("First-pass stats file does not exist!"); in stats_open_file() 35 if (fseek(stats->file, 0, SEEK_END)) in stats_open_file() 38 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file); in stats_open_file() [all …]
|
/external/libaom/libaom/stats/ |
D | aomstats.c | 20 int stats_open_file(stats_io_t *stats, const char *fpf, int pass) { in stats_open_file() argument 22 stats->pass = pass; in stats_open_file() 25 stats->file = fopen(fpf, "wb"); in stats_open_file() 26 stats->buf.sz = 0; in stats_open_file() 27 stats->buf.buf = NULL; in stats_open_file() 28 res = (stats->file != NULL); in stats_open_file() 32 stats->file = fopen(fpf, "rb"); in stats_open_file() 34 if (stats->file == NULL) fatal("First-pass stats file does not exist!"); in stats_open_file() 36 if (fseek(stats->file, 0, SEEK_END)) in stats_open_file() 39 stats->buf.sz = stats->buf_alloc_sz = ftell(stats->file); in stats_open_file() [all …]
|
/external/webrtc/modules/audio_coding/neteq/ |
D | statistics_calculator_unittest.cc | 18 StatisticsCalculator stats; in TEST() local 20 stats.IncreaseCounter(480, 48000); // 10 ms at 48 kHz. in TEST() 22 EXPECT_EQ(10 * 480u, stats.GetLifetimeStatistics().total_samples_received); in TEST() 26 StatisticsCalculator stats; in TEST() local 27 stats.ExpandedVoiceSamples(100, false); in TEST() 28 stats.ExpandedNoiseSamples(17, false); in TEST() 29 EXPECT_EQ(100u + 17u, stats.GetLifetimeStatistics().concealed_samples); in TEST() 37 StatisticsCalculator stats; in TEST() local 38 stats.ExpandedVoiceSamples(100, false); in TEST() 39 EXPECT_EQ(100u, stats.GetLifetimeStatistics().concealed_samples); in TEST() [all …]
|
/external/webrtc/rtc_base/numerics/ |
D | samples_stats_counter_unittest.cc | 31 SamplesStatsCounter stats; in CreateStatsFilledWithIntsFrom1ToN() local 33 stats.AddSample(v); in CreateStatsFilledWithIntsFrom1ToN() 35 return stats; in CreateStatsFilledWithIntsFrom1ToN() 45 SamplesStatsCounter stats; in CreateStatsFromUniformDistribution() local 47 stats.AddSample(dis(gen)); in CreateStatsFromUniformDistribution() 49 return stats; in CreateStatsFromUniformDistribution() 59 SamplesStatsCounter stats = CreateStatsFilledWithIntsFrom1ToN(100); in TEST() local 61 EXPECT_TRUE(!stats.IsEmpty()); in TEST() 62 EXPECT_DOUBLE_EQ(stats.GetMin(), 1.0); in TEST() 63 EXPECT_DOUBLE_EQ(stats.GetMax(), 100.0); in TEST() [all …]
|
D | running_statistics_unittest.cc | 33 RunningStatistics<double> stats; in CreateStatsFilledWithIntsFrom1ToN() local 35 stats.AddSample(v); in CreateStatsFilledWithIntsFrom1ToN() 37 return stats; in CreateStatsFilledWithIntsFrom1ToN() 47 RunningStatistics<double> stats; in CreateStatsFromUniformDistribution() local 49 stats.AddSample(dis(gen)); in CreateStatsFromUniformDistribution() 51 return stats; in CreateStatsFromUniformDistribution() 61 auto stats = CreateStatsFilledWithIntsFrom1ToN(100); in TEST() local 63 EXPECT_DOUBLE_EQ(*stats.GetMin(), 1.0); in TEST() 64 EXPECT_DOUBLE_EQ(*stats.GetMax(), 100.0); in TEST() 66 ASSERT_NEAR(*stats.GetMean(), 50.5, 1e-10); in TEST() [all …]
|
/external/webrtc/modules/rtp_rtcp/source/ |
D | rtcp_nack_stats_unittest.cc | 18 RtcpNackStats stats; in TEST() local 19 EXPECT_EQ(0U, stats.unique_requests()); in TEST() 20 EXPECT_EQ(0U, stats.requests()); in TEST() 21 stats.ReportRequest(10); in TEST() 22 EXPECT_EQ(1U, stats.unique_requests()); in TEST() 23 EXPECT_EQ(1U, stats.requests()); in TEST() 25 stats.ReportRequest(10); in TEST() 26 EXPECT_EQ(1U, stats.unique_requests()); in TEST() 27 stats.ReportRequest(11); in TEST() 28 EXPECT_EQ(2U, stats.unique_requests()); in TEST() [all …]
|
/external/grpc-grpc/src/cpp/ext/filters/census/ |
D | grpc_plugin.h | 33 ::opencensus::stats::TagKey ClientMethodTagKey(); 34 ::opencensus::stats::TagKey ClientStatusTagKey(); 35 ::opencensus::stats::TagKey ServerMethodTagKey(); 36 ::opencensus::stats::TagKey ServerStatusTagKey(); 54 const ::opencensus::stats::ViewDescriptor& ClientSentMessagesPerRpcCumulative(); 55 const ::opencensus::stats::ViewDescriptor& ClientSentBytesPerRpcCumulative(); 56 const ::opencensus::stats::ViewDescriptor& 58 const ::opencensus::stats::ViewDescriptor& 60 const ::opencensus::stats::ViewDescriptor& ClientRoundtripLatencyCumulative(); 61 const ::opencensus::stats::ViewDescriptor& ClientServerLatencyCumulative(); [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/cpp/ext/filters/census/ |
D | grpc_plugin.h | 53 const ::opencensus::stats::ViewDescriptor& ClientSentMessagesPerRpcCumulative(); 54 const ::opencensus::stats::ViewDescriptor& ClientSentBytesPerRpcCumulative(); 55 const ::opencensus::stats::ViewDescriptor& 57 const ::opencensus::stats::ViewDescriptor& 59 const ::opencensus::stats::ViewDescriptor& ClientRoundtripLatencyCumulative(); 60 const ::opencensus::stats::ViewDescriptor& ClientServerLatencyCumulative(); 61 const ::opencensus::stats::ViewDescriptor& ClientCompletedRpcsCumulative(); 63 const ::opencensus::stats::ViewDescriptor& ServerSentBytesPerRpcCumulative(); 64 const ::opencensus::stats::ViewDescriptor& 66 const ::opencensus::stats::ViewDescriptor& ServerServerLatencyCumulative(); [all …]
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | time_averaged_stats.cc | 23 void grpc_time_averaged_stats_init(grpc_time_averaged_stats* stats, in grpc_time_averaged_stats_init() argument 26 stats->init_avg = init_avg; in grpc_time_averaged_stats_init() 27 stats->regress_weight = regress_weight; in grpc_time_averaged_stats_init() 28 stats->persistence_factor = persistence_factor; in grpc_time_averaged_stats_init() 29 stats->batch_total_value = 0; in grpc_time_averaged_stats_init() 30 stats->batch_num_samples = 0; in grpc_time_averaged_stats_init() 31 stats->aggregate_total_weight = 0; in grpc_time_averaged_stats_init() 32 stats->aggregate_weighted_avg = init_avg; in grpc_time_averaged_stats_init() 35 void grpc_time_averaged_stats_add_sample(grpc_time_averaged_stats* stats, in grpc_time_averaged_stats_add_sample() argument 37 stats->batch_total_value += value; in grpc_time_averaged_stats_add_sample() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | time_averaged_stats.cc | 23 void grpc_time_averaged_stats_init(grpc_time_averaged_stats* stats, in grpc_time_averaged_stats_init() argument 26 stats->init_avg = init_avg; in grpc_time_averaged_stats_init() 27 stats->regress_weight = regress_weight; in grpc_time_averaged_stats_init() 28 stats->persistence_factor = persistence_factor; in grpc_time_averaged_stats_init() 29 stats->batch_total_value = 0; in grpc_time_averaged_stats_init() 30 stats->batch_num_samples = 0; in grpc_time_averaged_stats_init() 31 stats->aggregate_total_weight = 0; in grpc_time_averaged_stats_init() 32 stats->aggregate_weighted_avg = init_avg; in grpc_time_averaged_stats_init() 35 void grpc_time_averaged_stats_add_sample(grpc_time_averaged_stats* stats, in grpc_time_averaged_stats_add_sample() argument 37 stats->batch_total_value += value; in grpc_time_averaged_stats_add_sample() [all …]
|
/external/llvm-project/libcxx/test/libcxx/language.support/support.dynamic/ |
D | libcpp_deallocate.sh.cpp | 100 alloc_stats stats; variable 104 stats.plain_called++; in operator delete() 105 stats.last_size = stats.last_align = -1; in operator delete() 111 stats.sized_called++; in operator delete() 112 stats.last_size = n; in operator delete() 113 stats.last_align = -1; in operator delete() 120 stats.aligned_called++; in operator delete() 121 stats.last_align = static_cast<int>(a); in operator delete() 122 stats.last_size = -1; in operator delete() 127 stats.aligned_sized_called++; in operator delete() [all …]
|
/external/libcxx/test/libcxx/language.support/support.dynamic/ |
D | libcpp_deallocate.sh.cpp | 107 alloc_stats stats; variable 111 stats.plain_called++; in operator delete() 112 stats.last_size = stats.last_align = -1; in operator delete() 118 stats.sized_called++; in operator delete() 119 stats.last_size = n; in operator delete() 120 stats.last_align = -1; in operator delete() 127 stats.aligned_called++; in operator delete() 128 stats.last_align = static_cast<int>(a); in operator delete() 129 stats.last_size = -1; in operator delete() 134 stats.aligned_sized_called++; in operator delete() [all …]
|
/external/grpc-grpc/src/core/ext/filters/load_reporting/ |
D | registered_opencensus_objects.h | 37 inline ::opencensus::stats::MeasureInt64 MeasureStartCount() { in MeasureStartCount() 38 static const ::opencensus::stats::MeasureInt64 measure = in MeasureStartCount() 39 ::opencensus::stats::MeasureInt64::Register( in MeasureStartCount() 44 inline ::opencensus::stats::MeasureInt64 MeasureEndCount() { in MeasureEndCount() 45 static const ::opencensus::stats::MeasureInt64 measure = in MeasureEndCount() 46 ::opencensus::stats::MeasureInt64::Register( in MeasureEndCount() 51 inline ::opencensus::stats::MeasureInt64 MeasureEndBytesSent() { in MeasureEndBytesSent() 52 static const ::opencensus::stats::MeasureInt64 measure = in MeasureEndBytesSent() 53 ::opencensus::stats::MeasureInt64::Register( in MeasureEndBytesSent() 58 inline ::opencensus::stats::MeasureInt64 MeasureEndBytesReceived() { in MeasureEndBytesReceived() [all …]
|
/external/webrtc/stats/ |
D | rtc_stats_unittest.cc | 70 RTCTestStats stats("testId", 42); in TEST() local 71 EXPECT_EQ(stats.id(), "testId"); in TEST() 72 EXPECT_EQ(stats.timestamp_us(), static_cast<int64_t>(42)); in TEST() 73 std::vector<const RTCStatsMemberInterface*> members = stats.Members(); in TEST() 78 stats.m_bool = true; in TEST() 79 stats.m_int32 = 123; in TEST() 80 stats.m_uint32 = 123; in TEST() 81 stats.m_int64 = 123; in TEST() 82 stats.m_uint64 = 123; in TEST() 83 stats.m_double = 123.0; in TEST() [all …]
|
/external/bcc/tests/python/ |
D | test_stat1.py | 35 self.stats = b.get_table("stats", Key, Leaf) 43 key = self.stats.Key(IPAddress("172.16.1.2").value, IPAddress("172.16.1.1").value) 44 leaf = self.stats[key] 47 del self.stats[key] 49 x = self.stats[key] 51 del self.stats[key] 52 self.stats.clear() 53 self.assertEqual(len(self.stats), 0) 54 self.stats[key] = leaf 55 self.assertEqual(len(self.stats), 1) [all …]
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_stats.cpp | 57 void AsanStats::MergeFrom(const AsanStats *stats) { in MergeFrom() argument 59 const uptr *src_ptr = reinterpret_cast<const uptr*>(stats); in MergeFrom() 78 accumulated_stats->MergeFrom(&t->stats()); in MergeThreadStats() 81 static void GetAccumulatedStats(AsanStats *stats) { in GetAccumulatedStats() argument 82 stats->Clear(); in GetAccumulatedStats() 86 .RunCallbackForEachThreadLocked(MergeThreadStats, stats); in GetAccumulatedStats() 88 stats->MergeFrom(&unknown_thread_stats); in GetAccumulatedStats() 91 stats->MergeFrom(&dead_threads_stats); in GetAccumulatedStats() 96 if (max_malloced_memory < stats->malloced) { in GetAccumulatedStats() 97 max_malloced_memory = stats->malloced; in GetAccumulatedStats() [all …]
|
/external/compiler-rt/lib/asan/ |
D | asan_stats.cc | 58 void AsanStats::MergeFrom(const AsanStats *stats) { in MergeFrom() argument 60 const uptr *src_ptr = reinterpret_cast<const uptr*>(stats); in MergeFrom() 79 accumulated_stats->MergeFrom(&t->stats()); in MergeThreadStats() 82 static void GetAccumulatedStats(AsanStats *stats) { in GetAccumulatedStats() argument 83 stats->Clear(); in GetAccumulatedStats() 87 .RunCallbackForEachThreadLocked(MergeThreadStats, stats); in GetAccumulatedStats() 89 stats->MergeFrom(&unknown_thread_stats); in GetAccumulatedStats() 92 stats->MergeFrom(&dead_threads_stats); in GetAccumulatedStats() 97 if (max_malloced_memory < stats->malloced) { in GetAccumulatedStats() 98 max_malloced_memory = stats->malloced; in GetAccumulatedStats() [all …]
|