emzic
|
 |
«
Posted
2006-06-21 19:09:04 » |
|
hello,
i am looking for a profiler, but since there are so many out there and i dont wanna try out every single one, i am asking you guys if you can recommend one.
i mainly want to profile, which objects take up how much memory. secondly i want to profile, which methods take up the most time. thirdly, i am using eclipse, so if it is an eclipse plugin, that would be great, but that is not a must.
thank you very much!
|
|
|
|
Jeff
|
 |
«
Reply #1 - Posted
2006-06-22 05:55:33 » |
|
The best free profiler I knwo of is the one for Netbeans. ( http://www.netbeans.org/products/profiler/) I have tried a few profilers for Eclipse and basically have gotten none of them to work 
|
|
|
|
|
|
Games published by our own members! Check 'em out!
|
|
funsheep
Senior Newbie 
Java games rock!
|
 |
«
Reply #3 - Posted
2006-06-22 23:30:27 » |
|
|
|
|
|
|
pepijnve
Junior Member  
Java games rock!
|
 |
«
Reply #4 - Posted
2006-06-23 09:54:33 » |
|
I use JProfiler. It's a commercial product, but I'm also a commercial developer, so that's not really an issue for me  It integrates nicely into IntelliJ IDEA, meaning running an with the profiler is just a button click away. I believe it also integrates with eclipse and netbeans too.
|
|
|
|
|
Jeff
|
 |
«
Reply #5 - Posted
2006-06-24 23:36:28 » |
|
If your goign commercial, Ive benea long time fan of OptimizeIt. But its not cheap.
|
|
|
|
Amos Wenger
|
 |
«
Reply #6 - Posted
2006-06-25 20:11:46 » |
|
Yourkit provides free license for open-source projects. I haven't used it intensively but you may want to take a look at it : http://www.yourkit.com/
|
"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
|
|
|
emzic
|
 |
«
Reply #7 - Posted
2006-06-27 13:31:49 » |
|
thank you guys!
|
|
|
|
swpalmer
|
 |
«
Reply #8 - Posted
2006-06-28 05:36:23 » |
|
I haven't tried Eclipse profilers.. but I've had a hell of a time getting the NetBeans profiler to work consistently. I've used it a couple times, and then a week or two later wanted to use it again and it refused to properly "connect". It's pretty decent when it works... but it seems to be quite flakey... Not to mention the various bits of voodoo required to set it up if you are using a free-form Ant project. That was on Windows XP, I haven't tried it on Mac.. (on Mac NetBeans has a brutal memory leak and I can't use it for more than a half hour before it swaps to death and I need to restart.)
|
|
|
|
Niwak
|
 |
«
Reply #9 - Posted
2006-07-01 18:21:46 » |
|
I tried TPTP (Eclipse's profiler) but it is really complex to make it works and there is a significant overhead. Now, I use http://profiler4j.sourceforge.net/ which is very nice and intuitive. Note that I have not yet found a profiler that allows me to get good results on the small methods that are called a lot of times (like activate of my state wrapper class, or render of my render command class) ; I also have my integrated profiling functions to narrow and validate profiler4j results. Vincent
|
|
|
|
|
Games published by our own members! Check 'em out!
|
|
erikd
|
 |
«
Reply #10 - Posted
2006-07-11 15:20:34 » |
|
As a related side-question, is -Xprof still broken on 1.6? It seems to work, but I'm not sure the results are correct. For me, -Xprof has always been the easiest and most efficient way to do performance profiling. Until it got broken...
|
|
|
|
Ken Russell
|
 |
«
Reply #11 - Posted
2006-07-11 17:00:55 » |
|
I'm afraid that -Xprof is still as slow on Mustang as it was on 1.5. It works, but slows down the application to the point of unusability. I would ask that you please file a bug about this and vote it up. The group which made this undesirable change in 1.5 has been unwilling to revisit the issue.
|
|
|
|
|
erikd
|
 |
«
Reply #12 - Posted
2006-07-12 17:49:55 » |
|
Well, I found that it slows down the program, but not nearly as much as any other profiler I tried. JIP for example halts my application to an almost complete halt (think 0.2fps instead of 150fps). But I'll submit a bug report because -Xprof is still much slower than in 1.4 and I'm not so sure the 1.6 profiler output is correct (it seems really strange sometimes).
|
|
|
|
keldon85
|
 |
«
Reply #13 - Posted
2007-02-04 18:08:32 » |
|
I have had the same problems with the profillers in eclipse, they reduce the speed of my app from 300 fps to about 0.1! The profillers I used in C++ were pretty much seamless; I didn't even notice much of an overhead!
|
|
|
|
Orangy Tang
|
 |
«
Reply #14 - Posted
2007-06-24 14:55:18 » |
|
Bump. I'm in need of a profiler - I usually just dump generic stats with -Xrunhprof and use HPjmeter to peek at them, but it seems that the profile dump is too large for it to handle with my current game.  I'm going to try a few from here first, but are there any other suggestions?
|
|
|
|
|