Skip to content

analyze_code_size.py: provide option to further categorize specialized functions #32439

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

aschwaighofer
Copy link
Contributor

The categorization can be viewed by using the -group-specializations command
line argument.

% utils/analyze_code_size.py -arch arm64e -group-specializations -categorize exe

Add -list-group-specializations to see the individual functions listed
under each group.

Current groups:

Swift.stdlib                class
Standard library specialization with one class type.

Swift.stdlib          class(dict)
Standard library specialization of a dictionary type with a single class type.

Swift.stdlib           foundation
Standard library specialization involving one foundation type (and possibly a
standard library type) or two foundation types.

Swift.stdlib    foundation, class
Standard library specialization where the the first type is from the
Foundation library and the second is a class.

Swift.stdlib                other
Standard library specialization with types other than the ones listed
here.

Swift.stdlib               stdlib
Standard library specialization involving standard library types only.

Swift.stdlib        stdlib, class
Standard library specialization where the the first type is from the
standard library and the second is a class.

…d functions

The categorization can be viewed by using the `-group-specializations` command
line argument.

```
% utils/analyze_code_size.py -arch arm64e -group-specializations -categorize exe
```

Add `-list-group-specializations` to see the individual functions listed
under each group.

Current groups:

Swift.stdlib                class
Standard library specialization with one class type.

Swift.stdlib          class(dict)
Standard library specialization of a dictionary type with a single class type.

Swift.stdlib           foundation
Standard library specialization involving one foundation type (and possibly a
standard library type) or two foundation types.

Swift.stdlib    foundation, class
Standard library specialization where the the first type is from the
Foundation library and the second is a class.

Swift.stdlib                other
Standard library specialization with types other than the ones listed
here.

Swift.stdlib               stdlib
Standard library specialization involving standard library types only.

Swift.stdlib        stdlib, class
Standard library specialization where the the first type is from the
standard library and the second is a class.
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@aschwaighofer aschwaighofer merged commit 0b6d7d4 into swiftlang:master Jun 18, 2020
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.

1 participant