// Default location for storing metrics from odrefresh.
constexpr constchar* kOdrefreshMetricsFile = "/data/misc/odrefresh/odrefresh-metrics.xml";
// Initial OdrefreshMetrics version static constexpr int32_t kOdrefreshMetricsVersion = 4;
// Constant value used in ExecResult when the process was not run at all. // Mirrors EXEC_RESULT_STATUS_NOT_RUN contained in // frameworks/proto_logging/stats/enums/art/common_enums.proto. static constexpr int32_t kExecResultNotRun = 5;
static_assert(kExecResultNotRun > ExecResult::Status::kLast, "`art::odrefresh::kExecResultNotRun` value should not overlap with" " values of enum `art::ExecResult::Status`");
// MetricsRecord is a simpler container for Odrefresh metric values reported to statsd. The order // and types of fields here mirror definition of `OdrefreshReported` in // frameworks/proto_logging/stats/atoms.proto. struct OdrMetricsRecord { struct Dex2OatExecResult {
int32_t status;
int32_t exit_code;
int32_t signal;
// Reads a `MetricsRecord` from an XML file. // Returns an error if the XML document was not found or parsed correctly.
android::base::Result<void> ReadFromFile(const std::string& filename);
// Writes a `MetricsRecord` to an XML file. // Returns an error if the XML document was not saved correctly.
android::base::Result<void> WriteToFile(const std::string& filename) const;
};
} // namespace odrefresh
} // namespace art
#endif// ART_ODREFRESH_ODR_METRICS_RECORD_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.