Obtaining methods executed at least once?
    Andreas Sewe 
    sewe at st.informatik.tu-darmstadt.de
       
    Wed May 16 06:03:30 PDT 2012
    
    
  
Hi Keith,
> Have you considered using a JVMTI agent and catching the method
> entry/return events?  You'd have to do some work in the agent to ignore
> duplicates though.
yes, I did consider using JVMTI. Unfortunately, there's no proper event
for this, and handling all JVMTI_EVENT_METHOD_ENTRYs is very expensive,
even if it is "just" looking up jmethodID's in a map most of the time.
Thus I was thinking about forcing compilation (-XX:-UseInterpreter) and
then using the compilation log. I am unsure, however, if this really
gives me all methods, i.e., if -XX:-UseInterpreter is respected all the
time.
Best wishes,
Andreas
    
    
More information about the hotspot-dev
mailing list