mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
dev/stackdiff-dtrace: stack aggregation diffing script (#1373)
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.
This commit is contained in:
1 parent
a8fe2f343b
commit
a76a98eb00
2 files changed
+113
-1
No files matched your search
+20
-1
@@ -36,7 +36,7 @@ fi
|
||||
printf "=> Checking license headers... "
|
||||
tmp=$(mktemp /tmp/.swift-nio-sanity_XXXXXX)
|
||||
|
||||
for language in swift-or-c bash dtrace; do
|
||||
for language in swift-or-c bash dtrace python; do
|
||||
declare -a matching_files
|
||||
declare -a exceptions
|
||||
expections=( )
|
||||
@@ -78,6 +78,25 @@ EOF
|
||||
## SPDX-License-Identifier: Apache-2.0
|
||||
##
|
||||
##===----------------------------------------------------------------------===##
|
||||
EOF
|
||||
;;
|
||||
python)
|
||||
matching_files=( -name '*.py' )
|
||||
cat > "$tmp" <<"EOF"
|
||||
#!/usr/bin/env python
|
||||
##===----------------------------------------------------------------------===##
|
||||
##
|
||||
## This source file is part of the SwiftNIO open source project
|
||||
##
|
||||
## Copyright (c) YEARS Apple Inc. and the SwiftNIO project authors
|
||||
## Licensed under Apache License v2.0
|
||||
##
|
||||
## See LICENSE.txt for license information
|
||||
## See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
||||
##
|
||||
## SPDX-License-Identifier: Apache-2.0
|
||||
##
|
||||
##===----------------------------------------------------------------------===##
|
||||
EOF
|
||||
;;
|
||||
dtrace)
|
||||
|
||||
Reference in new issue
Block a user