Home
last modified time | relevance | path

Searched refs:histogram_proto (Results 1 – 18 of 18) sorted by relevance

/external/cronet/components/metrics/
Dhistogram_encoder_unittest.cc37 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 …]
Dhistogram_encoder.cc26 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()
Dmetrics_log_unittest.cc440 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/
Dtest_utils.cc44 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 …]
Dtest_utils.h34 explicit Histogram(const HistogramProto& histogram_proto) in Histogram() argument
35 : histogram_proto_(histogram_proto) {} in Histogram()
/external/tensorflow/tensorflow/python/distribute/coordinator/
Dmetric_utils.py77 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/
Dhistogram_manager_unittest.cc33 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/
Dcheckpoint_metrics_test.py30 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/
Dcheckpoint_metrics_test.py32 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/
Dmonitoring_test.py86 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)
Dmonitoring.py394 histogram_proto = summary_pb2.HistogramProto()
395 histogram_proto.ParseFromString(compat.as_bytes(proto_data))
396 return histogram_proto
/external/tensorflow/tensorflow/python/saved_model/
Dpywrap_saved_model_metrics_test.py27 histogram_proto = summary_pb2.HistogramProto()
28 histogram_proto.ParseFromString(proto_bytes)
29 return histogram_proto
/external/webrtc/tools_webrtc/perf/
Dprocess_perf_results.py61 from tracing.proto import histogram_proto
62 if not histogram_proto.HAS_PROTO:
Dcatapult_uploader_test.py47 from tracing.proto import histogram_proto
48 if not histogram_proto.HAS_PROTO:
DBUILD.gn15 [ "//third_party/catapult/tracing/tracing/proto:histogram_proto" ]
/external/tensorflow/tensorflow/python/distribute/
Dinput_lib_test.py1815 histogram_proto = (
1818 self.assertGreater(histogram_proto.num, 0.0)
1873 histogram_proto = (
1877 self.assertGreater(histogram_proto.num, 0.0)
/external/webrtc/audio/
DBUILD.gn273 "//third_party/catapult/tracing/tracing/proto:histogram_proto",
/external/tensorflow/tensorflow/python/training/
Dsaver_test.py853 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