• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

seeking help for build the java metric analyzer

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i m doing my final project and my title is to create a java metric analyzer.. it is using to analyze a java source code and understand the particular code, then give the result like the code performance, usage time, and how many method it was used, so anyone who r expert, or genious , can u guys please do me a favour, give me some clues to me so that i can complete my final project. thx a lot too all ur helps..........
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you look at the documentation for the J2SE, you will see two command line parameters to the java command, -Xprof and -Xrunhprof, which will give you information about various aspects of a running program. One could monitor this input and create metrics from it. . .
[ December 10, 2003: Message edited by: Joe Ess ]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alternately, if you want metrics that can't be obtained from runtime profiling, but can be obtained from parsing source code, then you may want to look at tools like ANTLR or JavaCC to get you started. There's a bit of a learning curve here I think, so if you only want simple metrics like LOC you might just do simple parsing yourself. But for serious parsing to get mroe complex metrics, tools like ANTLR or JavaCC will probably be quite useful, and worth your while to learn how to use. You might want to think more about just what sort of metrics you want to include.
 
reply
    Bookmark Topic Watch Topic
  • New Topic