I got this output from a "make perf":
Generating report Report file: benchreport.html
uname: illegal option -- o usage: uname [-amnprsv] cat: /proc/cpuinfo: No such file or directory sh: free: command not found TypeError: Cannot read property '1' of undefined at Object.getSystemInfo (bench/reports.js:240:35) at Object.genReport (bench/reports.js:72:40) at main (bench/benchmain.js:120:15) at bench/benchmain.js:130:5
It would seem that it assumes a Linux system. Can this be modified to work on Mac OS X also?
For uname, you could use "uname -a" which works on Mac OS X. /proc/cpuinfo does not exist on Mac OS X. On Mac OS X you can get a bunch of system parameters by executing the system program "system_profiler". You'll get this on stdout:
% system_profiler Hardware:
Hardware Overview:
Model Name: MacBook Pro Model Identifier: MacBookPro5,3 Processor Name: Intel Core 2 Duo Processor Speed: 2.8 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 6 MB Memory: 4 GB Bus Speed: 1.07 GHz Boot ROM Version: MBP53.00AC.B03 SMC Version (system): 1.48f2 Serial Number (system): W893814U64C Hardware UUID: 3BC167BA-45C4-529A-BA30-3658F1E9966F Sudden Motion Sensor: State: Enabled
Network:
Bluetooth: ...
Marc