Moved several messages from LOG to VLOG(compiler).
Test: m test-art-host-gtest
Test: art/test/testrunner/testrunner.py -b --host
Bug: 117329165
Change-Id: I424965c7cc749f51cc5c421eec87ca402ea14e40
diff --git a/dex2oat/linker/image_writer.cc b/dex2oat/linker/image_writer.cc
index 901f478..1e24f46 100644
--- a/dex2oat/linker/image_writer.cc
+++ b/dex2oat/linker/image_writer.cc
@@ -255,7 +255,7 @@
}
// Obtain class count for debugging purposes
- if (kIsDebugBuild && compile_app_image_) {
+ if (VLOG_IS_ON(compiler) && compile_app_image_) {
ScopedObjectAccess soa(self);
size_t app_image_class_count = 0;
@@ -272,7 +272,7 @@
});
}
- LOG(INFO) << "Dex2Oat:AppImage:classCount = " << app_image_class_count;
+ VLOG(compiler) << "Dex2Oat:AppImage:classCount = " << app_image_class_count;
}
if (ClassLinker::kAppImageMayContainStrings && compile_app_image_) {
@@ -316,9 +316,9 @@
CHECK_EQ(image_infos_.back().num_string_references_,
string_reference_offsets_.size());
- LOG(INFO) << "Dex2Oat:AppImage:stringReferences = " << string_reference_offsets_.size();
- LOG(INFO) << "Dex2Oat:AppImage:managedStringReferences = " << managed_string_refs;
- LOG(INFO) << "Dex2Oat:AppImage:nativeStringReferences = " << native_string_refs;
+ VLOG(compiler) << "Dex2Oat:AppImage:stringReferences = " << string_reference_offsets_.size();
+ VLOG(compiler) << "Dex2Oat:AppImage:managedStringReferences = " << managed_string_refs;
+ VLOG(compiler) << "Dex2Oat:AppImage:nativeStringReferences = " << native_string_refs;
}
// This needs to happen after CalculateNewObjectOffsets since it relies on intern_table_bytes_ and
@@ -706,7 +706,7 @@
return false;
}
- if (kIsDebugBuild) {
+ if (VLOG_IS_ON(compiler)) {
size_t separately_written_section_size = bitmap_section.Size() +
image_header->GetImageRelocationsSection().Size() +
sizeof(ImageHeader);
@@ -714,9 +714,9 @@
size_t total_uncompressed_size = raw_image_data.size() + separately_written_section_size,
total_compressed_size = image_data.size() + separately_written_section_size;
- LOG(INFO) << "Dex2Oat:uncompressedImageSize = " << total_uncompressed_size;
+ VLOG(compiler) << "Dex2Oat:uncompressedImageSize = " << total_uncompressed_size;
if (total_uncompressed_size != total_compressed_size) {
- LOG(INFO) << "Dex2Oat:compressedImageSize = " << total_compressed_size;
+ VLOG(compiler) << "Dex2Oat:compressedImageSize = " << total_compressed_size;
}
}