Class SingleStackTraceInstrumentor
- java.lang.Object
-
- org.eclipse.steady.java.monitor.AbstractInstrumentor
-
- org.eclipse.steady.java.monitor.trace.AbstractTraceInstrumentor
-
- org.eclipse.steady.java.monitor.trace.SingleStackTraceInstrumentor
-
- All Implemented Interfaces:
IInstrumentor
public class SingleStackTraceInstrumentor extends AbstractTraceInstrumentor
Tracks how many times a construct has been invoked. Downloads the list of relevant bugs from the backend and collects the stack trace for all their change list elements. Stack traces collected will be transformed into call paths that are again uploaded to the backend.
-
-
Field Summary
-
Fields inherited from class org.eclipse.steady.java.monitor.AbstractInstrumentor
vulasConfiguration
-
-
Constructor Summary
Constructors Constructor Description SingleStackTraceInstrumentor()Constructor for SingleStackTraceInstrumentor.
-
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.booleanisStacktraceRequestedFor(ConstructId _construct)isStacktraceRequestedFor.-
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
-
isStacktraceRequestedFor
public boolean isStacktraceRequestedFor(ConstructId _construct)
isStacktraceRequestedFor.
- Parameters:
_construct- aConstructIdobject.- Returns:
- a boolean.
-
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.
-
-