Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 25 of 39) sorted by relevance

12

/art/runtime/gc/
Dheap_test.cc131 metrics::ArtMetrics* metrics = Runtime::Current()->GetMetrics(); in TEST_F() local
133 metrics::MetricsBase<int64_t>* full_gc_collection_time = metrics->FullGcCollectionTime(); in TEST_F()
134 metrics::MetricsBase<uint64_t>* full_gc_count = metrics->FullGcCount(); in TEST_F()
135 metrics::MetricsBase<uint64_t>* full_gc_count_delta = metrics->FullGcCountDelta(); in TEST_F()
136 metrics::MetricsBase<int64_t>* full_gc_throughput = metrics->FullGcThroughput(); in TEST_F()
137 metrics::MetricsBase<int64_t>* full_gc_tracing_throughput = metrics->FullGcTracingThroughput(); in TEST_F()
138 metrics::MetricsBase<uint64_t>* full_gc_throughput_avg = metrics->FullGcThroughputAvg(); in TEST_F()
139 metrics::MetricsBase<uint64_t>* full_gc_tracing_throughput_avg = in TEST_F()
140 metrics->FullGcTracingThroughputAvg(); in TEST_F()
141 metrics::MetricsBase<uint64_t>* full_gc_scanned_bytes = metrics->FullGcScannedBytes(); in TEST_F()
[all …]
/art/odrefresh/
Dodr_metrics_record.cc118 tinyxml2::XMLElement* metrics = xml_document.FirstChildElement("odrefresh_metrics"); in ReadFromFile() local
119 if (metrics == nullptr) { in ReadFromFile()
123 odrefresh_metrics_version = OR_RETURN(ReadInt32(metrics, "odrefresh_metrics_version")); in ReadFromFile()
130 art_apex_version = OR_RETURN(ReadInt64(metrics, "art_apex_version")); in ReadFromFile()
131 trigger = OR_RETURN(ReadInt32(metrics, "trigger")); in ReadFromFile()
132 stage_reached = OR_RETURN(ReadInt32(metrics, "stage_reached")); in ReadFromFile()
133 status = OR_RETURN(ReadInt32(metrics, "status")); in ReadFromFile()
134 cache_space_free_start_mib = OR_RETURN(ReadInt32(metrics, "cache_space_free_start_mib")); in ReadFromFile()
135 cache_space_free_end_mib = OR_RETURN(ReadInt32(metrics, "cache_space_free_end_mib")); in ReadFromFile()
136 primary_bcp_compilation_millis = OR_RETURN(ReadInt32(metrics, "primary_bcp_compilation_millis")); in ReadFromFile()
[all …]
Dodr_metrics_test.cc69 OdrMetrics metrics(GetCacheDirectory(), GetMetricsFilePath()); in TEST_F() local
70 metrics.SetArtApexVersion(99); in TEST_F()
71 metrics.SetTrigger(OdrMetrics::Trigger::kApexVersionMismatch); in TEST_F()
72 metrics.SetStage(OdrMetrics::Stage::kCheck); in TEST_F()
73 metrics.SetStatus(OdrMetrics::Status::kNoSpace); in TEST_F()
81 OdrMetrics metrics(GetCacheDirectory(), GetMetricsFilePath()); in TEST_F() local
82 metrics.SetEnabled(true); in TEST_F()
83 metrics.SetArtApexVersion(101); in TEST_F()
84 metrics.SetTrigger(OdrMetrics::Trigger::kDexFilesChanged); in TEST_F()
85 metrics.SetStage(OdrMetrics::Stage::kCheck); in TEST_F()
[all …]
Dodrefresh_main.cc280 OdrMetrics metrics(config.GetArtifactDirectory()); in main() local
287 ExitCode exit_code = odr.CheckArtifactsAreUpToDate(metrics, &compilation_options); in main()
291 metrics.SetEnabled(exit_code != ExitCode::kOkay && exit_code != ExitCode::kCompilationRequired); in main()
294 ExitCode exit_code = odr.CheckArtifactsAreUpToDate(metrics, &compilation_options); in main()
297 metrics.SetEnabled(exit_code != ExitCode::kOkay); in main()
306 if (!compilation_log.ShouldAttemptCompile(metrics.GetTrigger())) { in main()
311 metrics.SetEnabled(true); in main()
312 ExitCode compile_result = odr.Compile(metrics, compilation_options); in main()
313 compilation_log.Log(metrics.GetArtApexVersion(), in main()
314 metrics.GetArtApexLastUpdateMillis(), in main()
[all …]
Dodrefresh.cc1388 OdrMetrics& metrics, in CheckBootClasspathArtifactsAreUpToDate() argument
1433 metrics.SetTrigger(OdrMetrics::Trigger::kMissingArtifacts); in CheckBootClasspathArtifactsAreUpToDate()
1443 metrics.SetTrigger(data_result.GetTrigger()); in CheckBootClasspathArtifactsAreUpToDate()
1454 metrics.SetTrigger(OdrMetrics::Trigger::kMissingArtifacts); in CheckBootClasspathArtifactsAreUpToDate()
1457 metrics.SetTrigger(data_result.GetTrigger()); in CheckBootClasspathArtifactsAreUpToDate()
1476 OdrMetrics& metrics, in CheckSystemServerArtifactsAreUpToDate() argument
1514 metrics.SetTrigger(OdrMetrics::Trigger::kMissingArtifacts); in CheckSystemServerArtifactsAreUpToDate()
1516 metrics.SetTrigger(data_result.GetTrigger()); in CheckSystemServerArtifactsAreUpToDate()
1526 OdrMetrics& metrics, const std::vector<std::string>& artifacts_to_keep) const { in CleanupArtifactDirectory() argument
1545 metrics.SetStatus(ec.value() == EPERM ? OdrMetrics::Status::kDalvikCachePermissionDenied : in CleanupArtifactDirectory()
[all …]
Dodr_statslog_android.cc63 art::metrics::statsd::stats_write(metrics::statsd::ODREFRESH_REPORTED, in UploadStatsIfAvailable()
Dodrefresh.h172 CheckArtifactsAreUpToDate(OdrMetrics& metrics,
175 WARN_UNUSED ExitCode Compile(OdrMetrics& metrics, CompilationOptions compilation_options) const;
250 OdrMetrics& metrics, const std::vector<std::string>& artifacts_to_keep) const;
313 CheckBootClasspathArtifactsAreUpToDate(OdrMetrics& metrics,
323 OdrMetrics& metrics,
Dodr_metrics.cc167 void OdrMetrics::WriteToFile(const std::string& path, const OdrMetrics* metrics) { in WriteToFile() argument
168 OdrMetricsRecord record = metrics->ToRecord(); in WriteToFile()
Dodr_metrics.h146 static void WriteToFile(const std::string& path, const OdrMetrics* metrics);
/art/runtime/gc/collector/
Dgarbage_collector.h165 metrics::MetricsBase<int64_t>* gc_time_histogram_;
166 metrics::MetricsBase<uint64_t>* metrics_gc_count_;
167 metrics::MetricsBase<uint64_t>* metrics_gc_count_delta_;
168 metrics::MetricsBase<int64_t>* gc_throughput_histogram_;
169 metrics::MetricsBase<int64_t>* gc_tracing_throughput_hist_;
170 metrics::MetricsBase<uint64_t>* gc_throughput_avg_;
171 metrics::MetricsBase<uint64_t>* gc_tracing_throughput_avg_;
172 metrics::MetricsBase<uint64_t>* gc_scanned_bytes_;
173 metrics::MetricsBase<uint64_t>* gc_scanned_bytes_delta_;
174 metrics::MetricsBase<uint64_t>* gc_freed_bytes_;
[all …]
Dgarbage_collector.cc236 metrics::ArtMetrics* metrics = runtime->GetMetrics(); in Run() local
239 metrics->WorldStopTimeDuringGCAvg()->Add(total_pause_time_us); in Run()
240 metrics->GcWorldStopTime()->Add(total_pause_time_us); in Run()
241 metrics->GcWorldStopTimeDelta()->Add(total_pause_time_us); in Run()
242 metrics->GcWorldStopCount()->AddOne(); in Run()
243 metrics->GcWorldStopCountDelta()->AddOne(); in Run()
245 metrics->TotalGcCollectionTime()->Add(NsToMs(duration_ns)); in Run()
246 metrics->TotalGcCollectionTimeDelta()->Add(NsToMs(duration_ns)); in Run()
Dconcurrent_copying.cc156 metrics::ArtMetrics* metrics = GetMetrics(); in ConcurrentCopying() local
159 gc_time_histogram_ = metrics->YoungGcCollectionTime(); in ConcurrentCopying()
160 metrics_gc_count_ = metrics->YoungGcCount(); in ConcurrentCopying()
161 metrics_gc_count_delta_ = metrics->YoungGcCountDelta(); in ConcurrentCopying()
162 gc_throughput_histogram_ = metrics->YoungGcThroughput(); in ConcurrentCopying()
163 gc_tracing_throughput_hist_ = metrics->YoungGcTracingThroughput(); in ConcurrentCopying()
164 gc_throughput_avg_ = metrics->YoungGcThroughputAvg(); in ConcurrentCopying()
165 gc_tracing_throughput_avg_ = metrics->YoungGcTracingThroughputAvg(); in ConcurrentCopying()
166 gc_scanned_bytes_ = metrics->YoungGcScannedBytes(); in ConcurrentCopying()
167 gc_scanned_bytes_delta_ = metrics->YoungGcScannedBytesDelta(); in ConcurrentCopying()
[all …]
/art/test/2233-metrics-background-thread/
DAndroid.bp3 // Build rules for ART run-test `2233-metrics-background-thread`.
16 name: "art-run-test-2233-metrics-background-thread",
21 ":art-run-test-2233-metrics-background-thread-expected-stdout",
22 ":art-run-test-2233-metrics-background-thread-expected-stderr",
28 name: "art-run-test-2233-metrics-background-thread-expected-stdout",
29 out: ["art-run-test-2233-metrics-background-thread-expected-stdout.txt"],
36 name: "art-run-test-2233-metrics-background-thread-expected-stderr",
37 out: ["art-run-test-2233-metrics-background-thread-expected-stderr.txt"],
Dinfo.txt1 Tests metrics background reporting thread
/art/test/2232-write-metrics-to-log/
DAndroid.bp3 // Build rules for ART run-test `2232-write-metrics-to-log`.
16 name: "art-run-test-2232-write-metrics-to-log",
21 ":art-run-test-2232-write-metrics-to-log-expected-stdout",
22 ":art-run-test-2232-write-metrics-to-log-expected-stderr",
28 name: "art-run-test-2232-write-metrics-to-log-expected-stdout",
29 out: ["art-run-test-2232-write-metrics-to-log-expected-stdout.txt"],
36 name: "art-run-test-2232-write-metrics-to-log-expected-stderr",
37 out: ["art-run-test-2232-write-metrics-to-log-expected-stderr.txt"],
Dinfo.txt1 Checks that metrics can be written to logcat.
/art/libartbase/base/metrics/
Dmetrics_test.cc28 namespace metrics { namespace
185 ArtMetrics metrics; in TEST_F() local
189 metrics.ClassVerificationTotalTime()->Add(verification_time); in TEST_F()
191 metrics.YoungGcCollectionTime()->Add(-5); in TEST_F()
242 metrics.ReportAllMetricsAndResetValueMetrics({&backend}); in TEST_F()
258 ArtMetrics metrics; in TEST_F() local
261 metrics.ReportAllMetricsAndResetValueMetrics({&backend}); in TEST_F()
272 ArtMetrics metrics; in TEST_F() local
275 #define METRIC(name, type, ...) metrics.name()->Add(42); in TEST_F()
298 metrics.ReportAllMetricsAndResetValueMetrics({&non_zero_backend}); in TEST_F()
[all …]
DREADME.md3 This directory contains most of ART's metrics framework. Some portions that
4 rely on the runtime can be found in the `runtime/metrics` directory.
8 ART's internal metrics are listed in the `ART_METRICS` macro in `metrics.h`.
44 usage for exported metrics. It is recommended to keep this below 16. The
Dmetrics_common.cc29 namespace metrics { namespace
217 tinyxml2::XMLElement* metrics = document_.RootElement()->FirstChildElement("metrics"); in FormatReportCounter() local
219 tinyxml2::XMLElement* counter = metrics->InsertNewChildElement(DatumName(counter_type).data()); in FormatReportCounter()
228 tinyxml2::XMLElement* metrics = document_.RootElement()->FirstChildElement("metrics"); in FormatReportHistogram() local
231 metrics->InsertNewChildElement(DatumName(histogram_type).data()); in FormatReportHistogram()
Dmetrics_test.h26 namespace metrics {
/art/runtime/metrics/
Dstatsd.h25 namespace metrics {
Dreporter_test.cc28 namespace metrics { namespace
123 session_data_ = metrics::SessionData::CreateDefault(); in SetupReporter()
202 metrics::SessionData session_data_;
Dreporter.cc35 namespace metrics { namespace
203 ArtMetrics* metrics = GetMetrics(); in ReportMetrics() local
212 metrics->ReportAllMetricsAndResetValueMetrics(MakeNonOwningPointerVector(backends_)); in ReportMetrics()
Dreporter.h29 namespace metrics {
/art/runtime/verifier/
Dmethod_verifier_test.cc36 using metrics::test::CounterValue;

12