eclipse-tracecompass-incubator / org.eclipse.tracecompass.incubator

Eclipse Public License 2.0
4 stars 14 forks source link

Add Java GC Logs #42

Closed MatthewKhouzam closed 1 month ago

MatthewKhouzam commented 3 months ago

This feature is taken from the Eclipse JIFA project, the code was slightly tweaked, removing certain dependencies such as Lombok and SL4J, but it works well, is well tested and brings in several new views that are of interest:

The code that will be kept if JIFA makes a jar for GC parsing would be GCTrace.java as it is the adapter between the GCModel and Trace Compass. Special attention in the reivew should be put there.

Known Issues:

MatthewKhouzam commented 2 months ago

how to log in GC. I will add to wiki since it's out of scope of the project. (tracer vs trace viewer)

Java 8: Use -Xloggc: -XX:+PrintGCDetails -XX:+PrintGCDateStamps. Java 9+: Use -Xlog:gc*:file= or more specific logging options.

MatthewKhouzam commented 1 month ago

Thanks!