Class FlameGraphGenerator

java.lang.Object
com.helix.profiler.async.FlameGraphGenerator

public class FlameGraphGenerator extends Object
Generator that converts collapsed stack samples into interactive HTML flame graphs.
  • Constructor Details

    • FlameGraphGenerator

      public FlameGraphGenerator()
  • Method Details

    • generateHtmlFlameGraph

      public String generateHtmlFlameGraph(String collapsedData, String title)
      Converts collapsed stack trace data into a self-contained HTML Flame Graph.
      Parameters:
      collapsedData - Stack trace samples in format: "frame1;frame2;method 42"
      title - Flame graph title
      Returns:
      Full HTML string
    • generateHtmlFlameGraph

      public void generateHtmlFlameGraph(Path collapsedFile, Path outputFile, String title) throws IOException
      Generates an HTML flame graph file from collapsed input file.
      Throws:
      IOException
    • generateHtmlFlameGraph

      public void generateHtmlFlameGraph(String collapsedData, Path outputFile, String title) throws IOException
      Generates an HTML flame graph file from collapsed input string.
      Throws:
      IOException
    • parseCollapsedData

      public List<Map.Entry<String,Long>> parseCollapsedData(String collapsedData)
      Helper method to parse collapsed stack format lines ("a;b;c 100").