mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 12:54:00 -05:00
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:
@@ -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 ---------- */
|
||||
|
||||
Reference in New Issue
Block a user