The Poker Copilot Blog

Tracking the development of Poker Copilot, Mac OS X software for poker analysis and statistics.

Friday, 3 July 2009

Profiling Java Programs on the Mac

Java 6 on the Mac finally gives us the goodness of Sun's VisualVM. This all-in-one Java profiler attaches to a running Java program. It shows threads and memory usage. That's somewhat helpful.

But overwhelmingly awesome is the ability to profile CPU usage and memory usage of any running Java program. Which objects are created the most? Which objects are hogging memory? Which methods are called the most and consume the most processing time?

To run VisualVM on your Intel-based Mac OS X, from Terminal type "jvisualvm".

I profiled Poker Copilot 2.0 and found way too much time was spent rendering the colourful "Mucked Hands Viewer". I gave it some rendering smarts and now it barely registers on the "time used" chart.

I identified other surprising time-eaters in Poker Copilot which I'll be dealing with in the days ahead.

3 comments:

Anonymous said...
This comment has been removed by a blog administrator.
KeithX said...

Sounds good, didn't realize this tool was available. I'll be sure to run it when I start testing your next V2 build.

Steve McLeod said...

@KeithX,

Running VisualVM on your computer with Poker Copilot won't do a whole lot of good.

What I neglected to say: to use VisualVM fully, you need to be running your Java program with Java 6. When I distribute Poker Copilot, it runs on Java 5, for the sake of PPC-based Macs. :-(

 

Poker Copilot

Free 30 Day Trial

Only $69

Order risk free with our 30-day money back guarantee.

  • Poker tracking software for Mac OS X
  • Supports PokerStars, Winamax, Merge Network, Ongame Network
  • Analyses your opponents while you play
  • On-table HUD for Mac
  • Easy to use, easy to understand

Watch a demo of the major features of Poker Copilot