chewiebug / GCViewer

Fork of tagtraum industries' GCViewer. Tagtraum stopped development in 2008, I aim to improve support for Sun's / Oracle's java 1.6+ garbage collector logs (including G1 collector)
https://github.com/chewiebug/GCViewer/wiki
Other
4.46k stars 975 forks source link

partial log file analysis #5

Open chewiebug opened 12 years ago

chewiebug commented 12 years ago

Sometimes it would be interesting to see the metrics for a specific part of a gc log file. E.g. metrics before and after a full gc where the gc algorithm changed the sizing of the generations. This would help to find out if the sizing before or after was better and should be aimed for.

Setting the start and end time of analysis inside log with one of the following options:

eostermueller commented 11 years ago

+1 for this feature. I regularly use this in IBM's pmat, whose support for Oracle JVM's is lacking. Need this to compare GC results of two load tests with the same duration.

eostermueller commented 11 years ago

This is also helpful to factor out "warm up" tests that show up in the same log file. btw, thanks for gcviewer. I've only been using it for a day and I love it.

yatwql commented 9 years ago

Just check did anyone work on this item? Recently I found we really want this feature, beside to show the chart, also need the provide the summary of those "partial log".

yatwql commented 9 years ago

First time to look at the code, Initial thought.

chewiebug commented 9 years ago

Hi,

I wouldn't know of anybody working on this feature, so you are very welcome to start work here.

Your initial thoughts sound good. You'll need to use GCModel#add() to add the cropped allEvents list, because all calculations are made there. If add() is not used, no metrics will be available.

Best regards, Jörg