Interface HistogramInstructionTracer.GroupClause
- Enclosing class:
HistogramInstructionTracer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A grouping function that maps a
BytecodeNode, the current Thread, and the
compilation tier to an arbitrary grouping key. Keys are used to form hierarchical histograms.- Since:
- 25.1
-
Method Summary
Modifier and TypeMethodDescriptiongroup(BytecodeNode bytecodeNode, Thread thread, int compilationTier) Computes the grouping key for the given execution context.
-
Method Details
-
group
Computes the grouping key for the given execution context.- Parameters:
bytecodeNode- the bytecode node executingthread- the current threadcompilationTier- 0 for interpreter, 1 for compiled with a next tier, 2 for final compiled- Returns:
- a non null grouping key, for example a string, an enum, or a small record
- Since:
- 25.1
-