Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java @ 4448:9e8e92c3ff17
first parts for inlining multiple methods, added Simplifiable to switch nodes, some documentation
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Thu, 26 Jan 2012 22:44:31 -0800 |
parents | 4e3aaf14cbc6 |
children | 5acf4a974e4a |
comparison
equal
deleted
inserted
replaced
4447:00a04b57a046 | 4448:9e8e92c3ff17 |
---|---|
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 * Represents profiling information for one specific method. |
28 * Every accessor method returns the information that is available at the time of its invocation. | |
29 * If a method is invoked multiple times, it may return a significantly different results for every invocation. | |
28 */ | 30 */ |
29 public interface RiProfilingInfo { | 31 public interface RiProfilingInfo { |
30 /** | 32 /** |
31 * Returns an estimate of how often the branch at the given byte code was taken. | 33 * Returns an estimate of how often the branch at the given byte code was taken. |
32 * @return The estimated probability, with 0.0 meaning never and 1.0 meaning always, or -1 if this information is not available. | 34 * @return The estimated probability, with 0.0 meaning never and 1.0 meaning always, or -1 if this information is not available. |
53 * @return true if any of the exceptions was encountered during profiling, false otherwise. | 55 * @return true if any of the exceptions was encountered during profiling, false otherwise. |
54 */ | 56 */ |
55 boolean getImplicitExceptionSeen(int bci); | 57 boolean getImplicitExceptionSeen(int bci); |
56 | 58 |
57 /** | 59 /** |
58 * Returns an estimate how often the current BCI was executed. | 60 * Returns an estimate how often the current BCI was executed. Avoid comparing execution counts to each other, |
61 * as the returned value highly depends on the time of invocation. | |
59 * @return the estimated execution count or -1 if not available. | 62 * @return the estimated execution count or -1 if not available. |
60 */ | 63 */ |
61 int getExecutionCount(int bci); | 64 int getExecutionCount(int bci); |
62 } | 65 } |