Class VertexFlameGraphFactory

java.lang.Object
org.apache.flink.runtime.webmonitor.threadinfo.VertexFlameGraphFactory

public class VertexFlameGraphFactory extends Object
Factory class for creating Flame Graph representations.
  • Constructor Details

    • VertexFlameGraphFactory

      public VertexFlameGraphFactory()
  • Method Details

    • createFullFlameGraphFrom

      public static VertexFlameGraph createFullFlameGraphFrom(VertexThreadInfoStats sample)
      Converts VertexThreadInfoStats into a FlameGraph.
      Parameters:
      sample - Thread details sample containing stack traces.
      Returns:
      FlameGraph data structure
    • createOffCpuFlameGraph

      public static VertexFlameGraph createOffCpuFlameGraph(VertexThreadInfoStats sample)
      Converts VertexThreadInfoStats into a FlameGraph representing blocked (Off-CPU) threads.

      Includes threads in states Thread.State.[TIMED_WAITING, BLOCKED, WAITING].

      Parameters:
      sample - Thread details sample containing stack traces.
      Returns:
      FlameGraph data structure.
    • createOnCpuFlameGraph

      public static VertexFlameGraph createOnCpuFlameGraph(VertexThreadInfoStats sample)
      Converts VertexThreadInfoStats into a FlameGraph representing actively running (On-CPU) threads.

      Includes threads in states Thread.State.[RUNNABLE, NEW].

      Parameters:
      sample - Thread details sample containing stack traces.
      Returns:
      FlameGraph data structure