• 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

Performing Java Profiling at Runtime

 
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

There is a way in Java to perform Java profiling programatically (By using an API) and on demand.
Below is an example of what I am looking for

 
Khaled Mahmoud
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since I have got no reply, I did some thorough investigation about it and a found a somewhat near solution to what I am looking for.

This can be enabled through the Java instrumentation API which allows you to insert "programming statements"
to a method at runtime and upon the start of the Java virtual machine. What you have to do is to write a class
in a specific form that and pass it to JVM as an argument when it starts.

Check this tutorial : http://today.java.net/pub/a/today/2008/04/24/add-logging-at-class-load-time-with-instrumentation.html
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friend,

You can use Jprofiler 7.2.2 for dynamic instrumentation of your Java program
You will be abl to do remotely perform profiling very easily
Download a copy http://www.ej-technologies.com/
 
reply
    Bookmark Topic Watch Topic
  • New Topic