| /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/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 40 * @title: Stats 50 * igt_stats_t stats; 52 * igt_stats_init(&stats, 8); 54 * igt_stats_push(&stats, 2); 55 * igt_stats_push(&stats, 4); 56 * igt_stats_push(&stats, 4); 57 * igt_stats_push(&stats, 4); 58 * igt_stats_push(&stats, 5); [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/cronet/net/disk_cache/blockfile/ |
| D | stats_unittest.cc | 5 #include "net/disk_cache/blockfile/stats.h" 12 disk_cache::Stats stats; in TEST() local 13 EXPECT_TRUE(stats.Init(nullptr, 0, disk_cache::Addr())); in TEST() 14 EXPECT_EQ(0, stats.GetCounter(disk_cache::Stats::TRIM_ENTRY)); in TEST() 18 disk_cache::Stats stats; in TEST() local 19 int required_len = stats.StorageSize(); in TEST() 23 ASSERT_TRUE(stats.Init(storage.get(), required_len, disk_cache::Addr())); in TEST() 24 EXPECT_EQ(0, stats.GetCounter(disk_cache::Stats::TRIM_ENTRY)); in TEST() 28 disk_cache::Stats stats; in TEST() local 29 int required_len = stats.StorageSize(); in TEST() [all …]
|
| D | stats.cc | 5 #include "net/disk_cache/blockfile/stats.h" 25 int data_sizes[disk_cache::Stats::kDataSizesLength]; 26 int64_t counters[disk_cache::Stats::MAX_COUNTER]; 46 // WARNING: Add new stats only at the end, or change LoadStats(). 71 static_assert(std::size(kCounterNames) == disk_cache::Stats::MAX_COUNTER, 78 bool VerifyStats(OnDiskStats* stats) { in VerifyStats() argument 79 if (stats->signature != kDiskSignature) in VerifyStats() 84 if (static_cast<unsigned int>(stats->size) > sizeof(*stats)) { in VerifyStats() 85 memset(stats, 0, sizeof(*stats)); in VerifyStats() 86 stats->signature = kDiskSignature; in VerifyStats() [all …]
|
| /external/webrtc/stats/ |
| D | rtc_stats_unittest.cc | 11 #include "api/stats/rtc_stats.h" 20 #include "stats/test/rtc_test_stats.h" 52 WEBRTC_RTCSTATS_IMPL(RTCChildStats, RTCStats, "child-stats", &child_int) 66 "grandchild-stats", 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() [all …]
|
| /external/webrtc/test/pc/e2e/analyzer/video/ |
| D | default_video_quality_analyzer_frames_comparator_test.cc | 94 FrameStats ShiftStatsOn(const FrameStats& stats, TimeDelta delta) { in ShiftStatsOn() argument 95 FrameStats frame_stats(stats.frame_id, stats.captured_time + delta); in ShiftStatsOn() 96 frame_stats.pre_encode_time = stats.pre_encode_time + delta; in ShiftStatsOn() 97 frame_stats.encoded_time = stats.encoded_time + delta; in ShiftStatsOn() 98 frame_stats.received_time = stats.received_time + delta; in ShiftStatsOn() 99 frame_stats.decode_start_time = stats.decode_start_time + delta; in ShiftStatsOn() 100 frame_stats.decode_end_time = stats.decode_end_time + delta; in ShiftStatsOn() 101 frame_stats.rendered_time = stats.rendered_time + delta; in ShiftStatsOn() 103 frame_stats.used_encoder = stats.used_encoder; in ShiftStatsOn() 104 frame_stats.used_decoder = stats.used_decoder; in ShiftStatsOn() [all …]
|
| /external/libaom/stats/ |
| D | aomstats.c | 12 #include "stats/aomstats.h" 22 int stats_open_file(stats_io_t *stats, const char *fpf, int pass) { in stats_open_file() argument 24 stats->pass = pass; in stats_open_file() 27 stats->file = fopen(fpf, "wb"); in stats_open_file() 28 stats->buf.sz = 0; in stats_open_file() 29 stats->buf.buf = NULL; in stats_open_file() 30 res = (stats->file != NULL); in stats_open_file() 34 stats->file = fopen(fpf, "rb"); in stats_open_file() 36 if (stats->file == NULL) fatal("First-pass stats file does not exist!"); in stats_open_file() 38 if (fseek(stats->file, 0, SEEK_END)) in stats_open_file() [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/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() 36 fatal("First-pass stats file must be seekable!"); 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() 33 // result in a decrease in the stats value (because stats-consuming applications 37 StatisticsCalculator stats; in TEST() local 38 stats.ExpandedVoiceSamples(100, false); in TEST() [all …]
|
| /external/webrtc/api/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 …]
|
| /external/grpc-grpc/src/cpp/ext/filters/census/ |
| D | grpc_plugin.h | 26 #include "opencensus/stats/stats.h" 32 // The tag keys set when recording RPC stats. 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& [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/rust/crates/grpcio-sys/grpc/src/cpp/ext/filters/census/ |
| D | grpc_plugin.h | 26 #include "opencensus/stats/stats.h" 31 // The tag keys set when recording RPC stats. 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(); [all …]
|
| /external/bcc/tests/python/ |
| D | test_stat1.py | 28 self.stats = b.get_table("stats", Key, Leaf) 33 #for key, leaf in self.stats.items(): 36 key = self.stats.Key(IPAddress("172.16.1.2").value, IPAddress("172.16.1.1").value) 37 leaf = self.stats[key] 40 del self.stats[key] 42 x = self.stats[key] 44 del self.stats[key] 45 self.stats.clear() 46 self.assertEqual(len(self.stats), 0) 47 self.stats[key] = leaf [all …]
|
| /external/webrtc/rtc_base/numerics/ |
| D | running_statistics_unittest.cc | 34 RunningStatistics<double> stats; in CreateStatsFilledWithIntsFrom1ToN() local 36 stats.AddSample(v); in CreateStatsFilledWithIntsFrom1ToN() 38 return stats; in CreateStatsFilledWithIntsFrom1ToN() 48 RunningStatistics<double> stats; in CreateStatsFromUniformDistribution() local 50 stats.AddSample(dis(gen)); in CreateStatsFromUniformDistribution() 52 return stats; in CreateStatsFromUniformDistribution() 60 auto stats = CreateStatsFilledWithIntsFrom1ToN(100); in TEST() local 62 EXPECT_DOUBLE_EQ(*stats.GetMin(), 1.0); in TEST() 63 EXPECT_DOUBLE_EQ(*stats.GetMax(), 100.0); in TEST() 65 ASSERT_NEAR(*stats.GetMean(), 50.5, 1e-10); in TEST() [all …]
|
| /external/compiler-rt/lib/asan/ |
| D | asan_stats.cc | 44 Printf("Stats: %zuM malloced (%zuM for red zones) by %zu calls\n", in Print() 46 Printf("Stats: %zuM realloced by %zu calls\n", realloced>>20, reallocs); in Print() 47 Printf("Stats: %zuM freed by %zu calls\n", freed>>20, frees); in Print() 48 Printf("Stats: %zuM really freed by %zu calls\n", in Print() 50 Printf("Stats: %zuM (%zuM-%zuM) mmaped; %zu maps, %zu unmaps\n", in Print() 55 Printf("Stats: malloc large: %zu\n", malloc_large); in Print() 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 [all …]
|
| /external/grpc-grpc/src/core/ext/filters/load_reporting/ |
| D | registered_opencensus_objects.h | 24 #include "opencensus/stats/stats.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() [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 …]
|