axel-dzhurko/load-analyser
Composer 安装命令:
composer require axel-dzhurko/load-analyser
包简介
PHP performance tool analyser your script on time, memory usage and db query. Support Laravel and Composer for web, web console and command line interfaces.
关键字:
README 文档
README
Highlight
- Support for Laravel framework » Laravel
- Support interface web, web console and command line
- Print information about PHP version, max exaction time and max memory
- Measure time, memory usage and memory peak
- Switch automatically between interfaces
- Support PHP version 5.6, 7.0, 7.1, 7.2
Easy to use
// Add namespace at the top use LoadAnalyser\LoadAnalyser; // Set measure point LoadAnalyser::point(); // // Run test code // // Finish all tasks and show test results LoadAnalyser::results();
Functions
Set measuring point with or without label
LoadAnalyser::point( <optional:label> );
Finish previous measuring point
LoadAnalyser::finish();
Finish all measuring points and return test results
LoadAnalyser::results();
Command line
Run the performance test for the command line
// Normal $ php your_script.php // Or live version $ php your_script.php --live
Installation
Install with Laravel
Get PHP performance tool by running the Composer command in the command line.
$ composer require axel-dzhurko/load-analyser
Open your file for the performance test.
// Add namespace at the top use LoadAnalyser\LoadAnalyser; // Set measure point LoadAnalyser::point(); // // Run test code // // Finish all tasks and show test results LoadAnalyser::results();
Install with Composer
Get PHP performance by running the Composer command in the command line.
$ composer require AxelDzhurko/LoadAnalyser
Open your file for the performance test.
// Require vender autoload require_once('../vendor/autoload.php'); // Add namespace at the top use LoadAnalyser\LoadAnalyser; // Set measure point LoadAnalyser::point(); // // Run test code // // Finish all tasks and show test results LoadAnalyser::results();
统计信息
- 总下载量: 909
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-06