canteen/profiler

This package is abandoned and no longer maintained. No replacement package was suggested.

Profiler for PHP to measure memory usage and performance.

1.0.1 2013-10-12 00:00 UTC

This package is not auto-updated.

Last update: 2020-01-20 03:27:44 UTC


README

#Canteen Profiler

Canteen Profiler is a useful tool for debugging performance and memory usage of PHP. Also, Profiler has additional options for messuring SQL query performance. Canteen Profiler docs.

##Installation

Install is available using Composer.

composer require canteen/profiler dev-master

Including using the Composer autoloader in your index.

require 'vendor/autoload.php';

##Sample Usage

use Canteen\Profiler\Profiler;

// Create the profiler
$profiler = new Profiler();

$profiler->start('Some Task');
// bunch of code here!
$profiler->end('Some Task');

// Render the profiler onto your page
echo $profiler->render();

###Rebuild Documentation

This library is auto-documented using YUIDoc. To install YUIDoc, run sudo npm install yuidocjs. Also, this requires the project CanteenTheme be checked-out along-side this repository. To rebuild the docs, run the ant task from the command-line.

ant docs

##License##

Copyright (c) 2013 Matt Karl

Released under the MIT License.