Last active
October 5, 2021 17:02
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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