is a profiler included in the JDK?
does anybody know if it is?
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.
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.
Its a JVM option java -EProf, java -hprof etc ... had a hell of a time using it, but yes it has one
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.
Fog Creek Home