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 Summary
Constructors Constructor Description VertexFlameGraphFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VertexFlameGraph
createFullFlameGraphFrom(VertexThreadInfoStats sample)
ConvertsVertexThreadInfoStats
into a FlameGraph.static VertexFlameGraph
createOffCpuFlameGraph(VertexThreadInfoStats sample)
ConvertsVertexThreadInfoStats
into a FlameGraph representing blocked (Off-CPU) threads.static VertexFlameGraph
createOnCpuFlameGraph(VertexThreadInfoStats sample)
ConvertsVertexThreadInfoStats
into a FlameGraph representing actively running (On-CPU) threads.
-
-
-
Method Detail
-
createFullFlameGraphFrom
public static VertexFlameGraph createFullFlameGraphFrom(VertexThreadInfoStats sample)
ConvertsVertexThreadInfoStats
into a FlameGraph.- Parameters:
sample
- Thread details sample containing stack traces.- Returns:
- FlameGraph data structure
-
createOffCpuFlameGraph
public static VertexFlameGraph createOffCpuFlameGraph(VertexThreadInfoStats sample)
ConvertsVertexThreadInfoStats
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)
ConvertsVertexThreadInfoStats
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
-
-