Package com.helix.profiler.gc
Class GcLogAnalyzer
java.lang.Object
com.helix.profiler.gc.GcLogAnalyzer
Main GC log analyzer that parses unified GC logs (-Xlog:gc*), tracks GC statistics,
safepoint pauses, and notifies listeners of GC events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Consumer<GcEvent> listener) voidclear()Parses GC log entries from a file path.Parses a string containing multi-line GC and safepoint logs.parseStream(InputStream inputStream) Parses GC log entries from an InputStream.voidremoveListener(Consumer<GcEvent> listener)
-
Constructor Details
-
GcLogAnalyzer
public GcLogAnalyzer()
-
-
Method Details
-
addListener
-
removeListener
-
parseLog
Parses a string containing multi-line GC and safepoint logs. -
parseStream
Parses GC log entries from an InputStream.- Throws:
IOException
-
parseFile
Parses GC log entries from a file path.- Throws:
IOException
-
getEvents
-
getSafepointEvents
-
getStatistics
-
clear
public void clear()
-