Class GcLogLine
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Reads one line of the unified GC log (-Xlog:gc) the app asks the JVM to write.
public static class GcLogLine
- Inheritance
-
GcLogLine
- Inherited Members
Remarks
Pure: the line in, the event out. Only the lines a pause or a whole-heap cycle ends with carry sizes, and those are the only ones the app asks for, so anything else is simply not an event. Unit-tested against lines copied from real runs of G1, Serial, Parallel and ZGC.
Methods
TryParse(string?, out GcEvent)
Reads the event a line describes, or false for any other line.
public static bool TryParse(string? line, out GcEvent gcEvent)
Parameters
Returns
TryParseCollector(string?, out GcCollector)
Reads the collector from the line the JVM prints first ("Using G1").
public static bool TryParseCollector(string? line, out GcCollector collector)
Parameters
linestringcollectorGcCollector