What are you planning to do with this info?
If this is purely for logging purposes — say you’re creating an asset management product and want it return info about the Mac’s memory setup – I think running the system_profiler
tool is your best option. Don’t forget to specify the -xml
option to get parseable output.
since this command do not return all above data for Apple M1 machine.
It doesn’t return all that info on my Intel MacBook Pro either. The reality is that much of this info doesn’t make sense in a world of integrated (Intel) and SOC (Apple silicon) memory.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"