// Generate an oat file for the purposes of test. // The oat file will be generated for dex_location in the given oat_location // with the following configuration: // filter - controls the compilation filter // with_alternate_image - if true, the oat file will be generated with an // image checksum different than the current image checksum. void GenerateOatForTest(const std::string& dex_location, const std::string& oat_location,
CompilerFilter::Filter filter, bool with_alternate_image, constchar* compilation_reason = nullptr, const std::vector<std::string>& extra_args = {});
// Generate an odex file for the purposes of test. void GenerateOdexForTest(const std::string& dex_location, const std::string& odex_location,
CompilerFilter::Filter filter, constchar* compilation_reason = nullptr, const std::vector<std::string>& extra_args = {});
// Generate an oat file for the given dex location in its oat location (under // the dalvik cache). void GenerateOatForTest(constchar* dex_location,
CompilerFilter::Filter filter, bool with_alternate_image);
// Generate a standard oat file in the oat location. void GenerateOatForTest(constchar* dex_location, CompilerFilter::Filter filter);
// Generate sdm and dm files for the purposes of test. // If `include_app_image` is true, generates an app image and includes it in the sdm file. void GenerateSdmDmForTest(const std::string& dex_location, const std::string& sdm_location, const std::string& dm_location,
CompilerFilter::Filter filter, bool include_app_image, constchar* compilation_reason = nullptr, const std::vector<std::string>& extra_args = {});
private: // Reserve memory around where the image will be loaded so other memory // won't conflict when it comes time to load the image. // This can be called with an already loaded image to reserve the space // around it. void ReserveImageSpace();
// Reserve a chunk of memory for the image space in the given range. // Only has effect for chunks with a positive number of bytes. void ReserveImageSpaceChunk(uintptr_t start, uintptr_t end);
// Unreserve any memory reserved by ReserveImageSpace. This should be called // before the image is loaded. void UnreserveImageSpace();
std::vector<MemMap> image_reservation_;
};
} // namespace art
#endif// ART_RUNTIME_DEXOPT_TEST_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-29)
¤
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.