Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompilationTask.java @ 21630:9cc3571ef51d
Add getProfilingInfo(boolean includeNormal, boolean includeOSR) to ResolvedJavaMethod
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Fri, 29 May 2015 14:46:49 +0200 |
parents | 4c146c9367b6 |
children | 77acf6ba2fc0 |
comparison
equal
deleted
inserted
replaced
21629:36cf15e3219e | 21630:9cc3571ef51d |
---|---|
147 return new OptimisticOptimizations(profilingInfo); | 147 return new OptimisticOptimizations(profilingInfo); |
148 } | 148 } |
149 | 149 |
150 protected ProfilingInfo getProfilingInfo() { | 150 protected ProfilingInfo getProfilingInfo() { |
151 boolean osrCompilation = entryBCI != StructuredGraph.INVOCATION_ENTRY_BCI; | 151 boolean osrCompilation = entryBCI != StructuredGraph.INVOCATION_ENTRY_BCI; |
152 return method.getCompilationProfilingInfo(osrCompilation); | 152 return method.getProfilingInfo(!osrCompilation, osrCompilation); |
153 } | 153 } |
154 | 154 |
155 public void runCompilation() { | 155 public void runCompilation() { |
156 HotSpotVMConfig config = backend.getRuntime().getConfig(); | 156 HotSpotVMConfig config = backend.getRuntime().getConfig(); |
157 final long threadId = Thread.currentThread().getId(); | 157 final long threadId = Thread.currentThread().getId(); |