axel-dzhurko/load-analyser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固