Skip to content

Instantly share code, notes, and snippets.

@awaescher
Last active October 5, 2021 17:02
Show Gist options
  • Save awaescher/5a70f128d6c904d270156a130d1d070e to your computer and use it in GitHub Desktop.
Save awaescher/5a70f128d6c904d270156a130d1d070e to your computer and use it in GitHub Desktop.
Check if a process runs native on Apple Silicon or is translated with Rosetta 2
# use a (partial) process name or the process id to check its code type.
# you might use ("top" or "ps -A" to find running processes).
> sample processNameOrId 1 1000 | grep 'Code Type'
# examples
> sample Safari 1 1000 | grep 'Code Type'
Code Type: ARM64
> sample RepoZ 1 1000 | grep 'Code Type'
Code Type: X86-64 (translated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment