comparison graal/com.oracle.graal.debug/src/com/oracle/graal/debug/DebugMetric.java @ 21003:a7f216accfb5

Add DebugMetric.isEnabled().
author Josef Eisl <josef.eisl@jku.at>
date Fri, 17 Apr 2015 11:52:31 +0200
parents c125485642e2
children
comparison
equal deleted inserted replaced
21002:95931055060f 21003:a7f216accfb5
53 53
54 /** 54 /**
55 * Gets the current value of this metric. 55 * Gets the current value of this metric.
56 */ 56 */
57 long getCurrentValue(); 57 long getCurrentValue();
58
59 /**
60 * Determines if this counter is enabled (either conditionally or unconditionally).
61 */
62 default boolean isEnabled() {
63 return !isConditional() || Debug.isMeterEnabled();
64 }
58 } 65 }