comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java @ 4527:a0cca63cd366

fixed exceptionSeen profiling information
author Christian Haeubl <christian.haeubl@oracle.com>
date Tue, 07 Feb 2012 12:09:11 -0800
parents 5acf4a974e4a
children a7a16015e47f
comparison
equal deleted inserted replaced
4526:0e1f15ec0e94 4527:a0cca63cd366
48 * @return Returns an RiTypeProfile object, or null if not available. 48 * @return Returns an RiTypeProfile object, or null if not available.
49 */ 49 */
50 RiTypeProfile getTypeProfile(int bci); 50 RiTypeProfile getTypeProfile(int bci);
51 51
52 /** 52 /**
53 * Returns true if the instruction at least once an exception was thrown at the given BCI. 53 * Returns information if the given BCI did ever throw an exception.
54 * @return true if an exception was encountered during profiling, false otherwise. 54 * @return @link{RiExceptionSeen.TRUE} if the instruction has thrown an exception at least once,
55 * @link{RiExceptionSeen.FALSE} if it never threw an exception, and @link{RiExceptionSeen.UNKNOWN}
56 * if this information was not recorded.
55 */ 57 */
56 boolean getExceptionSeen(int bci); 58 RiExceptionSeen getExceptionSeen(int bci);
57 59
58 /** 60 /**
59 * Returns an estimate how often the current BCI was executed. Avoid comparing execution counts to each other, 61 * Returns an estimate how often the current BCI was executed. Avoid comparing execution counts to each other,
60 * as the returned value highly depends on the time of invocation. 62 * as the returned value highly depends on the time of invocation.
61 * @return the estimated execution count or -1 if not available. 63 * @return the estimated execution count or -1 if not available.