Hello,

Java 1.5's JVM Tool Interface provides several interesting ways to insert 
instrumented byte code 
(http://java.sun.com/j2se/1.5.0/docs/guide/jvmti/jvmti.html#bci):

    * Static Instrumentation: The class file is instrumented before it is 
loaded into the VM - for example, by creating a duplicate directory of *.class 
files which have been modified to add the instrumentation. This method is 
extremely awkward and, in general, an agent cannot know the origin of the class 
files which will be loaded.
    * Load-Time Instrumentation: When a class file is loaded by the VM, the raw 
bytes of the class file are sent for instrumentation to the agent. The 
ClassFileLoadHook event provides this functionality. This mechanism provides 
efficient and complete access to one-time instrumentation.
    * Dynamic Instrumentation: A class which is already loaded (and possibly 
even running) is modified. This optional feature is provided by the 
RedefineClasses function. Classes can be modified multiple times and can be 
returned to their original state. The mechanism allows instrumentation which 
changes during the course of execution.

Are there any plans to support that tool interface?

Regards,

Martin

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922007#3922007

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922007


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to