Skip to content
This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
/ CanteenProfiler Public archive

Profiler for PHP to measure memory usage and performance.

License

Notifications You must be signed in to change notification settings

Canteen/CanteenProfiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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.

About

Profiler for PHP to measure memory usage and performance.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages