No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Debug.php 1.9KB

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