Java Profiler
by Steve Fletcher · in Technical Issues · 01/16/2004 (6:00 pm) · 7 replies
I'm looking for a profiler for the Java programming language. I want it be easy to run - the most basic way to run it should either be just type location of the program to profile into some sort of gui program or some sample command line thing like "profile -cp [java classpath] [main class]".
That should run the program and create some sort of output about the program that you can view after it's done running. The output should tell you what functions and classes are used the most (and it would be nice if it could tell you how much each LINE of the code is used, but it should still output some stuff that's by the function instead of the line).
I searched on google and looked at some profilers. I found it all very confusing. I want something that's simple.
Obviously, I would prefer that it be free, but I would be willing to pay some reasonable price (i.e. less than $40) if I had to. But I want to find a profiler that works and is easy-to-use. So far I've just had alot of hassle looking around.
That should run the program and create some sort of output about the program that you can view after it's done running. The output should tell you what functions and classes are used the most (and it would be nice if it could tell you how much each LINE of the code is used, but it should still output some stuff that's by the function instead of the line).
I searched on google and looked at some profilers. I found it all very confusing. I want something that's simple.
Obviously, I would prefer that it be free, but I would be willing to pay some reasonable price (i.e. less than $40) if I had to. But I want to find a profiler that works and is easy-to-use. So far I've just had alot of hassle looking around.
About the author
#2
what you want is not a "profiler" it would be more in the "code coverage" analysis or "metrics" department.
"profilers" measure runtime performance of the application.
IntelliJ Idea and Together as well as a few other IDE's have metrics analysis tools built into them.
I have never used it, only the C++ version, but Understand for Java can tell you way more than you ever wanted to know about a code base.
01/17/2004 (8:37 am)
You are searching for the wrong thing.what you want is not a "profiler" it would be more in the "code coverage" analysis or "metrics" department.
"profilers" measure runtime performance of the application.
IntelliJ Idea and Together as well as a few other IDE's have metrics analysis tools built into them.
I have never used it, only the C++ version, but Understand for Java can tell you way more than you ever wanted to know about a code base.
#3
01/17/2004 (9:08 am)
I dont think he is talking about metrics...Quote:So I guess he really wants a profiler, he just didnt phrase it very well...
That should run the program and create some sort of output about the program that you can view after it's done running. The output should tell you what functions and classes are used the most
#4
I had already found ejp, but not mjp. I didn't actually see the ejp page you linked to, but I had gotten to the page where you download the project directly.
I will take a look at mjp tomorrow. And if I can't get that to work, I'll take another look at ejp. For some reason, I had trouble getting to work. There's this "trace" thing and then a seperate program you run to view the trace. I don't think I was getting the trace made correctly.
So the problem here is probably that I'm a moron. I'll figure it out sooner or later.
01/17/2004 (9:30 am)
Yes, I really want a profiler. I've never used one before though, so that's probably why my description didn't make much sense.I had already found ejp, but not mjp. I didn't actually see the ejp page you linked to, but I had gotten to the page where you download the project directly.
I will take a look at mjp tomorrow. And if I can't get that to work, I'll take another look at ejp. For some reason, I had trouble getting to work. There's this "trace" thing and then a seperate program you run to view the trace. I don't think I was getting the trace made correctly.
So the problem here is probably that I'm a moron. I'll figure it out sooner or later.
#5
JProfiler
By defination runtime profiling, especiall of potentially multi-threaded applications is not simple.
JProfiler is about as painless a way to instrument and profile code as I have found.
There are some AOP profilers that you might look at, that will allow you to control what gets instrumented at the code level.
01/17/2004 (9:31 am)
If you really want a RUNTIME profiler this is the easiest to use and best one I have found.JProfiler
By defination runtime profiling, especiall of potentially multi-threaded applications is not simple.
JProfiler is about as painless a way to instrument and profile code as I have found.
There are some AOP profilers that you might look at, that will allow you to control what gets instrumented at the code level.
#6
JProfiler looks pretty good, but it's out of price range for the time being.
01/19/2004 (9:54 pm)
I can't believe I missed that. I have exe4j, which is from the same company.JProfiler looks pretty good, but it's out of price range for the time being.
#7
Mjp seems to work pretty well.
02/09/2004 (9:38 pm)
I decided on using mjp. JProfiler is probably better, but it's incredibly expensive.Mjp seems to work pretty well.
Associate Stefan Beffy Moises
a quick check gave me dozens of results,
e.g.
mjp.sourceforge.net/
or
ejp.sourceforge.net/