Skip to content

Conversation

@rjmansfield
Copy link
Contributor

This patch adds support for Darwin/Mach-O archives.

Also, note this PR contains 175026f which has its own PR here: #481 but I'm including it here as it is a dependency and annoying to stack patches. Ideally I can rebase if/when it lands.

Note, for archives containing universal binaries, --domain=vm does not currently produce meaningful results because each architecture has its own independent address space, causing address collisions when combined. So a user should use --domain=file or filter to a single architecture with --source-filter=. This can be addressed if each slice gets it's own vm address space, e.g. using #480

Implements the 'archs' data source to break down universal binaries
by architecture.

This allows users to:

- View file size breakdown by architecture: bloaty -d archs
- Filter to specific architecture: bloaty -d archs,segments --source-filter=arm64
- Hierarchical breakdown: bloaty -d archs,segments
Note, for archives containing universal binaries, --domain=vm does not currently
produce meaningful results because each architecture has its own independent
address space, causing address collisions when combined. Use --domain=file instead,
for filter to a single architecture with --source-filter=<arch>.

Fixes google#153
Fixes google#293
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