On disco LGTM:
gromero@gromero33:~$ lsb_release -a |& fgrep Codename Codename: disco gromero@gromero33:~$ uname -a Linux gromero33 5.0.0-18-generic #19-Ubuntu SMP Wed Jun 12 18:19:22 UTC 2019 ppc64le ppc64le ppc64le GNU/Linux gromero@gromero33:~$ java -version openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu219.04.1) OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu219.04.1, mixed mode) gromero@gromero33:~$ sudo apt-get install -y linux-tools-$(uname -r)/disco-proposed gromero@gromero33:~$ cat << EOF > hello.java > class hello { > static void printX() { > System.out.printf("X"); > } > > public static void main(String[] args) { > int i; > for (i=0; i < 64000; i++) > printX(); > } > } > EOF gromero@gromero33:~$ javac hello.java gromero@gromero33:~$ sudo perf record -k 1 -e instructions:u java -agentpath:/usr/lib/linux-tools-5.0.0-18/libperf-jvmti.so hello > /dev/null java: jvmti: jitdump in /home/gromero/.debug/jit/java-jit-20190620.XXxYAYpv/jit-4062.dump [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.168 MB perf.data (4076 samples) ] gromero@gromero33:~$ sudo perf inject -i ./perf.data -j -o ./perf.data.jitted gromero@gromero33:~$ sudo perf report -f -i ./perf.data.jitted |& fgrep printX 0.40% java jitted-4062-606.so [.] class hello.printX() 0.05% java jitted-4062-535.so [.] class hello.printX()
On disco LGTM:
gromero@ gromero33: ~$ lsb_release -a |& fgrep Codename gromero33: ~$ uname -a gromero33: ~$ java -version 7-Ubuntu- 1ubuntu219. 04.1) 7-Ubuntu- 1ubuntu219. 04.1, mixed mode) gromero33: ~$ sudo apt-get install -y linux-tools-$(uname -r)/disco-proposed gromero33: ~$ cat << EOF > hello.java out.printf( "X"); gromero33: ~$ javac hello.java gromero33: ~$ sudo perf record -k 1 -e instructions:u java -agentpath: /usr/lib/ linux-tools- 5.0.0-18/ libperf- jvmti.so hello > /dev/null .debug/ jit/java- jit-20190620. XXxYAYpv/ jit-4062. dump gromero33: ~$ sudo perf inject -i ./perf.data -j -o ./perf.data.jitted gromero33: ~$ sudo perf report -f -i ./perf.data.jitted |& fgrep printX
Codename: disco
gromero@
Linux gromero33 5.0.0-18-generic #19-Ubuntu SMP Wed Jun 12 18:19:22 UTC 2019 ppc64le ppc64le ppc64le GNU/Linux
gromero@
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+
OpenJDK 64-Bit Server VM (build 11.0.3+
gromero@
gromero@
> class hello {
> static void printX() {
> System.
> }
>
> public static void main(String[] args) {
> int i;
> for (i=0; i < 64000; i++)
> printX();
> }
> }
> EOF
gromero@
gromero@
java: jvmti: jitdump in /home/gromero/
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.168 MB perf.data (4076 samples) ]
gromero@
gromero@
0.40% java jitted-4062-606.so [.] class hello.printX()
0.05% java jitted-4062-535.so [.] class hello.printX()