-
Notifications
You must be signed in to change notification settings - Fork 981
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
Conversation
Codecov Report
@@ 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
Help us with your feedback. Take ten seconds to tell us how you rate us. |
Hello, good news ! |
Please try it gcviewer-1.37-SNAPSHOT.jar.tar.gz Thanks, |
The code looks good at first glance - thank you for your implementation!
I miss some unittests, though.
Best regards
Jörg
|
Hi Jörg, Thanks for your response!
Regression? Please point out the testcase. Thanks, |
Hi Leslie
You didn't introduce a regression, the tests done during the pull
request build would have found them. The build result is still red,
because code coverage percentage drops with this pull request.
I miss unittests proving that your code works. They will also make sure
that no later code changes will break your implementation and they'd
prevent the drop in code coverage for your pull request.
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.
It is ok to add a new feature for one garbage collection algorithm only.
I usually add a comment the implementation to make that fact clear
(class comment of DataReaderSun1_6_0.java in this case).
So I see the following options for this pull request:
* 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)
* add unittests for more collectors (TestDataReaderSun1_8_0.java and
TestDataReaderSun1_8_0G1.java, if G1 should also be included)
What would you like to do?
Best regards
Jörg
|
There was a problem hiding this 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.
src/main/java/com/tagtraum/perf/gcviewer/imp/DataReaderSun1_6_0.java
Outdated
Show resolved
Hide resolved
src/main/java/com/tagtraum/perf/gcviewer/model/AbstractGCEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/com/tagtraum/perf/gcviewer/imp/DataReaderSun1_6_0G1.java
Outdated
Show resolved
Hide resolved
Hi, Thanks for your review!
Yup, we mainly use Parallel Scavenge collector for jdk8u-dev, G1 GC for jdk11u-dev, G1GC and ZGC for jdk17u-dev.
Yup, I added some unittests only for Parallel Scavenge collector and comment the restriction PringGCID only test for it. Please review it again. Thanks, |
PING @chewiebug |
PING |
2 similar comments
PING |
PING |
Hi Leslie
The pull request looks good now, thank you very much!
Did both you and Weilung Cui contribute to this pull request? I am
asking because I'd like to add everyone, who contributed to the list of
contributers.
Best regards
Jörg
|
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 |
Hi Jörg,
I contributed to this PR. Thanks, |
PING @chewiebug |
I have merged the pull request.
Unfortunately, there seems to be an issue with the file upload to
sf.net, so the latest build is not uploaded, yet. I am investigating the
issue. Please be patient...
Best regards
Jörg
|
build should be fixed (is currently running) |
Hi,
Fixed #197
Testcase:
Command Line:
GC log:
Please review my patch.
Thanks,
Leslie Zhai