Re: [rvm-research] Profile the locks in Java applications with Jikes

Michael Bond <[email protected]>
Newsgroups gmane.comp.java.jikes.rvm.devel
Message-ID <[email protected]>
Hi Junjie,

You can set STATS = true in org.jikesrvm.scheduler.Lock, which will 
collect and report stats such as ThinLock.fastLocks.

Note that ThinLock.inlineLock and ThinLock.inlineUnlock don't increment 
ThinLock.fastLocks, so the count won't be accurate if calls to 
ThinLock.inlineLock and ThinLock.inlineUnlock are inserted, which the 
opt compiler does by default.

Cheers,
Mike

On 02/16/2014 10:05 PM, Junjie Qian wrote:
> Dear all,
>
> I read from some papers that they are able to profile the lock events 
> of multithread applications in JVM.
>
> Is this provided by Jikes too, I mean, is there any options in Jikes 
> provide the information such as how many locks happen during the run?
>
> I know we can get this information with counter implementation in 
> RVMthread, but just want to know is there any convenient ways to get 
> this information.
> Thanks!
> Best
> Junjie
>
>
> ------------------------------------------------------------------------------
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience.  Start now.
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Jikesrvm-researchers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk

_______________________________________________
Jikesrvm-researchers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.