Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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 2620 times)
0 Members and 1 Guest are viewing this topic.
Offline trycoon

Senior Newbie




Java games rock!


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

Hi!

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.

Thanks.
Online Riven
« League of Dukes »

JGO Overlord


Medals: 802
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 Member




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


http://t-machine.org


« 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 Member




for great justice!


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

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

Senior Member





« 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): http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html
Basically you start your app with the -Dcom.sun.management.jmxremote 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): http://profiler.netbeans.org/
(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 Member




wo shuo han yu


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

I use Eclipse with this plugin: http://eclipsecolorer.sourceforge.net/index_profiler.html

It works great.
Offline sillysoft

Junior Member


Projects: 1


Waaaaaaaaaaaah!


« 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 Member




Go Go Gadget Arms


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

If your project is open-sources, I suggest trying out yourkit.com (http://www.yourkit.com) 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, yourkit.com will cost you around $500.

DP

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..

profiler.netbeans.com

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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (45 views)
2014-09-23 14:38:19

radar3301 (28 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (33 views)
2014-09-21 01:30:30

moogie (41 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!