Mercurial > hg > graal-compiler
diff graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java @ 5346:4c3d953f8131
added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 03 May 2012 13:39:45 +0200 |
parents | dad1ac9dba7d |
children | 56860d3f9f39 |
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java Wed May 02 18:23:12 2012 +0200 +++ b/graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java Thu May 03 13:39:45 2012 +0200 @@ -30,6 +30,12 @@ * as the profiling information may be changed by other Java threads at any time. */ public interface RiProfilingInfo { + + /** + * Gets the length of the code associated with this profile. + */ + int codeSize(); + /** * Returns an estimate of how often the branch at the given byte code was taken. * @return The estimated probability, with 0.0 meaning never and 1.0 meaning always, or -1 if this information is not available. @@ -52,8 +58,8 @@ /** * Returns information if the given BCI did ever throw an exception. - * @return @link{RiExceptionSeen.TRUE} if the instruction has thrown an exception at least once, - * @link{RiExceptionSeen.FALSE} if it never threw an exception, and @link{RiExceptionSeen.UNKNOWN} + * @return {@link RiExceptionSeen#TRUE} if the instruction has thrown an exception at least once, + * {@link RiExceptionSeen#FALSE} if it never threw an exception, and {@link RiExceptionSeen#NOT_SUPPORTED} * if this information was not recorded. */ RiExceptionSeen getExceptionSeen(int bci);