phacility / xhprof

XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface.
http://pecl.php.net/package/xhprof
Apache License 2.0
2.6k stars 925 forks source link

Added NetBSD processor affinity support. #79

Open yazshel opened 8 years ago

yazshel commented 8 years ago

Hi,

I've added processor affinity support for NetBSD to xhprof. I've tested the changes on Linux and MacOS but not FreeBSD (as I don't currently have have access to a FreeBSD box).

A couple of notes:

Verifying sleep_10000_micro...
Failed sleep_10000_micro. Expected: 10000 microsecs. Actual: 20018 microsecs.
-------------
Verifying sleep_20000_micro...
Failed sleep_20000_micro. Expected: 20000 microsecs. Actual: 29949 microsecs.
-------------
Verifying sleep_50000_micro...
OK: sleep_50000_micro
-------------

Let me know if there is anything else you'd like me to change as part of this pull request.

Cheers,

Timshel