diff options
author | Mathieu Chartier <mathieuc@google.com> | 2017-06-15 20:21:23 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-06-15 20:21:24 +0000 |
commit | a5dcdf346158d47bfe80d8adb29b1b020cede286 (patch) | |
tree | 50e56b3445dc8e4724d6707ffecd23f9dae96e31 /compiler/driver/compiler_driver_test.cc | |
parent | 942c597b004aa328cf291a78392b405ef5d5f040 (diff) | |
parent | bbe3a5efcdfb2fb15a4e5f724cc323ae0ada5111 (diff) |
Merge "Refactor some profiling info functions"
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
-rw-r--r-- | compiler/driver/compiler_driver_test.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc index 1329fddc79..b4ad325822 100644 --- a/compiler/driver/compiler_driver_test.cc +++ b/compiler/driver/compiler_driver_test.cc @@ -236,14 +236,10 @@ class CompilerDriverProfileTest : public CompilerDriverTest { ProfileCompilationInfo info; for (const std::unique_ptr<const DexFile>& dex_file : dex_files) { - profile_info_.AddMethodIndex(dex_file->GetLocation(), - dex_file->GetLocationChecksum(), - 1, - dex_file->NumMethodIds()); - profile_info_.AddMethodIndex(dex_file->GetLocation(), - dex_file->GetLocationChecksum(), - 2, - dex_file->NumMethodIds()); + profile_info_.AddMethodIndex(ProfileCompilationInfo::MethodHotness::kFlagHot, + MethodReference(dex_file.get(), 1)); + profile_info_.AddMethodIndex(ProfileCompilationInfo::MethodHotness::kFlagHot, + MethodReference(dex_file.get(), 2)); } return &profile_info_; } |