diff options
author | 2023-10-27 13:54:49 +0000 | |
---|---|---|
committer | 2023-10-27 18:17:24 +0000 | |
commit | 84d1a7af2ea838f67f09ac121d887092d458fb40 (patch) | |
tree | edfa0c267a1a79a616499b553a0a2dc0e027b2d6 | |
parent | 4f6801ea633f9d94945bcedb8a1db79be6cec10b (diff) |
Turn on "oat" verbose log for artd.
Also, add logging for the disable cdex experiment case.
Bug: 307903002
Change-Id: Ic259d4a2eaafa92fd98c8b99ee8989d3f3ccdc2d
Test: Presubmit
-rw-r--r-- | artd/artd.cc | 3 | ||||
-rw-r--r-- | runtime/oat_file_assistant.cc | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/artd/artd.cc b/artd/artd.cc index c70b2903f7..8284076dec 100644 --- a/artd/artd.cc +++ b/artd/artd.cc @@ -342,7 +342,8 @@ Result<void> CopyFile(const std::string& src_path, const NewFile& dst_file) { } Result<void> SetLogVerbosity() { - std::string options = android::base::GetProperty("dalvik.vm.artd-verbose", /*default_value=*/""); + std::string options = + android::base::GetProperty("dalvik.vm.artd-verbose", /*default_value=*/"oat"); if (options.empty()) { return {}; } diff --git a/runtime/oat_file_assistant.cc b/runtime/oat_file_assistant.cc index bf230a7c61..01a9727326 100644 --- a/runtime/oat_file_assistant.cc +++ b/runtime/oat_file_assistant.cc @@ -296,6 +296,7 @@ int OatFileAssistant::GetDexOptNeeded(CompilerFilter::Filter target_compiler_fil bool downgrade) { OatFileInfo& info = GetBestInfo(); if (info.CheckDisableCompactDexExperiment()) { // TODO(b/256664509): Clean this up. + VLOG(oat) << "Should recompile: disable cdex experiment"; return kDex2OatFromScratch; } DexOptNeeded dexopt_needed = info.GetDexOptNeeded( |