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());
}
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.