Two Laptop Bag*
The moose likes Performance and the fly likes I just don't get this JProfiler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "I just don Watch "I just don New topic
Author

I just don't get this JProfiler

ashwin bhawsar
Ranch Hand

Joined: Mar 16, 2011
Posts: 62

I have been trying to figure out how to use JProfiler.The manual is too big, too confusing and I don't know where to start. I just want to do a simple thing, i have written a very basic java program and i want to check how efficient it is.

I just want to know the following things in my program :

  • how much heap/stack memory each variable is taking
  • How much time its taking to execute a loop.
  • How much time it takes to execute a method.
  • How much heap memory my array is taking.
  • How much time it is taking to read/write to a file is taking.
  • Has the explicit casting that i use in my program making any difference or not .

  • I could not find any tutorials for Jprofiler.
    Someone please guide me in the right direction.
    steve souza
    Ranch Hand

    Joined: Jun 26, 2002
    Posts: 861
    I haven't used jprofiler, but visualvm comes with the jdk and does a lot of what you are asking. It is relatively straightforward too.


    http://www.jamonapi.com/ - a fast, free open source performance tuning api.
    JavaRanch Performance FAQ
    steve souza
    Ranch Hand

    Joined: Jun 26, 2002
    Posts: 861
    You could also try appdynamics lite which is free: http://litedocs.appdynamics.com/display/ADLite/Get+started+With+AppDynamics+Lite
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: I just don't get this JProfiler