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.
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
Subscribe to:
Post Comments (Atom)
Poker Copilot Translation Project
Want to use Poker Copilot in your language? Then help with the Poker Copilot Translation Project.
Blog Archive
-
▼
2009
(337)
-
▼
July
(41)
- New Full Tilt Client is Impressive
- Bad BBC News Stats Again
- Breaking news: Something may or may not happen
- Poker Copilot 2 Screenshots
- Poker Copilot 2.01 Released
- A Glimpse Inside Poker Copilot Headquarters
- Some Nice Poker Copilot 2 Charts
- Teething Problems
- A Million Hands in Poker Copilot?
- What's New in Poker Copilot 2?
- Poker Copilot 2: All Systems are Go
- Interview with PokerSoftware.com
- Poker Copilot 2: The Final Beta?
- Sentence of the Day
- Where's Poker Copilot 2?
- Naiveté
- Race on a US Birth Certificate
- Java and Synchronisation Bugs
- Poker Copilot Upgrades: Free for Some
- Poker Copilot 2 Beta Released
- Java and IOException handling
- Stack Overflow: A Knowledge Management tool that d...
- Paragraph of the Day
- A Twitter Security Breach and Frustrating Password...
- Custom Poker Copilot Icons
- Easy Way to Improve Code Coverage
- It's Official: Full Tilt Poker Approves of Poker C...
- The Power of Crowdsourcing
- Poker Copilot 2 Early Access Program Update
- Why Poker Copilot Doesn't Use MySQL...
- Poker Copilot World Domination Continues
- Compliment
- Poker Copilot + Full Tilt are Friends Again
- Poker Copilot Update 1.80 Released
- Full Tilt Update. Broken Poker Copilot. Sigh.
- A Brief History of Poker Tracking Software
- The Five-Year Gmail Beta Program
- EAP: Where's the Poker Copilot HUD Console?
- Poker Copilot 2 Early Access Program Update
- Profiling Java Programs on the Mac
- Poker Copilot 1.77: Supporting PokerStars 5xVPP Ta...
-
▼
July
(41)


3 comments:
Sounds good, didn't realize this tool was available. I'll be sure to run it when I start testing your next V2 build.
@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. :-(
Post a Comment