Appgati
Script to gauge PHP application's performance.
Install / Use
/learn @fotuzlab/AppgatiREADME
AppGati
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.
Related Skills
node-connect
346.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
107.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
346.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
346.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
