Class AsyncProfilerIntegration

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

public class AsyncProfilerIntegration extends Object
Controller providing Java API integration for async-profiler (CPU, allocation, lock profiling). Automatically handles simulation/fallback when native libasyncProfiler library is absent.
  • Constructor Details

    • AsyncProfilerIntegration

      public AsyncProfilerIntegration()
  • Method Details

    • start

      public void start(ProfileMode mode)
      Starts profiling with the specified ProfileMode (e.g. CPU, ALLOC, LOCK).
    • stop

      public String stop()
      Stops the current profiling session and returns recorded collapsed stack sample data.
    • dumpCollapsed

      public void dumpCollapsed(Path outputFile) throws IOException
      Dumps recorded collapsed stack samples to a file.
      Throws:
      IOException
    • dumpHtml

      public void dumpHtml(Path outputFile, String title) throws IOException
      Generates and writes an HTML flame graph to the specified output file.
      Throws:
      IOException
    • recordSample

      public void recordSample(String stackTrace, long count)
      Records a raw collapsed stack sample entry (for custom/agent callbacks).
    • isProfiling

      public boolean isProfiling()
    • getCurrentMode

      public ProfileMode getCurrentMode()