Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (843)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Game Profiling  (Read 3635 times)
0 Members and 1 Guest are viewing this topic.
Offline trycoon

Senior Newbie

Java games rock!

« Posted 2005-05-25 19:34:46 »


What tools do you use for profiling your games??
Beside simple System.out.println() and System.currentMillis() are there any good programs you could recommend? Maybe one that could give statistics about different classes and methods CPU-usage.

Offline Riven

« JGO Overlord »

Medals: 1340
Projects: 4
Exp: 16 years

Hand over your head.

« Reply #1 - Posted 2005-05-25 20:13:49 »

If you can live with a pretty basic report, add "-Xprof" to the vm-args and once a thread ends, it will print out numerous types of information about the most called methods.

Note that some methods might seem to be missing, but that's probably because they have been inlined into other methods.

If you want fancier profiler statistics, google for OptimizeIt or just "java profiler".

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline Breakfast

Senior Devvie

for great justice!

« Reply #2 - Posted 2005-05-30 19:07:22 »

Not pure profiling but I'm a recent convert  to unit testing (I've known I should do it for years but only just got around to actually doing it) and that can certainly yield benefits to many aspects of development, especially in the early stages. It can give you a very good idea of how long different methods and parts of code are taking to run which can really help identify bottlenecks. I know netbeans comes packed with JUnit and I expect Eclipse does too.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline blahblahblahh

JGO Coder

Medals: 1

« Reply #3 - Posted 2005-05-30 19:24:21 »

Does that mean next you'll be coming over to UML too? Grin

malloc will be first against the wall when the revolution comes...
Offline Breakfast

Senior Devvie

for great justice!

« Reply #4 - Posted 2005-06-03 08:51:28 »

UML? I  laugh in the face of UML...
Offline Bombadil

Senior Devvie

« Reply #5 - Posted 2005-06-03 09:13:12 »

For a simple start, mainly concerning memory consumption, threads, etc, you could use the jconsole tool which comes with your J2SE (1.5+I think):
Basically you start your app with the switch, and in another shell start the jconsole Java app to connect to your app: that's all.

In case you need a full blown profiler and are using the free Netbeans IDE, don't miss to check out the amazing profiler for it (also freely available):
(It's going to still take a few weeks however in order to be usuable with the standard Java 1.5, in contrast to already using Java Mustang beta, the next J2SE release, or an older JDK. See site for more info on this.)
Offline Funkapotamus

Junior Devvie

wo shuo han yu

« Reply #6 - Posted 2005-06-14 18:08:09 »

I use Eclipse with this plugin:

It works great.
Offline sillysoft

Junior Devvie

Projects: 1


« Reply #7 - Posted 2005-06-14 20:52:58 »

I've used JProfiler and it helped me out quite a bit. It has a 30 day free demo period.

Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Reply #8 - Posted 2005-06-15 11:22:11 »

If your project is open-sources, I suggest trying out ( profiler. It integrates very nicely in both eclipse and netbeans. Accurate and gives back pretty much what you need. Its free if the project is opensourced.

if your projectisnt opensource, will cost you around $500.


Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline Jeff

JGO Coder

Got any cats?

« Reply #9 - Posted 2005-08-04 03:03:45 »

Netbeans 4.1 has a wonderful free profiler now..

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!
Pages: [1]
  ignore  |  Print  

EgonOlsen (37 views)
2018-06-10 19:43:48

EgonOlsen (20 views)
2018-06-10 19:43:44

EgonOlsen (39 views)
2018-06-10 19:43:20

DesertCoockie (186 views)
2018-05-13 18:23:11

nelsongames (122 views)
2018-04-24 18:15:36

nelsongames (121 views)
2018-04-24 18:14:32

ivj94 (861 views)
2018-03-24 14:47:39

ivj94 (122 views)
2018-03-24 14:46:31

ivj94 (758 views)
2018-03-24 14:43:53

Solater (139 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!