< prev index next >
src/hotspot/share/runtime/java.cpp
Print this page
*** 363,372 ****
--- 363,379 ----
if (PrintNMTStatistics) {
MemTracker::final_report(tty);
}
ThreadsSMRSupport::log_statistics();
+
+ extern unsigned long followed_by_equals;
+ extern unsigned long not_followed_by_equals;
+ unsigned long total = followed_by_equals + not_followed_by_equals;
+ tty->print_cr("acmp followed by equals: " JLONG_FORMAT " %f", followed_by_equals, ((float)followed_by_equals) / total);
+ tty->print_cr("acmp not followed by equals: " JLONG_FORMAT " %f", not_followed_by_equals, ((float)not_followed_by_equals) / total);
+
}
#else // PRODUCT MODE STATISTICS
void print_statistics() {
*** 410,419 ****
--- 417,432 ----
if (LogTouchedMethods && PrintTouchedMethodsAtExit) {
Method::print_touched_methods(tty);
}
ThreadsSMRSupport::log_statistics();
+
+ extern unsigned long followed_by_equals;
+ extern unsigned long not_followed_by_equals;
+ unsigned long total = followed_by_equals + not_followed_by_equals;
+ tty->print_cr("acmp followed by equals: " JLONG_FORMAT " %f", followed_by_equals, ((float)followed_by_equals) / total);
+ tty->print_cr("acmp not followed by equals: " JLONG_FORMAT " %f", not_followed_by_equals, ((float)not_followed_by_equals) / total);
}
#endif
// Note: before_exit() can be executed only once, if more than one threads
< prev index next >