Add ipv6 entries in /etc/hosts for MAMP hosts, avoid slow dns resolution.
It must be executed after each MAMP restart.
See http://stackoverflow.com/questions/6841421/mac-osx-lion-dns-lookup-order
Add ipv6 entries in /etc/hosts for MAMP hosts, avoid slow dns resolution.
It must be executed after each MAMP restart.
See http://stackoverflow.com/questions/6841421/mac-osx-lion-dns-lookup-order
| $path = '/usr/share/php'; | |
| include_once $path . '/xhprof_lib/utils/xhprof_lib.php'; | |
| include_once $path . '/xhprof_lib/utils/xhprof_runs.php'; | |
| xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); | |
| // YOUR CODE HERE | |
| $namespace = 'app_namespace'; | |
| $xhprof_data = xhprof_disable(); |
| <?php | |
| list($usec, $sec) = explode(' ', microtime()); | |
| $timer = (float)$usec + (float)$sec; | |
| // | |
| // YOUR CODE HERE | |
| // | |
| list($usec, $sec) = explode(' ', microtime()); |