Fog Creek Software
Discussion Board

is a profiler included in the JDK?

does anybody know if it is?

Thursday, July 3, 2003

yes.  It is not as good as a commercial profiler.  Search for "Xrunhprof" using google.  Jack Shiraz book (  also has a good explanation. 

Jonathan Hager
Thursday, July 3, 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 3, 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 3, 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.

Thursday, July 3, 2003

*  Recent Topics

*  Fog Creek Home