kbaas/exestat
最新稳定版本:1.0.5
Composer 安装命令:
composer require kbaas/exestat
包简介
Analyze performance for Laravel requests
README 文档
README
ExeStat provides a simple way to analyze the performance of your Laravel application:
- See how long your requests take.
- See a timeline of your requests and find out which parts of the code are slow.
- See how many queries are done and which ones are duplicated.
- Allows you to add custom "breakpoints" to your timeline.
Installation
Run the following artisan command:
composer require kbaas/exestat
Usage
Visit the /exestat route in your back-end (e.g.: 127.0.0.1:8000/exestat).
Add timeline breakpoints
You can record custom breakpoints for your timeline:
exestat()->record('Before some code'); sleep(1); exestat()->record('After some code', 'Some addition comments on this event');
Configuration
You can publish the config file with the following artisan command:
php artisan vendor:publish --tag=exestat
This will create a config/exestat.php
Event capturing
By default, all events will be captured and shown in the timeline. You can disable this:
'capture_events' => false,
We already have Telescope, Debugbar etc., why use ExeStat?
There are already excellent tools available like Telescope, Debugbar, Clockwork and many more.
However, I just wanted a very lightweight and simple tool that can easily be accessed by just going to /exestat
without requiring additional setup.
It aims to not slow down your requests (by caching one array per request).
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-08
