shopxo/thinkphp/library/think/facade/Debug.php
2019-11-11 20:57:06 +08:00

41 lines
1.9 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace think\facade;
use think\Facade;
/**
* @see \think\Debug
* @mixin \think\Debug
* @method void remark(string $name, mixed $value = '') static 记录时间(微秒)和内存使用情况
* @method int getRangeTime(string $start, string $end, mixed $dec = 6) static 统计某个区间的时间(微秒)使用情况
* @method int getUseTime(int $dec = 6) static 统计从开始到统计时的时间(微秒)使用情况
* @method string getThroughputRate(string $start, string $end, mixed $dec = 6) static 获取当前访问的吞吐率情况
* @method string getRangeMem(string $start, string $end, mixed $dec = 2) static 记录区间的内存使用情况
* @method int getUseMem(int $dec = 2) static 统计从开始到统计时的内存使用情况
* @method string getMemPeak(string $start, string $end, mixed $dec = 2) static 统计区间的内存峰值情况
* @method mixed getFile(bool $detail = false) static 获取文件加载信息
* @method mixed dump(mixed $var, bool $echo = true, string $label = null, int $flags = ENT_SUBSTITUTE) static 浏览器友好的变量输出
*/
class Debug extends Facade
{
/**
* 获取当前Facade对应类名或者已经绑定的容器对象标识
* @access protected
* @return string
*/
protected static function getFacadeClass()
{
return 'debug';
}
}