de.twenty11.unitprofile.agent
Class ProfilingClassFileTransformer
java.lang.Object
de.twenty11.unitprofile.agent.ProfilingClassFileTransformer
- All Implemented Interfaces:
- ClassFileTransformer
public class ProfilingClassFileTransformer
- extends Object
- implements ClassFileTransformer
finds (for profiling) annotated methods and uses them as root for instrumentation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProfilingClassFileTransformer
public ProfilingClassFileTransformer(Instrumentation inst)
transform
public byte[] transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
throws IllegalClassFormatException
- Specified by:
transform in interface ClassFileTransformer
- Throws:
IllegalClassFormatException
profile
protected final void profile(javassist.CtMethod m,
javassist.CtClass cc)
throws javassist.CannotCompileException
- Throws:
javassist.CannotCompileException
isAlreadyInstrumented
public boolean isAlreadyInstrumented(MethodDescriptor instrumentation)
addInstrumentation
public void addInstrumentation(MethodDescriptor instrumentation)
getInstrumentations
public List<MethodDescriptor> getInstrumentations()
getInstrumentation
public Instrumentation getInstrumentation()
getTransformation
public Transformation getTransformation(String classname)
Copyright © 2013. All rights reserved.