PHP code example of cofa / performance-tracking-times
1. Go to this page and download the library: Download cofa/performance-tracking-times library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cofa / performance-tracking-times example snippets
js
await RequestTiming.measure(() => {
const body = buildExpensivePayload(); // counted as "calculating"
return fetch('/api/orders', { method: 'POST', body });
});
// or mark the start yourself; the next request within a minute picks it up
RequestTiming.markCalculating();
bash
php artisan performance-tracking:password
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.