-
Notifications
You must be signed in to change notification settings - Fork 33
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 the newly added par_balanced_copied field. #47
Conversation
Could you add a small eventlog which contains the new field to the test suite? |
Done. The |
Signed-off-by: HE, Tao <[email protected]>
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.
Thanks for your contribution. LGTM besides the minor requests below.
parBalancedCopied <- return Nothing | ||
return GCStatsGHC{ gen = fromIntegral gen | ||
, parNThreads = fromIntegral parNThreads | ||
, ..} |
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.
I think it's better to set parBalancedCopied here rather than using return Nothing
above:
, ..} | |
, parBalancedCopied = Nothing | |
, ..} |
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.
Done. Thanks for the suggestion.
src/GHC/RTS/Events/Binary.hs
Outdated
parNThreads <- get :: Get Word32 | ||
parMaxCopied <- get :: Get Word64 | ||
parTotCopied <- get :: Get Word64 | ||
parBalancedCopied <- fmap Just (get :: Get Word64) |
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.
Same here:
parBalancedCopied <- fmap Just (get :: Get Word64) | |
parBalancedCopied <- get :: Get Word64 | |
return GCStatsGHC{ gen = fromIntegral gen | |
, parNThreads = fromIntegral parNThreads | |
, parBalancedCopied = Just parBalancedCopied | |
, .. } |
LGTM, thanks! |
Just uploaded https://hackage.haskell.org/package/ghc-events-0.9.0. |
@maoe Thanks! |
Add a fixed size parser that can handle the newer version of
GCStatsGHC
Event.Fixes #31 and #41.