< prev index next >

test/hotspot/jtreg/gc/testlibrary/PerfCounter.java

Print this page

        

*** 39,48 **** --- 39,57 ---- this.monitor = monitor; this.name = name; } /** + * Returns the value of this performance counter as an Object. + * + * @return The value of this performance counter + */ + public Object value() { + return monitor.getValue(); + } + + /** * Returns the value of this performance counter as a long. * * @return The long value of this performance counter * @throws RuntimeException If the value of the performance counter isn't a long */
< prev index next >