Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (527)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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  
  java profiler at source level?  (Read 2268 times)
0 Members and 1 Guest are viewing this topic.
Offline moogie

JGO Knight


Medals: 13
Projects: 6
Exp: 10 years


Java games rock!


« Posted 2007-07-28 07:05:55 »

I am wondering whether there exists a java profiler which identifies the hotspots internally inside a method?

I have my first iteration of my next java 4k entry however it is very slow. I want to profile it however since all the game logic is inside the constructor it the standard profilers are  too coarse... i would like to know which line numbers are causing most of the slow downs....
Offline keldon85

Senior Devvie


Medals: 1



« Reply #1 - Posted 2007-07-28 07:34:24 »

Can you rewrite it to profile, then switch back?

Offline Riven
« League of Dukes »

« JGO Overlord »


Medals: 834
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #2 - Posted 2007-07-28 13:03:16 »

Insert a few System.nanoTime()s here and there.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline moogie

JGO Knight


Medals: 13
Projects: 6
Exp: 10 years


Java games rock!


« Reply #3 - Posted 2007-07-28 22:34:25 »

ah, bugger... that is what i thought i would have to do Tongue

thanks anyway!
Offline 2playgames

Junior Devvie





« Reply #4 - Posted 2007-07-28 23:14:09 »

or move bits of code into their own private void doStuff()

Offline keldon85

Senior Devvie


Medals: 1



« Reply #5 - Posted 2007-07-28 23:32:17 »

or move bits of code into their own private void doStuff()
Already suggested about 3 posts above Wink

ah, bugger... that is what i thought i would have to do Tongue

thanks anyway!
Well just be sure not to let System.out.print(s) or ""+"" mess with your timings!

Offline 2playgames

Junior Devvie





« Reply #6 - Posted 2007-07-28 23:53:04 »

Quote
Already suggested about 3 posts above
do you mean:
Quote
Can you rewrite it to profile, then switch back?
?
because that could have meant loads of things, especially for someone who's never used a profiler (like me  Grin)

Offline keldon85

Senior Devvie


Medals: 1



« Reply #7 - Posted 2007-07-29 08:40:36 »

because that could have meant loads of things, especially for someone who's never used a profiler (like me  Grin)
lol, yeah! Smiley

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.

toopeicgaming1999 (73 views)
2014-11-26 15:22:04

toopeicgaming1999 (63 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (27 views)
2014-11-24 19:59:16

trollwarrior1 (40 views)
2014-11-22 12:13:56

xFryIx (78 views)
2014-11-13 12:34:49

digdugdiggy (57 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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