CountCompiledCalls


非常有用,大概长这样

Histogram Over Method Invocation Counters (cutoff = 100):

____Count_(I+C)____Method________________________Module_________________
static jdk.internal.org.objectweb.asm.Frame::merge(Ljdk/internal/org/objectweb/asm/SymbolTable;I[II)Z
  interpreter_invocation_count:      130053
  invocation_counter:                130053
  backedge_counter:                       0
  decompile_count:                        2
  compiled_invocation_count:         140114
java.lang.String::charAt(I)C
  interpreter_invocation_count:      128425
  invocation_counter:                128425
  backedge_counter:                       0
  decompile_count:                        1
  compiled_invocation_count:          92917
java.lang.Object::()V
  interpreter_invocation_count:      172834
  invocation_counter:                172834
  backedge_counter:                       0
  decompile_count:                        2
  compiled_invocation_count:          42821
java.lang.String::isLatin1()Z
  interpreter_invocation_count:      149989
  invocation_counter:                149989
  backedge_counter:                       0
  decompile_count:                        1
  compiled_invocation_count:           2538
 ........
   compiled_invocation_count:              0

Invocations summary for 5852 methods:
	     5642814 (100%)  total
	     4344381 (77.0%) |- interpreted
	     1298433 (23.0%) |- compiled
	     2245855 (39.8%) |- special methods (interpreted and compiled)
	      180710 ( 3.2%)    |- synchronized
	      534792 ( 9.5%)    |- final
	     1477526 (26.2%)    |- static
	       16522 ( 0.3%)    |- native
	       36305 ( 0.6%)    |- accessor

Calls from compiled code:
	        2681 (100%)  total non-inlined   
	        2256 (84.1%) |- virtual calls       
	      862271 (38221%) |  |- inlined          
	           0 (   0%) |  |- optimized        
	     -239611 (-10621%) |  |- monomorphic      
	      241867 (10721%) |  |- megamorphic      
	           0 ( 0.0%) |- interface calls     
	      159683 (15968300%) |  |- inlined          
	           0 (   0%) |  |- optimized        
	           0 (   0%) |  |- monomorphic      
	           0 (   0%) |  |- megamorphic      
	         425 (15.9%) |- static/special calls
	      760136 (178856%) |  |- inlined          

Note 1: counter updates are not MT-safe.
Note 2: % in major categories are relative to total non-inlined calls;
        % in nested categories are relative to their category
        (and thus add up to more than 100% with inlining)


Histogram of call arity (incl. rcvr, calls to compiled methods only):
   0:        10441 (  0.3%)
   1:      1679932 ( 41.7%)
   2:      1628808 ( 40.4%)
   3:       100806 (  2.5%)
   4:       582562 ( 14.5%)
   5:        12904 (  0.3%)
   6:          425 (  0.0%)
   7:        15468 (  0.4%)
   8:            0 (  0.0%)
   9:            0 (  0.0%)
rest:            0 (  0.0%)
(avg. arity = 1.9, max = 12)
(total # of compiled calls =        4031346)
(max # of compiled calls   =         140114)

Histogram of parameter block size (in words, incl. rcvr):
   0:        10441 (  0.3%)
   1:      1678757 ( 41.6%)
   2:      1629541 ( 40.4%)
   3:       101248 (  2.5%)
   4:       582562 ( 14.5%)
   5:        12904 (  0.3%)
   6:          425 (  0.0%)
   7:            0 (  0.0%)
   8:        15468 (  0.4%)
   9:            0 (  0.0%)
rest:            0 (  0.0%)
(avg. size = 1.9, max = 12)
(total # of compiled calls =        4031346)
(max # of compiled calls   =         140114)