How to analyse the runtime of my java programm [message #990807] |
Fri, 14 December 2012 05:41  |
Eclipse User |
|
|
|
Hello everyone!
I have a small problem and since I have searched the internet for more than two hours without finding a result, I am asking for your help!!!
I want to analyze the runtime of my java program in eclipse, but without installing any plugins! Is this somehow possible? I found on some pages suggestions like:
project -> run as -> run configurations, and then in the argument tab to choose for the program argument -pg. but this is not working.. nothing happens when I put this.
Is there any other solution?? Am I doing something wrong?? please hHELP!!!
|
|
|
|
|
Re: How to analyse the runtime of my java programm [message #991154 is a reply to message #991010] |
Mon, 17 December 2012 09:51  |
Eclipse User |
|
|
|
If you don't want to install anything, I would recommend using JVisualVM to profile your program. As long as you have the JDK installed, you should be able to find it in the "bin" folder of your JDK. Once you have it up, run your program, click on your program in the tree on the left, go to the "Profiler" tab, and click on the CPU button.
For more information, look at http://visualvm.java.net/profiler.html
Note that if your installation of the JDK is old enough that the included JVisualVM doesn't have the "Profiler" tab, you should probably update your JDK, or at least update to the latest version of JVisualVM.
|
|
|
Powered by
FUDForum. Page generated in 0.07847 seconds