profile interpreter and JIT
Krystal Mok
rednaxelafx at gmail.com
Thu Aug 23 13:20:18 PDT 2012
The DynamicCodeGenerated event is for ALL dynamically generated code that
are not compiled Java methods.
Its counterpart for compiled Java methods is the CompiledMethodLoad event.
Both event are implemented and functioning in HotSpot VM. Oprofile uses
both of these events for "JIT" support (where the term "JIT" actually
stands for all dynamically generated code).
And, just as Christian asked, what exactly is it that you're trying to
measure?
Just in case: HotSpot VM's implementation of the DynamicCodeGenerated event
takes all of the dynamically generated interpreter code as a whole, under
the name "Interpreter"; it doesn't provide enough detail for you to
differentiate between the bytecode handlers.
- Kris
On Fri, Aug 24, 2012 at 2:55 AM, Xin Tong <xerox.time.tech at gmail.com> wrote:
> this code is not used to register the interpreter routines right now. is
> it ?
>
> Xin
>
>
> On Thu, Aug 23, 2012 at 10:29 AM, Krystal Mo <krystal.mo at oracle.com>
> wrote:
> > Hi Xin,
> >
> > There's a JVMTI event that does the trick: DynamicCodeGenerated
> >
> http://docs.oracle.com/javase/7/docs/platform/jvmti/jvmti.html#DynamicCodeGenerated
> > Use it to do whatever registration needed.
> >
> > - Kris
> >
> >
> > On 2012/8/24 0:21, Xin Tong wrote:
> >>
> >> I want to measure the amount of time spend in the interpreter and the
> >> JIT in hotspot. since the interpreter is dynamically generated when
> >> the VM starts. how can one get that statistics. maybe oprofile can do
> >> that, but does not the interpreter need to register the generated
> >> interpreter routine with the profiler ? is this code in hotspot ?
> >>
> >> Xin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20120824/a23f5e2d/attachment.html
More information about the hotspot-compiler-dev
mailing list