Home
last modified time | relevance | path

Searched refs:DatumId (Results 1 – 6 of 6) sorted by relevance

/art/runtime/metrics/
Dstatsd.cc46 constexpr std::optional<int32_t> EncodeDatumId(DatumId datum_id) { in EncodeDatumId()
48 case DatumId::kClassVerificationTotalTime: in EncodeDatumId()
51 case DatumId::kClassVerificationTotalTimeDelta: in EncodeDatumId()
54 case DatumId::kJitMethodCompileTotalTime: in EncodeDatumId()
57 case DatumId::kJitMethodCompileTotalTimeDelta: in EncodeDatumId()
60 case DatumId::kClassLoadingTotalTime: in EncodeDatumId()
63 case DatumId::kClassLoadingTotalTimeDelta: in EncodeDatumId()
66 case DatumId::kClassVerificationCount: in EncodeDatumId()
69 case DatumId::kClassVerificationCountDelta: in EncodeDatumId()
72 case DatumId::kWorldStopTimeDuringGCAvg: in EncodeDatumId()
[all …]
Dreporter_test.cc52 SafeMap<DatumId, uint64_t> data;
64 void ReportCounter(DatumId counter_type, uint64_t value) override { in ReportCounter()
68 void ReportHistogram([[maybe_unused]] DatumId histogram_type, in ReportHistogram()
177 ASSERT_EQ(report.data.Get(DatumId::kClassVerificationCount), with_metrics ? 2u : 0u); in VerifyReports()
178 ASSERT_EQ(report.data.Get(DatumId::kJitMethodCompileCount), with_metrics ? 1u : 0u); in VerifyReports()
/art/libartbase/base/metrics/
Dmetrics_test.cc37 MetricsCounter<DatumId::kClassVerificationTotalTime> test_counter; in TEST_F()
49 MetricsCounter<DatumId::kClassVerificationTotalTime> test_counter; in TEST_F()
59 MetricsCounter<DatumId::kClassVerificationTotalTime> test_counter; in TEST_F()
68 MetricsCounter<DatumId::kClassVerificationTotalTime> test_counter; in TEST_F()
86 MetricsCounter<DatumId::kClassVerificationTotalTime> test_counter; in TEST_F()
96 MetricsAccumulator<DatumId::kClassLoadingTotalTime, uint64_t, std::max> accumulator; in TEST_F()
114 MetricsAverage<DatumId::kClassLoadingTotalTime, uint64_t> avg; in TEST_F()
132 EXPECT_EQ("ClassVerificationTotalTime", DatumName(DatumId::kClassVerificationTotalTime)); in TEST_F()
136 MetricsHistogram<DatumId::kYoungGcCollectionTime, 5, 0, 100> histogram; in TEST_F()
169 MetricsHistogram<DatumId::kYoungGcCollectionTime, 2, 0, 100> histogram; in TEST_F()
[all …]
Dmetrics.h124 enum class DatumId { enum
263 virtual void ReportCounter(DatumId counter_type, uint64_t value) = 0;
274 virtual void ReportHistogram(DatumId histogram_type,
282 template <DatumId counter_type, typename T>
284 template <DatumId counter_type, typename T>
286 template <DatumId histogram_type, size_t num_buckets, int64_t low_value, int64_t high_value>
288 template <DatumId datum_id, typename T, const T& AccumulatorFunction(const T&, const T&)>
290 template <DatumId datum_id, typename T>
309 template <DatumId counter_type, typename T = uint64_t>
345 template <DatumId datum_id, typename T = uint64_t>
[all …]
Dmetrics_test.h40 void ReportCounter([[maybe_unused]] DatumId counter_type, in ReportCounter()
43 void ReportHistogram([[maybe_unused]] DatumId histogram_type, in ReportHistogram()
57 void ReportCounter(DatumId, uint64_t value) override { *counter_value_ = value; } in CounterValue()
65 template <DatumId histogram_type, size_t num_buckets, int64_t low_value, int64_t high_value>
72 void ReportHistogram(DatumId, int64_t, int64_t, const std::vector<uint32_t>& buckets) override { in GetBuckets()
Dmetrics_common.cc31 std::string DatumName(DatumId datum) { in DatumName()
34 case DatumId::k##name: \ in DatumName()
128 void StringBackend::ReportCounter(DatumId counter_type, uint64_t value) { in ReportCounter()
132 void StringBackend::ReportHistogram(DatumId histogram_type, in ReportHistogram()
155 void TextFormatter::FormatReportCounter(DatumId counter_type, uint64_t value) { in FormatReportCounter()
159 void TextFormatter::FormatReportHistogram(DatumId histogram_type, in FormatReportHistogram()
216 void XmlFormatter::FormatReportCounter(DatumId counter_type, uint64_t value) { in FormatReportCounter()
224 void XmlFormatter::FormatReportHistogram(DatumId histogram_type, in FormatReportHistogram()