Supporting perf.py on Mac OS
Merge pull request #560 from ifilippov/perf

Supporting perf.py on Mac OS