PHP code example of renansaddam / cakephp-xhprof-plugin
1. Go to this page and download the library: Download renansaddam/cakephp-xhprof-plugin 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/ */
renansaddam / cakephp-xhprof-plugin example snippets
// Declare the class location
App::uses('XHProf', 'XHProf.Lib');
// Start the profiler
XHProf::start();
// ... your application code
// Stop the profiler
// 1. Returning the profiler data
$data = XHProf::stop();
// 2. or Save the profiler data, returning the run id
$runId = XHProf::finish();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.