Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.jvmci.meta/src/com/oracle/jvmci/meta/ResolvedJavaMethod.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 |
---|---|
126 StackTraceElement asStackTraceElement(int bci); | 126 StackTraceElement asStackTraceElement(int bci); |
127 | 127 |
128 /** | 128 /** |
129 * Returns an object that provides access to the profiling information recorded for this method. | 129 * Returns an object that provides access to the profiling information recorded for this method. |
130 */ | 130 */ |
131 ProfilingInfo getProfilingInfo(); | 131 default ProfilingInfo getProfilingInfo() { |
132 return getProfilingInfo(true, true); | |
133 } | |
134 | |
135 /** | |
136 * Returns an object that provides access to the profiling information recorded for this method. | |
137 * | |
138 * @param includeNormal if true, | |
139 * {@linkplain ProfilingInfo#getDeoptimizationCount(DeoptimizationReason) | |
140 * deoptimization counts} will include deoptimization that happened during execution | |
141 * of standard non-osr methods. | |
142 * @param includeOSR if true, | |
143 * {@linkplain ProfilingInfo#getDeoptimizationCount(DeoptimizationReason) | |
144 * deoptimization counts} will include deoptimization that happened during execution | |
145 * of on-stack-replacement methods. | |
146 */ | |
147 ProfilingInfo getProfilingInfo(boolean includeNormal, boolean includeOSR); | |
132 | 148 |
133 /** | 149 /** |
134 * Invalidates the profiling information and restarts profiling upon the next invocation. | 150 * Invalidates the profiling information and restarts profiling upon the next invocation. |
135 */ | 151 */ |
136 void reprofile(); | 152 void reprofile(); |