💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
* [ ] 获取运行信息(内存,吞吐率,内存等) ``` Frame::GetDebugInfo($Key = null, $Default = null); ``` Key(null|string):名称 Default (null|string....):默认内容 ***** ``` //获取整个数组 Frame::GetDebugInfo(); ``` ``` //获取数组的某一个值 Frame::GetDebugInfo('LoadTime'); ``` ``` //获取数组的某一个值,如果数组中不包含这个值则返回null //你也可以给方法第二个参数传递一个默认值,如果数组中没找到对应值则返回默认值 Frame::GetDebugInfo('LoadTime',1); ``` ``` Array ( //耗时 [LoadTime] => 0.006319 //吞吐率 [Req] => 158.25 //内存 [Ram] => 1,027.08 //请求头信息 [Header] => Array ( [cookie] => showpagetrace=1|3; showpagetrace=1|1 [accept-language] => zh-CN,zh;q=0.9 [accept-encoding] => gzip, deflate [accept] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3 [user-agent] => Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36 [upgrade-insecure-requests] => 1 [connection] => close [host] => zqphp.com ) //请求信息 [Info] => 2020-04-09 09:00:03 HTTP/1.1 GET:/index/im //就否设置路由别名 [Process] => [LoadMode] => Array ( [0] => C:\project\php\Newzqphp6\application\Lib\index.php //加载文件 [1] => index //加载类名 [2] => im //加载方法 ) [FileList] => Array ( ) //加载文件列表 ```