Package com.saxonica.ee.bytecode
Class ByteCodeMonitor
- java.lang.Object
-
- com.saxonica.ee.bytecode.ByteCodeMonitor
-
public class ByteCodeMonitor extends java.lang.Object
Class to accumulate statistics on the effectiveness of byte code generation. Enabled by setting the configuration propertyFeature.MONITOR_HOT_SPOT_BYTE_CODE
-
-
Field Summary
Fields Modifier and Type Field Description IntHashMap<com.saxonica.ee.bytecode.ByteCodeMonitor.ByteCodeDetails>
stats
-
Constructor Summary
Constructors Constructor Description ByteCodeMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logCompilation(ByteCodeCandidate candidate, long time)
void
logExecution(ByteCodeCandidate candidate, java.lang.String evalMode, long time)
void
report(java.io.PrintWriter w)
Generate an XML report of the collected statistics.
-
-
-
Field Detail
-
stats
public IntHashMap<com.saxonica.ee.bytecode.ByteCodeMonitor.ByteCodeDetails> stats
-
-
Method Detail
-
logCompilation
public void logCompilation(ByteCodeCandidate candidate, long time)
-
logExecution
public void logExecution(ByteCodeCandidate candidate, java.lang.String evalMode, long time)
-
report
public void report(java.io.PrintWriter w)
Generate an XML report of the collected statistics.The following attributes are output for each candidate expression. Timings are in microseconds:
text
Abbreviated text of the expressionintCount
Number of times the expression was evaluated in the interpreterintTime
Cumulative time spent evaluating the expression (including subexpressions) in the interpreterbcCount
Number of times the expression was evaluated as byte-codebcTime
Cumulative time spent evaluating the expression (including subexpressions) as byte-codecompileTime
Time spent generating bytecode for the expressionratio
Average byte-code execution time as a proportion of average interpreted execution timeebv
Number of evaluations of the expressionseffectiveBooleanValue()
methodeval
Number of evaluations of the expressionsevaluateItem()
methoditerate
Number of evaluations of the expressionsiterate()
methodprocess
Number of evaluations of the expressionsprocess()
methodmodule
URI of the module containing the expressionline
Line number of the expression within this module
- Parameters:
w
- the destination to which the generated XML will be written
-
-