Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CPU profiling



I'm curious what Mac OS X users are finding most useful for profiling their applications. Right now I'm mainly interested in CPU profiling because I trying to understand why JEditorPane is so darned slow on Mac in displaying HTML.

I have experimented running with -Xrunhprof:cpu=samples and -Xrunhprof:cpu=times. When doing the later, I get a continual stream of

    HPROF ERROR: method on stack top != method exiting..

printed on the console. Not sure why. This makes the app run so slow that I can't even get to anything interesting.

If I use the cpu=samples, I get some (seemingly) valid output, but can't make much of it. I have tried viewing the output in HPjmeter but this hasn't been too enlightening.

At another company I used to work for I used JProbe to look at this stuff. I can't afford this right now. Are there other alternatives?

As an aside, I have narrowed down most of the time with HTML display to validating the layout (basically laying out the text). I suspect the time sink is in getting Font information, since the delay seems proportional to how many fonts are used in the HTML.
--
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.