Hi,
I'm looking for some java code analysis tools to analyze the java code from performance point of view.The specific feature that i'm looking for is the ability of the tool to recognize a specific pattern in the code and point it out.For example if I want to search whether there is a use of nested for or while loop in the code then the tool should be able to recognize it.This was one example ,similarly the tool should be able to recognize a pattern in the code.
Please point out the appropriate tool for the purpose.Also point out the tools which can be used as plugins to Eclipse for the above mentioned purpose.
Thanks for the information.
What i read about Jprofiler is that it can give views on memory usage ,finding instances which are on the heap,shows call sequences and shows list of most time consuming methods.
What i wanted was a tool that could find a particular pattern in the code and list the ocurrence of it , if there is any such tool.
Piyush
Piyush Tripathi
Greenhorn
Joined: Jan 28, 2009
Posts: 16
posted
0
Hi,
I was reading about a tool called PMD on the net.Has anyone worked on it .I read it can check for unused try/catch block.Can it find whether there is use of nested for or while loop in the code.
It's possible to extend PMD with new rules to check. See "Customizing PMD" on the PMD site, especially "How to write a rule" and "Writing XPath rules".
Piyush Tripathi wrote:Hi,
I was reading about a tool called PMD on the net.Has anyone worked on it .I read it can check for unused try/catch block.Can it find whether there is use of nested for or while loop in the code.
Yes it can find any Java construct. Keeping in mind nested loops aren't always a performance problem.
Hi, i use two tools for Java code analysis. PDM and findbugs, both of them are available as plug-in for eclipse. They are best tool to review your code.
Piyush Tripathi wrote:Hi,
I was reading about a tool called PMD on the net.Has anyone worked on it .I read it can check for unused try/catch block.Can it find whether there is use of nested for or while loop in the code.
Deepak Lal wrote:Hi,
I'm new to using plugin(PDM and findbugs) in an Eclipse IDE. Can you tell me the steps for using these plugin in eclipse IDE.
--
Deepak Lal
Do you remember in your thread about EJBs where I asked you to show you made an effort? It took me less than a minute to find these two links. Did you spend any time trying to search for an answer before asking here? If so, please post an indication of what you tried next time you have a question. If not, why not? Are you less able to use Google than others?
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.