Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

dev/stackdiff-dtrace: stack aggregation diffing script #1373

Merged
merged 2 commits into from
Feb 3, 2020

Conversation

weissi
Copy link
Member

@weissi weissi commented Jan 31, 2020

Motivation:

NIO has allocation counter tests, NIO also has dev/malloc-aggregation.d
which can give you aggregated stacks that allocated alongside how many
times they allocated. What's missing is a script that can diff two
aggregated stack traces.

Modifications:

Add dev/stacktrace-dtrace which allows aggregated stack trace diffing.

Result:

Easier to track performance regressions.

@weissi weissi force-pushed the jw-stackdiff-dtrace branch from 4b3fdc5 to 623c1ec Compare January 31, 2020 11:39
@weissi weissi requested review from glbrntt and Lukasa January 31, 2020 11:39
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jan 31, 2020
@Lukasa Lukasa added this to the 2.14.0 milestone Jan 31, 2020
Copy link
Contributor

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Basically looks good, one minor note.

Motivation:

NIO has allocation counter tests, NIO also has dev/malloc-aggregation.d
which can give you aggregated stacks that allocated alongside how many
times they allocated. What's missing is a script that can diff two
aggregated stack traces.

Modifications:

Add dev/stacktrace-dtrace which allows aggregated stack trace diffing.

Result:

Easier to track performance regressions.
@weissi weissi force-pushed the jw-stackdiff-dtrace branch from 623c1ec to 59fc300 Compare January 31, 2020 15:41
@weissi weissi requested a review from Lukasa January 31, 2020 15:44
@weissi
Copy link
Member Author

weissi commented Feb 1, 2020

@swift-nio-bot test this please

@Lukasa Lukasa merged commit a76a98e into apple:master Feb 3, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants