comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiProfilingInfo.java @ 5114:dad1ac9dba7d

finished first implementation of disabling runtime feedback selectively based on deoptimization history
author Christian Haeubl <christian.haeubl@oracle.com>
date Mon, 19 Mar 2012 14:43:15 -0700
parents a7a16015e47f
children 4c3d953f8131
comparison
equal deleted inserted replaced
5113:e6a45067e42c 5114:dad1ac9dba7d
62 * Returns an estimate how often the current BCI was executed. Avoid comparing execution counts to each other, 62 * Returns an estimate how often the current BCI was executed. Avoid comparing execution counts to each other,
63 * as the returned value highly depends on the time of invocation. 63 * as the returned value highly depends on the time of invocation.
64 * @return the estimated execution count or -1 if not available. 64 * @return the estimated execution count or -1 if not available.
65 */ 65 */
66 int getExecutionCount(int bci); 66 int getExecutionCount(int bci);
67
68 /**
69 * Returns how frequently a method was deoptimized for the given deoptimization reason. This only indicates how
70 * often the method did fall back to the interpreter for the execution and does not indicate how often it was recompiled.
71 * @param reason the reason for which the number of deoptimizations should be queried
72 * @return the number of times the compiled method deoptimized for the given reason.
73 */
74 int getDeoptimizationCount(RiDeoptReason reason);
67 } 75 }