Class CPUSampler.Payload

java.lang.Object
com.oracle.truffle.tools.profiler.CPUSampler.Payload
Enclosing class:
CPUSampler

public static final class CPUSampler.Payload extends Object
Wrapper for information on how many times an element was seen on the stack. Used as a template parameter of ProfilerNode. Differentiates between an execution in compiled code and in the interpreter.
Since:
0.30
  • Method Details

    • getNumberOfTiers

      public int getNumberOfTiers()
      Returns:
      The number of compilation tiers this element was recorded in. Tier 0 is the interpreter.
      Since:
      21.3.0
    • getTierSelfCount

      public int getTierSelfCount(int tier)
      Returns:
      The number of times this element was recorded on top of the stack, executing in the given compilation tier.
      Since:
      21.3.0
    • getTierTotalCount

      public int getTierTotalCount(int tier)
      Returns:
      The number of times this element was recorded anywhere on the stack, executing in the given compilation tier.
      Since:
      21.3.0
    • getSelfHitCount

      public int getSelfHitCount()
      Returns:
      Total number of times the element was found on the top of the stack
      Since:
      0.30
    • getHitCount

      public int getHitCount()
      Returns:
      Total number of times the element was found bellow the top of the stack
      Since:
      0.30
    • getSelfHitTimes

      public List<Long> getSelfHitTimes()
      Returns:
      An immutable list of time stamps for the times that the element was on the top of the stack
      Since:
      0.30