aboutsummaryrefslogtreecommitdiff
path: root/examples/android-java/default.java
blob: 02f09da35398b5d14e84791ac0456e13cfebfa0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Type your code here, or load an example.
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 ---------- */