Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support to parse PrintGCID #260

Merged
merged 6 commits into from
Aug 29, 2022
Merged

Support to parse PrintGCID #260

merged 6 commits into from
Aug 29, 2022

Conversation

xiangzhai
Copy link
Contributor

@xiangzhai xiangzhai commented Jul 28, 2022

Hi,

Fixed #197

Testcase:

Command Line:

-Xloggc:specjbb2015-psgc-`date +%Y%m%d%H%M%S`.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCID

GC log:

2022-07-26T23:30:28.892+0800: 8991.259: #353: [Full GC (System.gc()) [PSYoungGen: 384K->0K(7465472K)] [ParOldGen: 325752K->325474K(1048576K)] 326136K->325474K(8514048K), [Metaspace: 20971K->20971K(1069056K)], 0.4225592 secs] [Times: user=1.49 sys=0.01, real=0.43 secs]

Please review my patch.

Thanks,
Leslie Zhai

@codecov-commenter
Copy link

codecov-commenter commented Jul 28, 2022

Codecov Report

Merging #260 (e5771d5) into develop (fd90b9d) will decrease coverage by 0.16%.
The diff coverage is 20.83%.

@@              Coverage Diff              @@
##             develop     #260      +/-   ##
=============================================
- Coverage      70.40%   70.24%   -0.17%     
- Complexity      1528     1529       +1     
=============================================
  Files            146      146              
  Lines           8660     8683      +23     
  Branches        1399     1406       +7     
=============================================
+ Hits            6097     6099       +2     
- Misses          1973     1993      +20     
- Partials         590      591       +1     
Impacted Files Coverage Δ
...traum/perf/gcviewer/imp/AbstractDataReaderSun.java 78.13% <5.55%> (-5.01%) ⬇️
...gtraum/perf/gcviewer/imp/DataReaderSun1_6_0G1.java 89.06% <50.00%> (-0.55%) ⬇️
...tagtraum/perf/gcviewer/imp/DataReaderSun1_6_0.java 90.06% <100.00%> (+0.03%) ⬆️
.../tagtraum/perf/gcviewer/model/AbstractGCEvent.java 86.12% <100.00%> (+0.03%) ⬆️
...gtraum/perf/gcviewer/ctrl/impl/GcSeriesLoader.java 74.15% <0.00%> (-2.25%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us.

@xiangzhai xiangzhai mentioned this pull request Jul 28, 2022
@YouriAndropov
Copy link

Hello, good news !
I have no env for building it, where could I find a jar file ?

@xiangzhai
Copy link
Contributor Author

Hi @YouriAndropov

Please try it gcviewer-1.37-SNAPSHOT.jar.tar.gz

Thanks,
Leslie Zhai

@chewiebug
Copy link
Owner

chewiebug commented Jul 28, 2022 via email

@xiangzhai
Copy link
Contributor Author

Hi Jörg,

Thanks for your response!

I miss some unittests, though.

Regression? Please point out the testcase.

Thanks,
Leslie Zhai

@chewiebug
Copy link
Owner

chewiebug commented Aug 1, 2022 via email

Copy link
Owner

@chewiebug chewiebug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add some unittests proving that your code works as expected and preventing future changes from breaking your implementation.

@xiangzhai
Copy link
Contributor Author

xiangzhai commented Aug 2, 2022

Hi,

Thanks for your review!

Doing some manual tests myself, I suspect, that you mainly tested the
parallel collector because that's the only one parsing without warnings.
Serial, cms and g1 have lots of parser warnings.

Yup, we mainly use Parallel Scavenge collector for jdk8u-dev, G1 GC for jdk11u-dev, G1GC and ZGC for jdk17u-dev.

add some unittests for parallel collector (as part of the class
TestDataReaderSun1_8_0.java) and a comment in
DataReaderSun1_6_0.java stating the restriction PringGCID only for
parallel collector)

Yup, I added some unittests only for Parallel Scavenge collector and comment the restriction PringGCID only test for it.

Please review it again.

Thanks,
Leslie Zhai

@xiangzhai
Copy link
Contributor Author

PING @chewiebug

@xiangzhai xiangzhai requested a review from chewiebug August 10, 2022 01:07
@xiangzhai
Copy link
Contributor Author

PING

2 similar comments
@xiangzhai
Copy link
Contributor Author

PING

@xiangzhai
Copy link
Contributor Author

PING

@chewiebug
Copy link
Owner

chewiebug commented Aug 20, 2022 via email

@CuiWeiloong
Copy link

Hi Jörg,

Thanks for the mention. I didn't contribute to this pull request, but I recently fixed some failed parsing for ZGC and ShenandoahGC and will create a PR soon.

Best regards
Weilong Cui

@xiangzhai
Copy link
Contributor Author

Hi Jörg,

Did both you and Weilung Cui contribute to this pull request?

I contributed to this PR.

Thanks,
Leslie Zhai

@xiangzhai
Copy link
Contributor Author

PING @chewiebug

@chewiebug chewiebug merged commit 61201c4 into chewiebug:develop Aug 29, 2022
@chewiebug
Copy link
Owner

chewiebug commented Aug 29, 2022 via email

@chewiebug
Copy link
Owner

build should be fixed (is currently running)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PrintGCID not parsed
5 participants