src/share/vm/oops/method.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/oops/method.cpp

src/share/vm/oops/method.cpp

Print this page
rev 6132 : 8037970: make PrintMethodData a diagnostic options
Summary: make PrintMethodData a diagnostic options for performance investigation
Reviewed-by:

*** 327,344 **** } else { return invocation_count() > n; } } - #ifndef PRODUCT void Method::print_invocation_count() { if (is_static()) tty->print("static "); if (is_final()) tty->print("final "); if (is_synchronized()) tty->print("synchronized "); if (is_native()) tty->print("native "); ! method_holder()->name()->print_symbol_on(tty); ! tty->print("."); name()->print_symbol_on(tty); signature()->print_symbol_on(tty); if (WizardMode) { // dump the size of the byte codes --- 327,342 ---- } else { return invocation_count() > n; } } void Method::print_invocation_count() { if (is_static()) tty->print("static "); if (is_final()) tty->print("final "); if (is_synchronized()) tty->print("synchronized "); if (is_native()) tty->print("native "); ! tty->print("%s::", method_holder()->external_name()); name()->print_symbol_on(tty); signature()->print_symbol_on(tty); if (WizardMode) { // dump the size of the byte codes
*** 347,362 **** tty->cr(); tty->print_cr (" interpreter_invocation_count: %8d ", interpreter_invocation_count()); tty->print_cr (" invocation_counter: %8d ", invocation_count()); tty->print_cr (" backedge_counter: %8d ", backedge_count()); if (CountCompiledCalls) { tty->print_cr (" compiled_invocation_count: %8d ", compiled_invocation_count()); } - - } #endif // Build a MethodData* object to hold information about this method // collected in the interpreter. void Method::build_interpreter_method_data(methodHandle method, TRAPS) { // Do not profile method if current thread holds the pending list lock, --- 345,360 ---- tty->cr(); tty->print_cr (" interpreter_invocation_count: %8d ", interpreter_invocation_count()); tty->print_cr (" invocation_counter: %8d ", invocation_count()); tty->print_cr (" backedge_counter: %8d ", backedge_count()); + #ifndef PRODUCT if (CountCompiledCalls) { tty->print_cr (" compiled_invocation_count: %8d ", compiled_invocation_count()); } #endif + } // Build a MethodData* object to hold information about this method // collected in the interpreter. void Method::build_interpreter_method_data(methodHandle method, TRAPS) { // Do not profile method if current thread holds the pending list lock,
*** 1441,1454 **** st->print(")"); } #endif // !PRODUCT || INCLUDE_JVMTI - //----------------------------------------------------------------------------------- - // Non-product code - - #ifndef PRODUCT void Method::print_codes_on(outputStream* st) const { print_codes_on(0, code_size(), st); } void Method::print_codes_on(int from, int to, outputStream* st) const { --- 1439,1448 ----
*** 1458,1468 **** BytecodeStream s(mh); s.set_interval(from, to); BytecodeTracer::set_closure(BytecodeTracer::std_closure()); while (s.next() >= 0) BytecodeTracer::trace(mh, s.bcp(), st); } - #endif // not PRODUCT // Simple compression of line number tables. We use a regular compressed stream, except that we compress deltas // between (bci,line) pairs since they are smaller. If (bci delta, line delta) fits in (5-bit unsigned, 3-bit unsigned) // we save it as one byte, otherwise we write a 0xFF escape character and use regular compression. 0x0 is used --- 1452,1461 ----
src/share/vm/oops/method.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File