Lines Matching refs:Hotness
34 using Hotness = ProfileCompilationInfo::MethodHotness; typedef
43 WhichPowerOf2(static_cast<uint32_t>(Hotness::kFlagLastBoot));
45 WhichPowerOf2(static_cast<uint32_t>(Hotness::kFlagLastRegular));
75 Hotness::Flag flags = Hotness::kFlagHot, in AddMethod()
89 Hotness::kFlagHot, in AddMethod()
244 static_cast<Hotness::Flag>(1 << flag_index))); in SizeStressTest()
253 static_cast<Hotness::Flag>(1 << flag_index))); in SizeStressTest()
772 AddMethod(&test_info, dex1, 1, Hotness::kFlagStartup); in TEST_F()
773 AddMethod(&test_info, dex1, 5, Hotness::kFlagPostStartup); in TEST_F()
774 AddMethod(&test_info, dex2, 2, Hotness::kFlagStartup); in TEST_F()
775 AddMethod(&test_info, dex2, 4, Hotness::kFlagPostStartup); in TEST_F()
803 AddMethod(&merge_info, dex1, 11, Hotness::kFlagStartup); in TEST_F()
816 info.AddMethodsForDex(static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagStartup), in TEST_F()
820 info.AddMethodsForDex(Hotness::kFlagStartup, in TEST_F()
824 info.AddMethodsForDex(Hotness::kFlagPostStartup, in TEST_F()
1242 AddMethod(&info, dex1, index, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1249 .HasFlagSet(static_cast<Hotness::Flag>(1 << index))) << index << " " in TEST_F()
1272 AddMethod(&info, dex1, 0, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1279 .HasFlagSet(static_cast<Hotness::Flag>(1 << index))); in TEST_F()
1303 AddMethod(&info1, dex1, 0, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1304 AddMethod(&info2, dex1, 1, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1311 AddMethod(&info2, dex1, 1, static_cast<Hotness::Flag>(1 << index)); in TEST_F()
1321 .HasFlagSet(static_cast<Hotness::Flag>(1 << index))); in TEST_F()
1325 .HasFlagSet(static_cast<Hotness::Flag>(1 << index))); in TEST_F()
1334 .HasFlagSet(static_cast<Hotness::Flag>(1 << index))); in TEST_F()
1338 .HasFlagSet(static_cast<Hotness::Flag>(1 << index))); in TEST_F()
1346 .HasFlagSet(static_cast<Hotness::Flag>(1 << index))); in TEST_F()
1348 .HasFlagSet(static_cast<Hotness::Flag>(1 << index))); in TEST_F()
1385 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(hot), Hotness::kFlagHot)); in TEST_F()
1388 static_cast<Hotness::Flag>(Hotness::kFlagHot | Hotness::kFlagStartup))); in TEST_F()
1389 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(startup), Hotness::kFlagStartup)); in TEST_F()
1393 EXPECT_EQ(info.GetMethodHotness(hot).GetFlags(), Hotness::kFlagHot); in TEST_F()
1397 static_cast<uint32_t>(Hotness::kFlagHot | Hotness::kFlagStartup)); in TEST_F()
1400 EXPECT_EQ(info.GetMethodHotness(startup).GetFlags(), Hotness::kFlagStartup); in TEST_F()
1413 info.AddMethod(ProfileMethodInfo(hot, inline_caches), Hotness::kFlagHot); in TEST_F()
1414 info.AddMethod(ProfileMethodInfo(startup, inline_caches), Hotness::kFlagStartup); in TEST_F()
1435 ASSERT_FALSE(info.AddMethods(pmis, Hotness::kFlagHot)); in TEST_F()
1446 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1449 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1574 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1578 ASSERT_TRUE(AddMethod(&info2, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1579 ASSERT_TRUE(AddMethod(&info2, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1580 ASSERT_TRUE(AddMethod(&info2, dex2, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1621 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1627 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1628 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagStartup, psa1)); in TEST_F()
1663 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(ref), Hotness::kFlagHot, psa1)); in TEST_F()
1665 ASSERT_FALSE(info.AddMethod(ProfileMethodInfo(ref_checksum_missmatch), Hotness::kFlagHot, psa1)); in TEST_F()
1667 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(ref_checksum_missmatch), Hotness::kFlagHot, psa2)); in TEST_F()
1679 ASSERT_TRUE(info.AddMethod(ProfileMethodInfo(ref), Hotness::kFlagHot, psa1)); in TEST_F()
1694 AddMethod(&info, dex1, /* method_idx= */ 0, Hotness::kFlagHot); in TEST_F()
1704 AddMethod(&info, dex1, /* method_idx= */ 0, Hotness::kFlagHot); in TEST_F()
1728 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1730 ASSERT_TRUE(AddMethod(&info, dex1, /* method_idx= */ i, Hotness::kFlagStartup, psa2)); in TEST_F()
1732 ASSERT_TRUE(AddMethod(&info, dex2, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1734 ASSERT_TRUE(AddMethod(&info, dex3, /* method_idx= */ i, Hotness::kFlagHot, psa2)); in TEST_F()
1760 ASSERT_EQ(mIt1->second.GetFlags(), Hotness::kFlagHot | Hotness::kFlagStartup); in TEST_F()
1770 ASSERT_EQ(mIt2->second.GetFlags(), Hotness::kFlagHot); in TEST_F()
1792 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagHot, psa1)); in TEST_F()
1794 ASSERT_TRUE(AddMethod(&info1, dex1, /* method_idx= */ i, Hotness::kFlagStartup, psa2)); in TEST_F()
1798 Hotness::kFlagHot, in TEST_F()
1826 ASSERT_EQ(mIt1->second.GetFlags(), Hotness::kFlagHot | Hotness::kFlagStartup); in TEST_F()
1837 ASSERT_EQ(mIt2->second.GetFlags(), Hotness::kFlagHot); in TEST_F()