Skip to main content
gamedev.net
🔒 Locked

[java] Java optimizers

Started by sushi-one May 18, 2004 at 8:25 AM 1 replies 350+ views
Original Post
sushi-one
sushi-one
Is there any good optimizing tool for java? I need a tool that check the speed on all my methods so I know where I should optimize.. Hans-Petter
Hans-Petter Harveg
OrangyTang
OrangyTang
The Java VM has a profiler built-in, you just need to launch your app with the right command args to enable it. Full details are in the SDK docs, but you basically need something like:
-Xrunhprof:cpu=samples,file="C:\Profile.txt"

However the output it produces is somewhat difficult to read manually. Grab yourself something like HPJMeter (free, google it) and it''ll produce graphs and such from the output.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.