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 stackprof's ignore_gc option #42

Merged
merged 1 commit into from
Apr 18, 2022
Merged

Conversation

swalkinshaw
Copy link
Contributor

Allows the ignore_gc boolean option and passes it through to stackprof.

By default, samples taken during garbage collection will show as garbage collection frames including both mark and sweep phases. For longer traces, these can leave gaps in a flamegraph that are hard to follow. They can be disabled by setting the ignore_gc option to true. Garbage collection time will still be present in the profile but not explicitly marked with its own frame.

Copy link
Contributor

@jasonhl jasonhl left a comment

Choose a reason for hiding this comment

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

One nitpick which you can choose to address or ignore.

@swalkinshaw swalkinshaw force-pushed the support-ignoregc-option branch 2 times, most recently from be7cac3 to c24ed1c Compare April 7, 2022 18:22
Copy link
Member

@gmcgibbon gmcgibbon left a comment

Choose a reason for hiding this comment

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

Can we document this in the README?

Allows the `ignore_gc` boolean option and passes it through to
stackprof.

> By default, samples taken during garbage collection will show as garbage collection frames including both mark and sweep phases.
> For longer traces, these can leave gaps in a flamegraph that are hard to follow. They can be disabled by setting the ignore_gc option to true.
> Garbage collection time will still be present in the profile but not explicitly marked with its own frame.
@swalkinshaw
Copy link
Contributor Author

Added to README 👍

@swalkinshaw swalkinshaw merged commit 53b3930 into main Apr 18, 2022
@swalkinshaw swalkinshaw deleted the support-ignoregc-option branch April 18, 2022 21:05
@shopify-shipit shopify-shipit bot temporarily deployed to production April 18, 2022 21:06 Inactive
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.

3 participants