Monday, January 16, 2012

Extend Btrace

If you would like to build you own methods in Btrace, you would prefer to checking out Btrace source code with Netbeans6.9plus and Mercurial, for detail steps, please refer to:
http://netbeans.org/kb/docs/ide/mercurial.html
the Repository URL: https://hg.kenai.com/hg/btrace~hg

Basically, I have added several methods to help monitoring the JVM Performance, for example:
  • currentProcessCpuTime
  • currentProcessCpuUsage
  • getTotalCollectionCount
  • getGCThroughput
  • getMinorGCDetailInfo
  • getFullGCDetailInfo
  • jstackAllFile(dump all thread stack trace to local file)

You can take a look at the source code i extend from my github, and extend yours if you like:
https://github.com/joychester/btrace_Ext

No comments:

Post a Comment