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.

@FunctionalInterface public static interface HistogramInstructionTracer.GroupClause
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 Type
    Method
    Description
    group(BytecodeNode bytecodeNode, Thread thread, int compilationTier)
    Computes the grouping key for the given execution context.
  • Method Details

    • group

      Object group(BytecodeNode bytecodeNode, Thread thread, int compilationTier)
      Computes the grouping key for the given execution context.
      Parameters:
      bytecodeNode - the bytecode node executing
      thread - the current thread
      compilationTier - 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