-
Notifications
You must be signed in to change notification settings - Fork 719
add useful dtrace scripts to debug allocations #352
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
Conversation
|
@swift-nio-bot test this please |
|
the failure in 4.1 was guess we can just retry that |
|
@swift-nio-bot test this please |
|
@swift-nio-bot test this please |
Lukasa
left a comment
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.
Minor nit
dev/malloc-aggregation.d
Outdated
| printf("This will collect stack shots of allocations and print it when "); | ||
| printf("you exit dtrace.\n"); | ||
| printf("So go ahead, run your tests and then press Ctrl+C in this window "); | ||
| printf("to see the aggreated result\n"); |
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.
Nit: "aggregated"
def28f9 to
ffcd471
Compare
Motivation: dtrace is extrmely useful when debugging allocation related issues. This adds two scripts that have helped me many times. Modifications: - `dev/malloc-aggregation.d` which prints an aggregation of all stacks that have allocated - `dev/boxed-existentials.d` which live prints all allocations of boxed existentials Result: sharing debugging tools is great
ffcd471 to
f7b9acf
Compare
Motivation:
dtrace is extrmely useful when debugging allocation related issues. This
adds two scripts that have helped me many times.
Modifications:
dev/malloc-aggregation.dwhich prints an aggregation of allstacks that have allocated
dev/boxed-existentials.dwhich live prints all allocations of boxedexistentials
Result:
sharing debugging tools is great