Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptions.java @ 13106:bdc836ef885e
made CITimeEach work for Graal even if CITime is not enabled
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 21 Nov 2013 22:45:08 +0100 |
parents | c0b0974dd509 |
children | 0e5c4f9fa9a5 |
comparison
equal
deleted
inserted
replaced
13105:d3fc35a43376 | 13106:bdc836ef885e |
---|---|
217 | 217 |
218 /** | 218 /** |
219 * Called from VM code once all Graal command line options have been processed by | 219 * Called from VM code once all Graal command line options have been processed by |
220 * {@link #setOption(String)}. | 220 * {@link #setOption(String)}. |
221 * | 221 * |
222 * @param ciTime the value of the CITime HotSpot VM option | 222 * @param timeCompilations true if the CITime or CITimeEach HotSpot VM options are set |
223 */ | 223 */ |
224 public static void finalizeOptions(boolean ciTime) { | 224 public static void finalizeOptions(boolean timeCompilations) { |
225 if (ciTime) { | 225 if (timeCompilations) { |
226 unconditionallyEnableTimerOrMetric(InliningUtil.class, "InlinedBytecodes"); | 226 unconditionallyEnableTimerOrMetric(InliningUtil.class, "InlinedBytecodes"); |
227 unconditionallyEnableTimerOrMetric(CompilationTask.class, "CompilationTime"); | 227 unconditionallyEnableTimerOrMetric(CompilationTask.class, "CompilationTime"); |
228 } | 228 } |
229 if (areDebugScopePatternsEnabled()) { | 229 if (areDebugScopePatternsEnabled()) { |
230 assert !Debug.Initialization.isDebugInitialized(); | 230 assert !Debug.Initialization.isDebugInitialized(); |