TEST(MadviseUtilsTest, SelectDexFilesToMadvise_MixedPriorities) { // Dex 0: Low class startup, High method startup // Dex 1: Med class startup, High method startup // Dex 2: High class startup, High method startup // Dex 3: Low class startup, Med method startup // Dex 4: Med class startup, Med method startup // Dex 5: High class startup, Med method startup // Dex 6: Low class startup, Low method startup // Dex 7: Med class startup, Low method startup // Dex 8: High class startup, Low method startup
// 1) Class startup density takes precedence over method startup density. // 2) High startup density takes precedence over medium and low density. // 3) Medium density still qualifies. // High class (2,5,8) -> med class (1,4,7) -> remaining high/med method (0,3)
ASSERT_THAT(selected, ElementsAre(2u, 5u, 8u, 1u, 4u, 7u, 0u, 3u));
}
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.