< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core/src/org/graalvm/compiler/core/CompilationPrinter.java

Print this page
rev 56282 : [mq]: graal

*** 1,7 **** /* ! * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 97,114 **** * printed to {@link TTY}. */ public void finish(CompilationResult result) { if (id != null) { final long stop = System.nanoTime(); ! final long duration = (stop - start) / 1000000; final int targetCodeSize = result != null ? result.getTargetCodeSize() : -1; final int bytecodeSize = result != null ? result.getBytecodeSize() : 0; if (allocatedBytesBefore == -1) { ! TTY.println(getMethodDescription() + String.format(" | %4dms %5dB %5dB", duration, bytecodeSize, targetCodeSize)); } else { final long allocatedBytesAfter = getCurrentThreadAllocatedBytes(); final long allocatedKBytes = (allocatedBytesAfter - allocatedBytesBefore) / 1024; ! TTY.println(getMethodDescription() + String.format(" | %4dms %5dB %5dB %5dkB", duration, bytecodeSize, targetCodeSize, allocatedKBytes)); } } } } --- 97,114 ---- * printed to {@link TTY}. */ public void finish(CompilationResult result) { if (id != null) { final long stop = System.nanoTime(); ! final long duration = (stop - start) / 1000; final int targetCodeSize = result != null ? result.getTargetCodeSize() : -1; final int bytecodeSize = result != null ? result.getBytecodeSize() : 0; if (allocatedBytesBefore == -1) { ! TTY.println(getMethodDescription() + String.format(" | %4dus %5dB bytecodes %5dB codesize", duration, bytecodeSize, targetCodeSize)); } else { final long allocatedBytesAfter = getCurrentThreadAllocatedBytes(); final long allocatedKBytes = (allocatedBytesAfter - allocatedBytesBefore) / 1024; ! TTY.println(getMethodDescription() + String.format(" | %4dus %5dB bytecodes %5dB codesize %5dkB allocated", duration, bytecodeSize, targetCodeSize, allocatedKBytes)); } } } }
< prev index next >