Fog Creek Software
Discussion Board




is a profiler included in the JDK?

does anybody know if it is?

anon
Thursday, July 03, 2003

yes.  It is not as good as a commercial profiler.  Search for "Xrunhprof site:java.sun.com" using google.  Jack Shiraz book (http://www.amazon.com/exec/obidos/tg/detail/-/0596003773/qid=1057248137/sr=8-1/ref=sr_8_1/002-0714324-8269612?v=glance&s=books&n=507846)  also has a good explanation. 

Jonathan Hager
Thursday, July 03, 2003

Offtopic, but I'd suggest you to use JProfiler. It's an excellent tool and you can get evaluation keys every 10 days for free.

Evgeny Goldin
Thursday, July 03, 2003

Its a JVM option java -EProf, java -hprof etc ... had a hell of a time using it, but yes it has one

Daniel Shchyokin
Thursday, July 03, 2003

It's been a "-X" option in every version of the JDK I've seen.  Which means that it's not "official".  Invoke with java -Xrunhprof:cpu=samples,depth=4.  I've had great success using it, but I can't compare it to the other products mentioned.  However, it's free and you alread have it.

Brian
Thursday, July 03, 2003

*  Recent Topics

*  Fog Creek Home