|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jacoco.core.runtime.AbstractRuntime org.jacoco.core.runtime.LoggerRuntime
public class LoggerRuntime
This IRuntime
implementation uses the Java logging API to report
coverage data.
The implementation uses a dedicated log channel. Instrumented classes call
Logger.log(Level, String, Object[])
with the class identifier in the
first slot of the parameter array. The runtime implements a Handler
for this channel that puts the probe data structure into the first slot of
the parameter array.
Field Summary |
---|
Fields inherited from class org.jacoco.core.runtime.AbstractRuntime |
---|
data |
Constructor Summary | |
---|---|
LoggerRuntime()
Creates a new runtime. |
Method Summary | |
---|---|
int |
generateDataAccessor(long classid,
String classname,
int probecount,
org.objectweb.asm.MethodVisitor mv)
This method generates the byte code required to obtain the coverage data structure for the class with the given id. |
void |
shutdown()
Allows the coverage runtime to cleanup internals. |
void |
startup(RuntimeData data)
Subclasses must call this method when overwriting it. |
Methods inherited from class org.jacoco.core.runtime.AbstractRuntime |
---|
createRandomId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggerRuntime()
Method Detail |
---|
public int generateDataAccessor(long classid, String classname, int probecount, org.objectweb.asm.MethodVisitor mv)
IExecutionDataAccessorGenerator
boolean[]
instance to the
operand stack. Except this result object the generated code must not make
any assumptions about the structure of the embedding method or class. The
generated code must not use or allocate local variables.
classid
- identifier of the classclassname
- VM class nameprobecount
- probe count for this classmv
- code output
public void startup(RuntimeData data) throws Exception
AbstractRuntime
startup
in interface IRuntime
startup
in class AbstractRuntime
data
- the execution data for this runtime
Exception
- any internal problem during startuppublic void shutdown()
IRuntime
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |