食堂/分析器

此包已被废弃且不再维护。未建议替代包。

用于测量PHP内存使用和性能的分析器。

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 分析器

Canteen 分析器是一个用于调试PHP性能和内存使用的有用工具。此外,分析器还提供了测量SQL查询性能的额外选项。Canteen 分析器文档

##安装

可以使用 Composer 进行安装。

composer require canteen/profiler dev-master

包括在索引中使用Composer自动加载器。

require 'vendor/autoload.php';

##示例用法

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();

###重建文档

此库使用 YUIDoc 进行自动文档化。要安装YUIDoc,请运行 sudo npm install yuidocjs。此外,这需要项目 CanteenTheme 与此存储库一起检出。要重建文档,请在命令行中运行ant任务。

ant docs

##许可证##

版权所有 (c) 2013 Matt Karl

在MIT许可证下发布。