Uninote
Uninote
用户根目录
每日点滴

<!DOCTYPE html> <html><head><meta http-equiv='Content-Type' content='text/html; charset=utf8'><title>php codetracker ct</title> <script> var g_resRoot = '../../__res/'; var g_json_outline = '{"children":[{"children":[],"level":1,"lvNumber":"1","text":"ct输出解释"},{"children":[],"level":1,"lvNumber":"2","text":"实现文件"},{"children":[],"level":1,"lvNumber":"3","text":"关键配置"},{"children":[],"level":1,"lvNumber":"4","text":"输出路径"},{"children":[],"level":1,"lvNumber":"5","text":"php ct todo"}],"level":0,"lvNumber":"","text":"php codetracker ct"}'; </script> <link rel='stylesheet' type='text/css' href='../../__res/common.css'><style>.s0{color:#000000;} .s1{color:#000000;} </style> </head><body> <script src='../../__res/util.js'></script><div id='outline'> <li><a href='#ol_0' style='font-weight:bold; font-size:22px'>php codetracker ct</a></li> <li> <a href='#ol_1' >ct输出解释</a></li> <li> <a href='#ol_2' >实现文件</a></li> <li> <a href='#ol_3' >关键配置</a></li> <li> <a href='#ol_4' >输出路径</a></li> <li> <a href='#ol_5' >php ct todo</a></li> </div>

<t id='39102fb3-59da-4df7-97b0-bb5c768d8978'> <pre class='tnd_head'>lv1=php lv2= type=</pre> <pre id='ol_0' class='title'>php codetracker ct</pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>代码跟踪,简称ct,也可以理解为医学上的ct简称,用于检查问题的工具。</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s1'>X:\project\Visual Studio Projects\FindHelper\FindHelper\bin\Debug\CodeViewer.exe</d></pre> <pre><d class='s1'>click:Test ct parse</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_1'>ct输出解释</h1> <pre><d class='s0'>cur_time:输出绝对时间,为了定位比较test、admin间的输出。</d></pre> <pre><d class='s0'>total_time:当前请求消耗的相对总时间。</d></pre> <pre><d class='s0'>delta_time:表示上一函数的消耗时间,注意,不是当前函数的消耗时间。因为没有办法在当前函数执行即将完成时调用CT。</d></pre> <pre><d class='s0'>overtime:超过时间阈值,有此输出。</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_2'>实现文件</h1> <pre><d class='s1'>basic\common.php</d></pre> <pre><d class='s1'>覆盖配置文件:</d></pre> <pre><d class='s1'>basic\common.my.php</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_3'>关键配置</h1> <pre><d class='s1'>// 关闭ct,默认为true,因为开启会有一定的性能损耗</d></pre> <pre><d class='s1'>$CT_off = true;</d></pre> <pre><d class='s1'>// ct输出格式,默认为空(""),当需要检查代码覆盖时,改为"raw"</d></pre> <pre><d class='s1'>$CT_format = "";</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_4'>输出路径</h1> <pre><d class='s1'>runtime/logs/ct.txt</d></pre> <pre><d class='s1'></d></pre> <t id='b0b111e0-78a3-4d97-8d51-5b17e61dd30b'> <pre class='tnd_head'>lv1=php lv2=codetracker type=</pre> <h1 id='ol_5'>php ct todo</h1> <pre><d class='s1'>ct:</d></pre> <pre><d class='s1'>php load 输出</d></pre> <pre><d class='s1'>Dispatcher::dispatch > Dispatcher.dispatch</d></pre> <pre><d class='s1'>这个需要过滤掉: \app\controllers\api\UserinfoController::actionRecommend</d></pre> <pre><d class='s1'><img src='..\pic\675e47dd6637072334a704e611dcae18.jpg' /></d><d class='s0'></d></pre> </t> </t> </body></html>

log_viewer

regex

点赞(0) 阅读(62) 举报
目录
标题