承接 atk14/dbmole-panel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

atk14/dbmole-panel

Composer 安装命令:

composer require atk14/dbmole-panel

包简介

A panel for Tracy Debugger with DbMole statistics

README 文档

README

A panel for Tracy Debugger with DbMole statistics. This is highly recommended tool for profiling an ATK14 application.

Basic usage

$bar = Tracy\Debugger::getBar();
$bar->addPanel(new DbMolePanel($dbmole));

Usage in an ATK14 application (built upon Atk14Skelet)

Use the Composer to install the panel.

cd path/to/your/atk14/project/
composer require atk14/dbmole-panel

Load autoloader from the Composer and enable the Tracy Debugger.

// file: lib/load.php
require(__DIR__."/../vendor/autoload.php");

if(
  !TEST &&
  !$HTTP_REQUEST->xhr() &&
  php_sapi_name()!="cli" // we do not want Tracy in cli
){
  Tracy\Debugger::enable(PRODUCTION, __DIR__ . '/../log/');
}

Enable collecting of the DbMole statistics in DEVELOPMENT.

// file: config/settings.php
define("DBMOLE_COLLECT_STATISTICS",DEVELOPMENT);

Add the DbMole panel to the Tracy in _application_after_filter().

// file: app/controllers/application_base.php
function _application_after_filter(){
  if(DBMOLE_COLLECT_STATISTICS){
    $bar = Tracy\Debugger::getBar();
    $bar->addPanel(new DbMolePanel($this->dbmole));
  }
}

Licence

DbMolePanel is free software distributed under the terms of the MIT license

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固