using Hotness = ProfileCompilationInfo::MethodHotness;
class ProfileSaverTest : public CommonRuntimeTest { public: void SetUpRuntimeOptions(RuntimeOptions *options) override { // Reset the callbacks so that the runtime doesn't think it's for AOT.
callbacks_ = nullptr;
CommonRuntimeTest::SetUpRuntimeOptions(options); // Enable profile saving and the jit.
options->push_back(std::make_pair("-Xjitsaveprofilinginfo", nullptr));
options->push_back(std::make_pair("-Xusejit:true", nullptr));
}
void PostRuntimeCreate() override { // Create a profile saver.
Runtime* runtime = Runtime::Current();
profile_saver_ = new ProfileSaver(
runtime->GetJITOptions()->GetProfileSaverOptions(),
runtime->GetJitCodeCache());
}
TEST_F(ProfileSaverTest, AnnotateSampleFlags) {
Hotness::Flag actual = AnnotateSampleFlags(Hotness::kFlagHot);
ASSERT_EQ(Hotness::kFlagHot, actual);
}
} // namespace art
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.