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

Add support for heap profiling events #29

Merged
merged 10 commits into from
Jun 6, 2017
Merged

Conversation

maoe
Copy link
Member

@maoe maoe commented May 29, 2017

This MR adds support for the new heap profiling events support in eventlog.

There are some points that are worth mentioning:

  • EventLogFormat.h is updated. As in Use EventLogFormat.h from upstream (GHC) #27, we don't use the upstream version so I manually applied relevant patches from GHC.
  • I chose to use Text instead of String for various text fields in the heap profiling events. Also I switched over the textual serializers from bytestring's builder to text's.
  • The textual format of heap profiling events is kind of arbitrary. I'm happy to change it if anyone has a better idea.
  • The code format of heapProfParsers looks a bit different from the other parts of the module because I'm not comfortable with the current format which causes a lot of HLint warnings.. Please let me know if it's better to make it similar.

@maoe maoe mentioned this pull request May 30, 2017
@maoe
Copy link
Member Author

maoe commented Jun 2, 2017

Does anyone volunteer to review this?

@maoe
Copy link
Member Author

maoe commented Jun 6, 2017

It's been a week. I think I'll just merge this if there are no objections.

@simonmar
Copy link
Member

simonmar commented Jun 6, 2017

Took a brief look, no objections from me.

@maoe
Copy link
Member Author

maoe commented Jun 6, 2017

Thanks! I'll merge this and release v0.7.0 when I have time today.

@maoe maoe merged commit 8ff5c1d into haskell:master Jun 6, 2017
@maoe maoe deleted the heap-prof branch June 6, 2017 23:10
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.

2 participants