PHP code example of koalamer / tideways-xhprof-free-scheduler
1. Go to this page and download the library: Download koalamer/tideways-xhprof-free-scheduler 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/ */
koalamer / tideways-xhprof-free-scheduler example snippets
use koalamer\Tideways\TidewaysXhprofFreeScheduler;
TidewaysXhprofFreeScheduler::setStartingChanceDivisor(100);
TidewaysXhprofFreeScheduler::init()
TidewaysXhprofFreeScheduler::setSegmentation("1-host", gethostname())
TidewaysXhprofFreeScheduler::setSegmentation("3-module", "awesome-module")
TidewaysXhprofFreeScheduler::setSegmentation("2-day", date("Y-m-d"))
TidewaysXhprofFreeScheduler::setSegmentation("0-root","/tmp")
TidewaysXhprofFreeScheduler::setSegmentation("4-action","")