Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiResolvedMethod.java @ 4439:f7251c729b31
profiling info first try
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Thu, 19 Jan 2012 16:29:35 -0800 |
parents | aaac4894175c |
children | dc6f6e2f1a00 |
comparison
equal
deleted
inserted
replaced
4288:2bc254976621 | 4439:f7251c729b31 |
---|---|
157 * @return The number of invocations, or -1 if this information isn't available. | 157 * @return The number of invocations, or -1 if this information isn't available. |
158 */ | 158 */ |
159 int invocationCount(); | 159 int invocationCount(); |
160 | 160 |
161 /** | 161 /** |
162 * Returns an estimate of hot often an exception was seen at the given bytecode. | 162 * Returns an object that provides access to the method's profiling information. |
163 * @return The estimate in percent (0-100), with 0 meaning never and 100 meaning always, or -1 if this information isn't available. | 163 * @return The profiling information recorded for this method. |
164 */ | 164 */ |
165 int exceptionProbability(int bci); | 165 RiProfilingInfo profilingInfo(); |
166 | |
167 /** | |
168 * Returns the type profile of the instruction at the given byte code index. | |
169 * @return The RiTypeProfile information, or null if it isn't available. | |
170 */ | |
171 RiTypeProfile typeProfile(int bci); | |
172 | |
173 /** | |
174 * Returns an estimate of how often the branch at the given byte code was taken. | |
175 * @return The estimated probability, with 0.0 meaning never and 1.0 meaning always, or -1 if this information isn't available. | |
176 */ | |
177 double branchProbability(int bci); | |
178 | |
179 /** | |
180 * Returns an estimate of how often the branches of the switch at the given byte code were taken. | |
181 * @return The estimated probability, with 0.0 meaning never and 1.0 meaning always, or NULL if this information isn't available. | |
182 * The default case is specified at the last index. | |
183 */ | |
184 double[] switchProbability(int bci); | |
185 | 166 |
186 /** | 167 /** |
187 * Returns a map that the compiler can use to store objects that should survive the current compilation. | 168 * Returns a map that the compiler can use to store objects that should survive the current compilation. |
188 */ | 169 */ |
189 Map<Object, Object> compilerStorage(); | 170 Map<Object, Object> compilerStorage(); |