Package com.saxonica.ee.bytecode
Class ByteCodeMonitor
- java.lang.Object
-
- com.saxonica.ee.bytecode.ByteCodeMonitor
-
public class ByteCodeMonitor extends java.lang.ObjectClass 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 voidlogCompilation(ByteCodeCandidate candidate, long time)voidlogExecution(ByteCodeCandidate candidate, java.lang.String evalMode, long time)voidreport(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:
textAbbreviated text of the expressionintCountNumber of times the expression was evaluated in the interpreterintTimeCumulative time spent evaluating the expression (including subexpressions) in the interpreterbcCountNumber of times the expression was evaluated as byte-codebcTimeCumulative time spent evaluating the expression (including subexpressions) as byte-codecompileTimeTime spent generating bytecode for the expressionratioAverage byte-code execution time as a proportion of average interpreted execution timeebvNumber of evaluations of the expressionseffectiveBooleanValue()methodevalNumber of evaluations of the expressionsevaluateItem()methoditerateNumber of evaluations of the expressionsiterate()methodprocessNumber of evaluations of the expressionsprocess()methodmoduleURI of the module containing the expressionlineLine number of the expression within this module
- Parameters:
w- the destination to which the generated XML will be written
-
-