|
40 | 40 | //不过现在的框架很多都对显示做了过滤,也可以使用框架内置的显示方法,将记录的信息显示 |
41 | 41 | //获取记录的信息的方法 |
42 | 42 | LogDecorate::getLog() |
| 43 | + |
| 44 | +### 配置项 |
| 45 | + 在Conf里面的所有数组格式的配置信息都会自动加载 |
| 46 | + |
| 47 | +### 显示结果 |
| 48 | +#### HTML |
| 49 | + DebugLog showViews.total process time : 70.727 ms |
| 50 | + db total count is 2 , total time is 70.63 ms |
| 51 | + 35.549 ms : SHOW FULL COLUMNS FROM `pre_common_member` |
| 52 | + 35.081 ms : SELECT * FROM `pre_common_member` WHERE `uid` = :ThinkBind_1_859473681_ LIMIT 1 {"ThinkBind_1_859473681_":[1,1]} |
| 53 | + redis total count is 2 , total time is 0.097 ms |
| 54 | + 0.06 ms : setex_b ["b",654,3600] |
| 55 | + 0.037 ms : get_b ["b"] |
| 56 | + strace total count is 10 , total time is 0 ms |
| 57 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/vendor/topthink/framework/src/think/Pipeline.php","line":59,"function":"think\\app\\{closure}","class":"think\\app\\MultiApp","object":{},"type":"->","args":[{}]} |
| 58 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/vendor/topthink/framework/src/think/Pipeline.php","line":65,"function":"think\\{closure}","class":"think\\Pipeline","object":{},"type":"->","args":[{}]} |
| 59 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/vendor/topthink/think-multi-app/src/MultiApp.php","line":72,"function":"then","class":"think\\Pipeline","object":{},"type":"->","args":[{}]} |
| 60 | + 0 ms : strace {"function":"handle","class":"think\\app\\MultiApp","object":{},"type":"->","args":[{},{},null]} |
| 61 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/vendor/topthink/framework/src/think/Middleware.php","line":142,"function":"call_user_func","args":[[{},"handle"],{},{},null]} |
| 62 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/vendor/topthink/framework/src/think/Pipeline.php","line":84,"function":"think\\{closure}","class":"think\\Middleware","object":{},"type":"->","args":[{},{}]} |
| 63 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/vendor/topthink/framework/src/think/Pipeline.php","line":65,"function":"think\\{closure}","class":"think\\Pipeline","object":{},"type":"->","args":[{}]} |
| 64 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/vendor/topthink/framework/src/think/Http.php","line":204,"function":"then","class":"think\\Pipeline","object":{},"type":"->","args":[{}]} |
| 65 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/vendor/topthink/framework/src/think/Http.php","line":162,"function":"runWithRequest","class":"think\\Http","object":{"routePath":"/var/www/html/dshibin/topthink/route/index/"},"type":"->","args":[{}]} |
| 66 | + 0 ms : strace {"file":"/var/www/html/dshibin/topthink/public/index.php","line":20,"function":"run","class":"think\\Http","object":{"routePath":"/var/www/html/dshibin/topthink/route/index/"},"type":"->","args":[]} |
| 67 | + |
| 68 | +#### JSON |
| 69 | + { |
| 70 | + "db": [{ |
| 71 | + "time": 37.604, |
| 72 | + "log": "SHOW FULL COLUMNS FROM `pre_common_member`", |
| 73 | + "data": [] |
| 74 | + }, { |
| 75 | + "time": 37.519, |
| 76 | + "log": "SELECT * FROM `pre_common_member` WHERE `uid` = :ThinkBind_1_591995913_ LIMIT 1 ", |
| 77 | + "data": { |
| 78 | + "ThinkBind_1_591995913_": [1, 1] |
| 79 | + } |
| 80 | + }], |
| 81 | + "redis": [{ |
| 82 | + "time": 0.031, |
| 83 | + "log": "setex_b", |
| 84 | + "data": ["b", 654, 3600] |
| 85 | + }, { |
| 86 | + "time": 0.025, |
| 87 | + "log": "get_b", |
| 88 | + "data": ["b"] |
| 89 | + }], |
| 90 | + "strace": [{ |
| 91 | + "time": 0, |
| 92 | + "log": "strace", |
| 93 | + "data": { |
| 94 | + "file": "\/var\/www\/html\/dshibin\/topthink\/vendor\/topthink\/framework\/src\/think\/Pipeline.php", |
| 95 | + "line": 59, |
| 96 | + "function": "think\\app\\{closure}", |
| 97 | + "class": "think\\app\\MultiApp", |
| 98 | + "object": {}, |
| 99 | + "type": "->", |
| 100 | + "args": [{}] |
| 101 | + } |
| 102 | + }, { |
| 103 | + "time": 0, |
| 104 | + "log": "strace", |
| 105 | + "data": { |
| 106 | + "file": "\/var\/www\/html\/dshibin\/topthink\/vendor\/topthink\/framework\/src\/think\/Pipeline.php", |
| 107 | + "line": 65, |
| 108 | + "function": "think\\{closure}", |
| 109 | + "class": "think\\Pipeline", |
| 110 | + "object": {}, |
| 111 | + "type": "->", |
| 112 | + "args": [{}] |
| 113 | + } |
| 114 | + }, { |
| 115 | + "time": 0, |
| 116 | + "log": "strace", |
| 117 | + "data": { |
| 118 | + "file": "\/var\/www\/html\/dshibin\/topthink\/vendor\/topthink\/think-multi-app\/src\/MultiApp.php", |
| 119 | + "line": 72, |
| 120 | + "function": "then", |
| 121 | + "class": "think\\Pipeline", |
| 122 | + "object": {}, |
| 123 | + "type": "->", |
| 124 | + "args": [{}] |
| 125 | + } |
| 126 | + }, { |
| 127 | + "time": 0, |
| 128 | + "log": "strace", |
| 129 | + "data": { |
| 130 | + "function": "handle", |
| 131 | + "class": "think\\app\\MultiApp", |
| 132 | + "object": {}, |
| 133 | + "type": "->", |
| 134 | + "args": [{}, {}, null] |
| 135 | + } |
| 136 | + }, { |
| 137 | + "time": 0, |
| 138 | + "log": "strace", |
| 139 | + "data": { |
| 140 | + "file": "\/var\/www\/html\/dshibin\/topthink\/vendor\/topthink\/framework\/src\/think\/Middleware.php", |
| 141 | + "line": 142, |
| 142 | + "function": "call_user_func", |
| 143 | + "args": [ |
| 144 | + [{}, "handle"], {}, {}, |
| 145 | + null |
| 146 | + ] |
| 147 | + } |
| 148 | + }, { |
| 149 | + "time": 0, |
| 150 | + "log": "strace", |
| 151 | + "data": { |
| 152 | + "file": "\/var\/www\/html\/dshibin\/topthink\/vendor\/topthink\/framework\/src\/think\/Pipeline.php", |
| 153 | + "line": 84, |
| 154 | + "function": "think\\{closure}", |
| 155 | + "class": "think\\Middleware", |
| 156 | + "object": {}, |
| 157 | + "type": "->", |
| 158 | + "args": [{}, {}] |
| 159 | + } |
| 160 | + }, { |
| 161 | + "time": 0, |
| 162 | + "log": "strace", |
| 163 | + "data": { |
| 164 | + "file": "\/var\/www\/html\/dshibin\/topthink\/vendor\/topthink\/framework\/src\/think\/Pipeline.php", |
| 165 | + "line": 65, |
| 166 | + "function": "think\\{closure}", |
| 167 | + "class": "think\\Pipeline", |
| 168 | + "object": {}, |
| 169 | + "type": "->", |
| 170 | + "args": [{}] |
| 171 | + } |
| 172 | + }, { |
| 173 | + "time": 0, |
| 174 | + "log": "strace", |
| 175 | + "data": { |
| 176 | + "file": "\/var\/www\/html\/dshibin\/topthink\/vendor\/topthink\/framework\/src\/think\/Http.php", |
| 177 | + "line": 204, |
| 178 | + "function": "then", |
| 179 | + "class": "think\\Pipeline", |
| 180 | + "object": {}, |
| 181 | + "type": "->", |
| 182 | + "args": [{}] |
| 183 | + } |
| 184 | + }, { |
| 185 | + "time": 0, |
| 186 | + "log": "strace", |
| 187 | + "data": { |
| 188 | + "file": "\/var\/www\/html\/dshibin\/topthink\/vendor\/topthink\/framework\/src\/think\/Http.php", |
| 189 | + "line": 162, |
| 190 | + "function": "runWithRequest", |
| 191 | + "class": "think\\Http", |
| 192 | + "object": { |
| 193 | + "routePath": "\/var\/www\/html\/dshibin\/topthink\/route\/index\/" |
| 194 | + }, |
| 195 | + "type": "->", |
| 196 | + "args": [{}] |
| 197 | + } |
| 198 | + }, { |
| 199 | + "time": 0, |
| 200 | + "log": "strace", |
| 201 | + "data": { |
| 202 | + "file": "\/var\/www\/html\/dshibin\/topthink\/public\/index.php", |
| 203 | + "line": 20, |
| 204 | + "function": "run", |
| 205 | + "class": "think\\Http", |
| 206 | + "object": { |
| 207 | + "routePath": "\/var\/www\/html\/dshibin\/topthink\/route\/index\/" |
| 208 | + }, |
| 209 | + "type": "->", |
| 210 | + "args": [] |
| 211 | + } |
| 212 | + }] |
| 213 | + } |
0 commit comments