From c5dd319c574f67d11a71f1b60ac6c34bfe93b750 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 9 Dec 2015 16:38:30 -0800 Subject: Add and use loaded class profiling Class profiling is a way to keep track of which classes are resolved. From here the compiler can use this information to generate a smaller app image. TODO: Add tests for profile stuff. Bug: 22858531 (cherry picked from commit 8913fc1a27df8cf3b37fd99e94d87f290591328e) Change-Id: Ifcd09230cbdc266305bc1247e0d31e7920eb353e --- compiler/driver/compiler_driver_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/driver/compiler_driver_test.cc') diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc index 478588561f..00375641f3 100644 --- a/compiler/driver/compiler_driver_test.cc +++ b/compiler/driver/compiler_driver_test.cc @@ -250,8 +250,8 @@ class CompilerDriverProfileTest : public CompilerDriverTest { ProfileCompilationInfo info; for (const std::unique_ptr& dex_file : dex_files) { std::string key = ProfileCompilationInfo::GetProfileDexFileKey(dex_file->GetLocation()); - profile_info_.AddData(key, dex_file->GetLocationChecksum(), 1); - profile_info_.AddData(key, dex_file->GetLocationChecksum(), 2); + profile_info_.AddMethodIndex(key, dex_file->GetLocationChecksum(), 1); + profile_info_.AddMethodIndex(key, dex_file->GetLocationChecksum(), 2); } return &profile_info_; } -- cgit v1.2.3-59-g8ed1b