Home
last modified time | relevance | path

Searched refs:CompilationReason (Results 1 – 10 of 10) sorted by relevance

/art/libartbase/base/metrics/
Dmetrics_common.cc55 .compilation_reason = CompilationReason::kUnknown, in CreateDefault()
293 static_assert(CompilationReasonFromName(CompilationReasonName(CompilationReason::kError)) ==
294 CompilationReason::kError);
295 static_assert(CompilationReasonFromName(CompilationReasonName(CompilationReason::kUnknown)) ==
296 CompilationReason::kUnknown);
297 static_assert(CompilationReasonFromName(CompilationReasonName(CompilationReason::kFirstBoot)) ==
298 CompilationReason::kFirstBoot);
299 static_assert(CompilationReasonFromName(CompilationReasonName(CompilationReason::kBootAfterOTA)) ==
300 CompilationReason::kBootAfterOTA);
301 static_assert(CompilationReasonFromName(CompilationReasonName(CompilationReason::kPostBoot)) ==
[all …]
Dmetrics_test.cc410 .compilation_reason = CompilationReason::kInstall, in TEST()
439 .compilation_reason = CompilationReason::kCmdLine, in TEST()
513 .compilation_reason = CompilationReason::kFirstBoot, in TEST()
557 .compilation_reason = CompilationReason::kFirstBoot, in TEST()
700 ASSERT_EQ(CompilationReasonFromName("unknown"), CompilationReason::kUnknown); in TEST()
701 ASSERT_EQ(CompilationReasonFromName("first-boot"), CompilationReason::kFirstBoot); in TEST()
702 ASSERT_EQ(CompilationReasonFromName("boot-after-ota"), CompilationReason::kBootAfterOTA); in TEST()
703 ASSERT_EQ(CompilationReasonFromName("post-boot"), CompilationReason::kPostBoot); in TEST()
704 ASSERT_EQ(CompilationReasonFromName("install"), CompilationReason::kInstall); in TEST()
705 ASSERT_EQ(CompilationReasonFromName("install-fast"), CompilationReason::kInstallFast); in TEST()
[all …]
Dmetrics.h156 enum class CompilationReason { enum
163 case CompilationReason::kind: return kind_name;
165 if (name == (kind_name)) { return CompilationReason::kind; }
167 constexpr const char* CompilationReasonName(CompilationReason reason) { in CompilationReasonName()
173 constexpr CompilationReason CompilationReasonFromName(std::string_view name) { in CompilationReasonFromName()
175 return CompilationReason::kError; in CompilationReasonFromName()
232 CompilationReason compilation_reason;
/art/runtime/metrics/
Dstatsd.cc233 constexpr int32_t EncodeCompilationReason(CompilationReason reason) { in EncodeCompilationReason()
235 case CompilationReason::kUnknown: in EncodeCompilationReason()
237 case CompilationReason::kABOTA: in EncodeCompilationReason()
239 case CompilationReason::kBgDexopt: in EncodeCompilationReason()
241 case CompilationReason::kError: in EncodeCompilationReason()
243 case CompilationReason::kFirstBoot: in EncodeCompilationReason()
245 case CompilationReason::kInactive: in EncodeCompilationReason()
247 case CompilationReason::kInstall: in EncodeCompilationReason()
249 case CompilationReason::kInstallWithDexMetadata: in EncodeCompilationReason()
252 case CompilationReason::kShared: in EncodeCompilationReason()
[all …]
Dreporter.h131 void SetCompilationInfo(CompilationReason compilation_reason,
196 CompilationReason compilation_reason;
Dreporter_test.cc171 CompilationReason reason = CompilationReason::kUnknown) { in VerifyReports()
397 CompilationReason::kInstall); in TEST_F()
Dreporter.cc110 void MetricsReporter::SetCompilationInfo(CompilationReason compilation_reason, in SetCompilationInfo()
/art/dex2oat/
Ddex2oat_options.def97 DEX2OAT_OPTIONS_KEY (std::string, CompilationReason)
Ddex2oat_options.cc437 .IntoKey(M::CompilationReason) in CreateDex2oatArgumentParser()
Ddex2oat.cc1110 AssignIfExists(args, M::CompilationReason, &compilation_reason_); in ParseArgs()