cdsap / InfoKotlinProcess

Include Kotlin process information in Build Scans or build output
MIT License
36 stars 2 forks source link

Ignore concurrent gc times #14

Closed cdsap closed 1 year ago

cdsap commented 1 year ago

Issue #12 raised no build values/output are shown in build scan/terminal.

Thanks to the comments on the issue we found the origin when using UseParallelGC. The output when executing jstat $Process is:

Timestamp        S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT    CGC    CGCT     GCT   
         2988.0 43520.0 43520.0  0.0    0.0   262144.0 259463.8  699392.0   43970.9   65024.0 63998.3 7936.0 7465.0      4    0.043   4      0.137   -          -    0.180

without using UseParallelGC the result is:

Timestamp        S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT    CGC    CGCT     GCT   
         2438.7  0.0   4096.0  0.0   4096.0 326656.0 304128.0  193536.0   79440.8   101904.0 99506.3 11360.0 10601.7     13    0.080   0      0.000   8      0.008    0.088

ParallelGC reports concurrent gc time in the property FGC instead of CGC and CGCT.

Updated the logic and added integration tests for Java 11,17,19 in different vendors