/external/cronet/components/metrics/ |
D | histogram_encoder_unittest.cc | 37 const HistogramEventProto& histogram_proto = in TEST() local 42 ASSERT_EQ(5, histogram_proto.bucket_size()); in TEST() 45 EXPECT_TRUE(histogram_proto.bucket(0).has_min()); in TEST() 46 EXPECT_FALSE(histogram_proto.bucket(0).has_max()); in TEST() 47 EXPECT_EQ(1, histogram_proto.bucket(0).min()); in TEST() 50 EXPECT_TRUE(histogram_proto.bucket(1).has_min()); in TEST() 51 EXPECT_TRUE(histogram_proto.bucket(1).has_max()); in TEST() 52 EXPECT_EQ(5, histogram_proto.bucket(1).min()); in TEST() 53 EXPECT_EQ(7, histogram_proto.bucket(1).max()); in TEST() 56 EXPECT_FALSE(histogram_proto.bucket(2).has_min()); in TEST() [all …]
|
D | histogram_encoder.cc | 26 HistogramEventProto* histogram_proto = uma_proto->add_histogram_event(); in EncodeHistogramDelta() local 27 histogram_proto->set_name_hash(base::HashMetricName(histogram_name)); in EncodeHistogramDelta() 29 histogram_proto->set_sum(snapshot.sum()); in EncodeHistogramDelta() 37 HistogramEventProto::Bucket* bucket = histogram_proto->add_bucket(); in EncodeHistogramDelta() 48 for (int i = 0; i < histogram_proto->bucket_size(); ++i) { in EncodeHistogramDelta() 49 HistogramEventProto::Bucket* bucket = histogram_proto->mutable_bucket(i); in EncodeHistogramDelta() 50 if (i + 1 < histogram_proto->bucket_size() && in EncodeHistogramDelta() 51 bucket->max() == histogram_proto->bucket(i + 1).min()) { in EncodeHistogramDelta()
|
D | metrics_log_unittest.cc | 440 const HistogramEventProto& histogram_proto = in TEST_F() local 445 ASSERT_EQ(5, histogram_proto.bucket_size()); in TEST_F() 448 EXPECT_TRUE(histogram_proto.bucket(0).has_min()); in TEST_F() 449 EXPECT_FALSE(histogram_proto.bucket(0).has_max()); in TEST_F() 450 EXPECT_EQ(1, histogram_proto.bucket(0).min()); in TEST_F() 453 EXPECT_TRUE(histogram_proto.bucket(1).has_min()); in TEST_F() 454 EXPECT_TRUE(histogram_proto.bucket(1).has_max()); in TEST_F() 455 EXPECT_EQ(5, histogram_proto.bucket(1).min()); in TEST_F() 456 EXPECT_EQ(7, histogram_proto.bucket(1).max()); in TEST_F() 459 EXPECT_FALSE(histogram_proto.bucket(2).has_min()); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/core/lib/monitoring/ |
D | test_utils.cc | 44 HistogramProto histogram_proto = histogram_proto_; in Subtract() local 47 return Histogram(histogram_proto); in Subtract() 50 if (!absl::c_equal(histogram_proto.bucket_limit(), in Subtract() 54 absl::StrJoin(histogram_proto.bucket_limit(), ", "), "], right: [", in Subtract() 58 histogram_proto.set_num(histogram_proto.num() - other.histogram_proto_.num()); in Subtract() 59 histogram_proto.set_sum(histogram_proto.sum() - other.histogram_proto_.sum()); in Subtract() 60 histogram_proto.set_sum_squares(histogram_proto.sum_squares() - in Subtract() 62 for (size_t i = 0; i < histogram_proto.bucket().size(); ++i) { in Subtract() 63 histogram_proto.set_bucket( in Subtract() 64 i, histogram_proto.bucket(i) - other.histogram_proto_.bucket(i)); in Subtract() [all …]
|
D | test_utils.h | 34 explicit Histogram(const HistogramProto& histogram_proto) in Histogram() argument 35 : histogram_proto_(histogram_proto) {} in Histogram()
|
/external/tensorflow/tensorflow/python/distribute/coordinator/ |
D | metric_utils.py | 77 histogram_proto = metric.get_cell().value() 79 ret['min'] = histogram_proto.min 80 ret['max'] = histogram_proto.max 81 ret['num'] = histogram_proto.num 82 ret['sum'] = histogram_proto.sum
|
/external/cronet/components/metrics/library_support/ |
D | histogram_manager_unittest.cc | 33 const HistogramEventProto& histogram_proto = in TEST() local 35 ASSERT_EQ(1, histogram_proto.bucket_size()); in TEST() 36 EXPECT_LE(0, histogram_proto.bucket(0).min()); in TEST() 37 EXPECT_LE(2, histogram_proto.bucket(0).max()); in TEST() 38 EXPECT_EQ(1, histogram_proto.bucket(0).count()); in TEST()
|
/external/tensorflow/tensorflow/python/training/tracking/ |
D | checkpoint_metrics_test.py | 30 histogram_proto = summary_pb2.HistogramProto() 31 histogram_proto.ParseFromString(proto_bytes) 32 return histogram_proto 36 histogram_proto = summary_pb2.HistogramProto() 37 histogram_proto.ParseFromString(proto_bytes) 38 return histogram_proto
|
/external/tensorflow/tensorflow/python/checkpoint/ |
D | checkpoint_metrics_test.py | 32 histogram_proto = summary_pb2.HistogramProto() 33 histogram_proto.ParseFromString(proto_bytes) 34 return histogram_proto 38 histogram_proto = summary_pb2.HistogramProto() 39 histogram_proto.ParseFromString(proto_bytes) 40 return histogram_proto
|
/external/tensorflow/tensorflow/python/eager/ |
D | monitoring_test.py | 86 histogram_proto = sampler.get_cell().value() 87 self.assertEqual(histogram_proto.min, 1.0) 88 self.assertEqual(histogram_proto.num, 2.0) 89 self.assertEqual(histogram_proto.sum, 6.0)
|
D | monitoring.py | 394 histogram_proto = summary_pb2.HistogramProto() 395 histogram_proto.ParseFromString(compat.as_bytes(proto_data)) 396 return histogram_proto
|
/external/tensorflow/tensorflow/python/saved_model/ |
D | pywrap_saved_model_metrics_test.py | 27 histogram_proto = summary_pb2.HistogramProto() 28 histogram_proto.ParseFromString(proto_bytes) 29 return histogram_proto
|
/external/webrtc/tools_webrtc/perf/ |
D | process_perf_results.py | 61 from tracing.proto import histogram_proto 62 if not histogram_proto.HAS_PROTO:
|
D | catapult_uploader_test.py | 47 from tracing.proto import histogram_proto 48 if not histogram_proto.HAS_PROTO:
|
D | BUILD.gn | 15 [ "//third_party/catapult/tracing/tracing/proto:histogram_proto" ]
|
/external/tensorflow/tensorflow/python/distribute/ |
D | input_lib_test.py | 1815 histogram_proto = ( 1818 self.assertGreater(histogram_proto.num, 0.0) 1873 histogram_proto = ( 1877 self.assertGreater(histogram_proto.num, 0.0)
|
/external/webrtc/audio/ |
D | BUILD.gn | 273 "//third_party/catapult/tracing/tracing/proto:histogram_proto",
|
/external/tensorflow/tensorflow/python/training/ |
D | saver_test.py | 853 histogram_proto = summary_pb2.HistogramProto() 854 histogram_proto.ParseFromString(proto_bytes) 855 return histogram_proto 859 histogram_proto = summary_pb2.HistogramProto() 860 histogram_proto.ParseFromString(proto_bytes) 861 return histogram_proto
|