Class VertexFlameGraphFactory


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

      • VertexFlameGraphFactory

        public VertexFlameGraphFactory()
    • Method Detail

      • 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