Class SingleTraceInstrumentor
- java.lang.Object
-
- org.eclipse.steady.java.monitor.AbstractInstrumentor
-
- org.eclipse.steady.java.monitor.trace.AbstractTraceInstrumentor
-
- org.eclipse.steady.java.monitor.trace.SingleTraceInstrumentor
-
- All Implemented Interfaces:
IInstrumentor
public class SingleTraceInstrumentor extends AbstractTraceInstrumentor
Tracks whether a method has been invoked or not. The instrumentation code is only executed once.
-
-
Field Summary
-
Fields inherited from class org.eclipse.steady.java.monitor.AbstractInstrumentor
vulasConfiguration
-
-
Constructor Summary
Constructors Constructor Description SingleTraceInstrumentor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinstrument(StringBuffer _code, JavaId _jid, javassist.CtBehavior _behavior, ClassVisitor _cv)Appends Java source code to the givenStringBuffer.-
Methods inherited from class org.eclipse.steady.java.monitor.trace.AbstractTraceInstrumentor
acceptToInstrument, awaitUpload, getStatistics, merge, merge, upladInformation
-
Methods inherited from class org.eclipse.steady.java.monitor.AbstractInstrumentor
injectStacktrace, injectUrlAndLoader
-
-
-
-
Method Detail
-
instrument
public void instrument(StringBuffer _code, JavaId _jid, javassist.CtBehavior _behavior, ClassVisitor _cv) throws javassist.CannotCompileException
Appends Java source code to the givenStringBuffer. After allIInstrumentors appended their respective code, the ensemble will be added to aConstruct, which will then be compiled.- Parameters:
_code- aStringBufferobject._jid- aJavaIdobject._behavior- aCtBehaviorobject._cv- aClassVisitorobject.- Throws:
javassist.CannotCompileException- if any.
-
-