harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Estelle Liu" <lyy1...@gmail.com>
Subject Re: [jitrino][profile]trouble of methodprofiles
Date Tue, 27 Feb 2007 11:11:11 GMT
Thank you,Pavel.That helps!

2007/2/27, Pavel Ozhdikhin <pavel.ozhdikhin@gmail.com>:
>
> From the edge profile you can get count of any basic block (CFG node) or
> any
> instruction inside this basic block. Edge profile is used in -Xem:server
> mode only. You can get count of any instruction in the optimizer during
> SD2_OPT JIT recompilation stage:
>
>    inst->getNode()->getExecCount()
>
> Is that what you need?
>
> Thanks,
> Pavel
>
> On 2/27/07, Estelle Liu <lyy1105@gmail.com> wrote:
> >
> > Thank you very much for your help!
> > And there's one more question: If I wanna get a counter to keep track of
> > some certain instruction in loop and reuse its result  later, can
> > EdgeMethodProfiler help?
> >
> >
> > 2007/2/27, Naveen Neelakantam <neelakan@uiuc.edu>:
> > >
> > > EBMethodProfile is an Entry and Backedge profile.  I think in
> > > practice it is used by JET and has one counter that keeps track of
> > > the number of times a method has been entered and has one counter
> > > that keeps track of the number of times any backedge has been
> > > executed in a method.  If either counter exceeds a threshold,
> > > recompilation is triggered
> > >
> > > EdgeMethod profile is an edge profiler.  It instruments method entry
> > > and CFG edges to collect the profile (edge_instrument).  If any edge
> > > exceeds a backedge threshold or the entry counter exceeds an entry
> > > threshold, recompilation is triggered.  During recompilation the edge
> > > annotation (edge_annotate) pass can be used to annotate the CFG with
> > > the collected edge profile.  See server.emconf for an example of how
> > > to use edge_instrument and edge_annotate.
> > >
> > > Also, you might want to look here:
> > > http://harmony.apache.org/subcomponents/drlvm/EM.html#PC
> > > http://harmony.apache.org/subcomponents/drlvm/emguide.html
> > >
> > > Hope that helps!
> > >
> > > Naveen
> > >
> > >
> > > On Feb 26, 2007, at 8:42 PM, yuyu liu wrote:
> > >
> > > > Hi, I can't get the differences between EBMethodProfile and
> > > > EdgeMethodProfile.In which occassions and by what means do they
> > > > work?And
> > > > how to start any of them?
> > >
> > >
> >
> >
> > --
> > Estelle
> >
>



-- 
Estelle

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message