haskell / ghc-events

Library and tool for parsing .eventlog files from GHC
http://www.haskell.org/haskellwiki/ThreadScope
Other
33 stars 34 forks source link

Support new field 'par_balanced_copied_bytes' of EVENT_GC_STATS_GHC #31

Closed duog closed 5 years ago

duog commented 6 years ago

This field was added in this commit.

I would like to add support for this to ghc-events, if you could provide some guidance on how you would like this done.

The options I see are:

I would also like to add a function

--| Computes the cumulative parallel work balance of the argument garbage collections.   
workBalance :: [GCStatsGC] -> Double
maoe commented 6 years ago

Do you mean GCStatsGHC rather than GCStatsGC?

As to which option to choose, I guess it's a good idea to try both in the threadscope code base to see which one is better to work with.

duog commented 6 years ago

Yes I do mean GCStatsGHC. I'll try both with threadscope as you suggest. It might be a week or two before I get to this.