public class InstrumentationTask
extends org.apache.tools.ant.Task
<target name="instrument-classes"> <taskdef name="instrument-stack" classname="cz.advel.stack.instrument.InstrumentationTask" classpath="${run.classpath}"> </taskdef> <instrument-stack dest="${build.classes.dir}" packageName="your.package.name"> <fileset dir="${build.classes.dir}" includes="**/*.class"/> </instrument-stack> </target> <target name="-post-compile" depends="instrument-classes"> </target>
Constructor and Description |
---|
InstrumentationTask() |
Modifier and Type | Method and Description |
---|---|
void |
addFileSet(org.apache.tools.ant.types.FileSet fs) |
void |
execute() |
void |
setDest(java.io.File destDir) |
void |
setDisabled(boolean b)
If true, stack allocation is disabled and every occurence of Stack.alloc()
methods are replaced by direct object allocation.
|
void |
setIsolated(boolean isolated)
Sets isolated mode.
|
void |
setPackageName(java.lang.String packageName) |
void |
setSingleThread(boolean b)
Sets single thread mode.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void addFileSet(org.apache.tools.ant.types.FileSet fs)
public void setDest(java.io.File destDir)
public void setPackageName(java.lang.String packageName)
public void setDisabled(boolean b)
public void setSingleThread(boolean b)
public void setIsolated(boolean isolated)
If enabled, instrumented bytecode won't have dependency on JStackAlloc
library, this disables effect of Stack.cleanCurrentThread()
method
on stack instances of any library that is compiled with this option.
Library author(s) should provide their own method for cleaning resources for
current thread (possibly also cleaning other resources). See
Stack.libraryCleanCurrentThread()
method.
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException