Interface CPUSampler.ProcessSampleListener

Enclosing class:
CPUSampler
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 CPUSampler.ProcessSampleListener
A listener interface for notification about the processing of sampling results.
Since:
25.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSampleProcessed(com.oracle.truffle.api.TruffleContext context)
    Invoked after each batch of samples has been processed for a context.
  • Method Details

    • onSampleProcessed

      void onSampleProcessed(com.oracle.truffle.api.TruffleContext context)
      Invoked after each batch of samples has been processed for a context. This callback runs on the sampler's background processing thread and may be called frequently.
      Parameters:
      context - the context corresponding to the batch that was just processed.
      Since:
      25.1