/art/runtime/gc/ |
D | heap_test.cc | 131 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/ |
D | odr_metrics_record.cc | 118 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 …]
|
D | odr_metrics_test.cc | 69 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 …]
|
D | odrefresh_main.cc | 280 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 …]
|
D | odrefresh.cc | 1388 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 …]
|
D | odr_statslog_android.cc | 63 art::metrics::statsd::stats_write(metrics::statsd::ODREFRESH_REPORTED, in UploadStatsIfAvailable()
|
D | odrefresh.h | 172 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,
|
D | odr_metrics.cc | 167 void OdrMetrics::WriteToFile(const std::string& path, const OdrMetrics* metrics) { in WriteToFile() argument 168 OdrMetricsRecord record = metrics->ToRecord(); in WriteToFile()
|
D | odr_metrics.h | 146 static void WriteToFile(const std::string& path, const OdrMetrics* metrics);
|
/art/runtime/gc/collector/ |
D | garbage_collector.h | 165 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 …]
|
D | garbage_collector.cc | 236 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()
|
D | concurrent_copying.cc | 156 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/ |
D | Android.bp | 3 // 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"],
|
D | info.txt | 1 Tests metrics background reporting thread
|
/art/test/2232-write-metrics-to-log/ |
D | Android.bp | 3 // 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"],
|
D | info.txt | 1 Checks that metrics can be written to logcat.
|
/art/libartbase/base/metrics/ |
D | metrics_test.cc | 28 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 …]
|
D | README.md | 3 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
|
D | metrics_common.cc | 29 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()
|
D | metrics_test.h | 26 namespace metrics {
|
/art/runtime/metrics/ |
D | statsd.h | 25 namespace metrics {
|
D | reporter_test.cc | 28 namespace metrics { namespace 123 session_data_ = metrics::SessionData::CreateDefault(); in SetupReporter() 202 metrics::SessionData session_data_;
|
D | reporter.cc | 35 namespace metrics { namespace 203 ArtMetrics* metrics = GetMetrics(); in ReportMetrics() local 212 metrics->ReportAllMetricsAndResetValueMetrics(MakeNonOwningPointerVector(backends_)); in ReportMetrics()
|
D | reporter.h | 29 namespace metrics {
|
/art/runtime/verifier/ |
D | method_verifier_test.cc | 36 using metrics::test::CounterValue;
|