Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotResolvedJavaMethodImpl.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 | 36cf15e3219e |
children | 5b9adb645217 |
comparison
equal
deleted
inserted
replaced
21629:36cf15e3219e | 21630:9cc3571ef51d |
---|---|
408 } | 408 } |
409 | 409 |
410 private static final String TraceMethodDataFilter = System.getProperty("graal.traceMethodDataFilter"); | 410 private static final String TraceMethodDataFilter = System.getProperty("graal.traceMethodDataFilter"); |
411 | 411 |
412 @Override | 412 @Override |
413 public ProfilingInfo getProfilingInfo() { | 413 public ProfilingInfo getProfilingInfo(boolean includeNormal, boolean includeOSR) { |
414 return getProfilingInfo(true, true); | |
415 } | |
416 | |
417 public ProfilingInfo getCompilationProfilingInfo(boolean isOSR) { | |
418 return getProfilingInfo(!isOSR, isOSR); | |
419 } | |
420 | |
421 private ProfilingInfo getProfilingInfo(boolean includeNormal, boolean includeOSR) { | |
422 ProfilingInfo info; | 414 ProfilingInfo info; |
423 | 415 |
424 if (UseProfilingInformation.getValue() && methodData == null) { | 416 if (UseProfilingInformation.getValue() && methodData == null) { |
425 long metaspaceMethodData = unsafe.getAddress(metaspaceMethod + runtime().getConfig().methodDataOffset); | 417 long metaspaceMethodData = unsafe.getAddress(metaspaceMethod + runtime().getConfig().methodDataOffset); |
426 if (metaspaceMethodData != 0) { | 418 if (metaspaceMethodData != 0) { |