subiabre/appgati 问题修复 & 功能扩展

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

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

subiabre/appgati

最新稳定版本:v2.0

Composer 安装命令:

composer require subiabre/appgati

包简介

Package to gauge PHP app's performance. Based on original appgati.

README 文档

README

Based on the original AppGati, refactored to modern PHP.

Installation

$ composer require --dev subiabre/appgati

Usage

AppGati allows you to easily gauge the performance of PHP script's.

<?php

include 'vendor/autoload';

$app = new AppGati;

$app->step('start');

// some code...

$app->step('end');

$report = $app->getReport('start', 'end');

print_r($report);

Output:

Array
(
    ['Clock time in seconds'] => 14.363237142563
    ['Time taken in User Mode in seconds'] => 0.676958
    ['Time taken in System Mode in seconds'] => 13.680072
    ['Total time taken in Kernel in seconds'] => 14.35703
    ['Memory limit in MB'] => -1
    ['Memory usage in MB'] => 0.002655029296875
    ['Peak memory usage in MB'] => 1.0958099365234
    ['Maximum resident shared size in KB'] => 0
    ['Integral shared memory size'] => 0
    ['Integral unshared data size'] => 0
    ['Integral unshared stack size'] => Not Available
    ['Number of page reclaims'] => 0
    ['Number of page faults'] => 0
    ['Number of block input operations'] => 0
    ['Number of block output operations'] => Not Available
    ['Number of messages sent'] => 0
    ['Number of messages received'] => 0
    ['Number of signals received'] => 0
    ['Number of voluntary context switches'] => 0
    ['Number of involuntary context switches'] => 1514
)

AppGati works by creating snapshots of time and system information in a given moment, known as steps, and then comparing two different steps. By using AppGati you can easily track your application performance in several different moments in an easy fashion, but it's still nothing short of an authentic benchmark tool such as Xdebug profiling capabilities.

统计信息

  • 总下载量: 4.95k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-05