comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java @ 4551:a7a16015e47f

changed profiling maturity so that profiling information is used more likely
author Christian Haeubl <christian.haeubl@oracle.com>
date Thu, 09 Feb 2012 13:26:51 -0800
parents a0cca63cd366
children dad1ac9dba7d
comparison
equal deleted inserted replaced
4546:df329f268a05 4551:a7a16015e47f
22 */ 22 */
23 package com.oracle.max.cri.ri; 23 package com.oracle.max.cri.ri;
24 24
25 25
26 /** 26 /**
27 * Represents profiling information for one specific method. 27 * Provides access to the profiling information of one specific method.
28 * Every accessor method returns the information that is available at the time of its invocation. 28 * Every accessor method returns the information that is available at the time of invocation.
29 * If a method is invoked multiple times, it may return a significantly different results for every invocation. 29 * If a method is invoked multiple times, it may return significantly different results for every invocation
30 * as the profiling information may be changed by other Java threads at any time.
30 */ 31 */
31 public interface RiProfilingInfo { 32 public interface RiProfilingInfo {
32 /** 33 /**
33 * Returns an estimate of how often the branch at the given byte code was taken. 34 * Returns an estimate of how often the branch at the given byte code was taken.
34 * @return The estimated probability, with 0.0 meaning never and 1.0 meaning always, or -1 if this information is not available. 35 * @return The estimated probability, with 0.0 meaning never and 1.0 meaning always, or -1 if this information is not available.