Class InstrumentationTransform
- java.lang.Object
-
- com.tonic.analysis.instrumentation.transform.InstrumentationTransform
-
public class InstrumentationTransform extends Object
Transform that applies instrumentation hooks to IR methods.
-
-
Constructor Summary
Constructors Constructor Description InstrumentationTransform(List<Hook> hooks, InstrumentationConfig config)Creates a transform that applies the given hooks under the given configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLastInstrumentationCount()intinstrumentMethod(IRMethod irMethod, MethodEntry sourceMethod, ClassFile classFile)Instruments a single method.
-
-
-
Constructor Detail
-
InstrumentationTransform
public InstrumentationTransform(List<Hook> hooks, InstrumentationConfig config)
Creates a transform that applies the given hooks under the given configuration.- Parameters:
hooks- the hooks to applyconfig- the instrumentation configuration
-
-
Method Detail
-
getLastInstrumentationCount
public int getLastInstrumentationCount()
- Returns:
- the last instrumentation count
-
instrumentMethod
public int instrumentMethod(IRMethod irMethod, MethodEntry sourceMethod, ClassFile classFile)
Instruments a single method.- Parameters:
irMethod- the IR method to instrumentsourceMethod- the source method entryclassFile- the class file- Returns:
- number of instrumentation points applied
-
-