Move dex2oat profiles from inline to template (#6621)

This change moves the dex2oat profiles for Android Java and Kotlin from
the inline comments (included as part of the default code example) to
being included as a separate file. Templates have been added for this.
This commit is contained in:
kevinjeon-g
2024-06-24 22:33:31 -04:00
committed by GitHub
parent 955eeab865
commit 99617a29b2
17 changed files with 17 additions and 44 deletions

View File

@@ -1,16 +1,10 @@
// Type your code here, or load an example.
//
// (For advanced use only) Click "Templates > Android Java IDE" for
// profile-guided compilation.
class Square {
static int square(int num) {
return num * num;
}
}
// Set `enabled` to `true` to enable profile-guided compilation for dex2oat.
// For the profile format, see
// https://developer.android.com/topic/performance/baselineprofiles/manually-create-measure#define-rules-manually
// (For advanced use only!)
/* ---------- begin profile (enabled=false) ----------
HSPLSquare;-><init>()V
HSPLSquare;->square(I)I
LSquare;
---------- end profile ---------- */