Class VertexFlameGraphFactory
java.lang.Object
org.apache.flink.runtime.webmonitor.threadinfo.VertexFlameGraphFactory
Factory class for creating Flame Graph representations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexFlameGraphConvertsVertexThreadInfoStatsinto a FlameGraph.static VertexFlameGraphConvertsVertexThreadInfoStatsinto a FlameGraph representing blocked (Off-CPU) threads.static VertexFlameGraphConvertsVertexThreadInfoStatsinto a FlameGraph representing actively running (On-CPU) threads.
-
Constructor Details
-
VertexFlameGraphFactory
public VertexFlameGraphFactory()
-
-
Method Details
-
createFullFlameGraphFrom
ConvertsVertexThreadInfoStatsinto a FlameGraph.- Parameters:
sample- Thread details sample containing stack traces.- Returns:
- FlameGraph data structure
-
createOffCpuFlameGraph
ConvertsVertexThreadInfoStatsinto 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
ConvertsVertexThreadInfoStatsinto 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
-