RFR: 6936: Parser should track statistics during parsing [v2]

Jean-Philippe Bempel github.com+4610701+jpbempel at openjdk.java.net
Tue Feb 23 11:07:00 UTC 2021


On Tue, 23 Feb 2021 11:04:16 GMT, Jean-Philippe Bempel <github.com+4610701+jpbempel at openjdk.org> wrote:

>> Add new `IParserStats` interface implemented by `EventCollection`.
>> That way, `IItemCollection` is not touched, but you need to cast the
>> instance to `IParserStats`.
>> Support of old (v0.x) JFR format.
>> During parsing, we collect number of events per type, the size, number
>> of chunks and version of the file.
>> We also track for version 1.x/2.x the number of skipped events.
>> `RecordingPrinter` tool class is modified to support a summary verbosity mode
>> and `-summary` option to print statistics per event type.
>
> Jean-Philippe Bempel has updated the pull request incrementally with one additional commit since the last revision:
> 
>   add/update copyright year

core/org.openjdk.jmc.flightrecorder/src/main/java/org/openjdk/jmc/flightrecorder/internal/EventArrays.java line 4:

> 2: 
> 3: import java.util.Set;
> 4: 

no copyright on this file, is it normal?

core/org.openjdk.jmc.flightrecorder/src/main/java/org/openjdk/jmc/flightrecorder/parser/synthetic/JdkTypeIDsPreJdk11.java line 42:

> 40:  */
> 41: @SuppressWarnings({"nls", "unused"})
> 42: public final class JdkTypeIDsPreJdk11 {

Made public to be able to use it from here: https://github.com/openjdk/jmc/blob/9f9665812a80339782c2e00be83b041954ee766b/core/org.openjdk.jmc.flightrecorder/src/main/java/org/openjdk/jmc/flightrecorder/internal/parser/v0/EventParserManager.java#L100

-------------

PR: https://git.openjdk.java.net/jmc/pull/219


More information about the jmc-dev mailing list