Package com.helix.profiler.async
Class AsyncProfilerIntegration
java.lang.Object
com.helix.profiler.async.AsyncProfilerIntegration
Controller providing Java API integration for async-profiler (CPU, allocation, lock profiling).
Automatically handles simulation/fallback when native libasyncProfiler library is absent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddumpCollapsed(Path outputFile) Dumps recorded collapsed stack samples to a file.voidGenerates and writes an HTML flame graph to the specified output file.booleanvoidrecordSample(String stackTrace, long count) Records a raw collapsed stack sample entry (for custom/agent callbacks).voidstart(ProfileMode mode) Starts profiling with the specified ProfileMode (e.g.stop()Stops the current profiling session and returns recorded collapsed stack sample data.
-
Constructor Details
-
AsyncProfilerIntegration
public AsyncProfilerIntegration()
-
-
Method Details
-
start
Starts profiling with the specified ProfileMode (e.g. CPU, ALLOC, LOCK). -
stop
Stops the current profiling session and returns recorded collapsed stack sample data. -
dumpCollapsed
Dumps recorded collapsed stack samples to a file.- Throws:
IOException
-
dumpHtml
Generates and writes an HTML flame graph to the specified output file.- Throws:
IOException
-
recordSample
Records a raw collapsed stack sample entry (for custom/agent callbacks). -
isProfiling
public boolean isProfiling() -
getCurrentMode
-