定制 myaghobi/f3-benchmark 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

myaghobi/f3-benchmark

最新稳定版本:v1.6.0

Composer 安装命令:

composer require myaghobi/f3-benchmark

包简介

A benchmark helper plugin for Fat-Free framework.

README 文档

README

A benchmark & debug helper plugin for Fat-Free framework.

screenshot

Install

Just run the below code:

composer require myaghobi/f3-benchmark

Usage

The plugin works if DEBUG>=3, otherwise, it goes disable to prevent security issues and with no resource usage. Initiate Benchmark after your config file:

$f3->config('config.ini');
\Benchmark::instance();
...

or

// $f3->set('UI', 'ui/');
$f3->set('UI', YOUR_UI_PATH);
// $f3->set('DEBUG', 3);
$f3->set('DEBUG', YOUR_DEBUG_LEVEL);

\Benchmark::instance();

The plugin reserve benchmark in f3, after initiate, you can make your checkpoints:

$f3->get('benchmark')->checkPoint('myTag');
...

For DEBUG<3, the plugin goes disable with no resource usage so it's not necessary to remove your checkpoints in production mode.

License

You are allowed to use this plugin under the terms of the GNU General Public License version 3 or later.

Copyright (C) 2023 Mohammad Yaghobi

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2020-10-09