mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
feat(admin): XHProf 采样列表页
- curd -t ul_xhprof_run 生成三件套(控制器 xhprof.run 子目录形态,model docblock 随生成刷新) - 只读化:toolbar 清空 + 行内仅详情按钮(open 弹层 xhprof.run/detail?id=N,auth=detail), add/edit/delete 等 action 保留靠权限节点不分配拦截(T8 对齐) - 列渲染:wall_time/cpu_time μs→ms(>1000ms 红色)、memory_peak 字节→MB、 url 截断 title 全显、method 标签化、request_time 浮点秒→日期时间 - 四组搜索:url like / request_time range / wall_time 下限(前端 ms,后端换算 μs, withGet 全量合并写回)/ node_id 下拉(DISTINCT + data_brage 通道) - 生成前 scheme:sync 修复 request_time 的 null/comment 漂移(T3 手工 ALTER 遗留)
This commit is contained in:
@@ -5,16 +5,16 @@ namespace app\admin\model;
|
||||
use app\common\model\TimeModel;
|
||||
|
||||
/**
|
||||
* @property int $id 主键ID
|
||||
* @property string $node_id 节点ID(区分不同采集节点)
|
||||
* @property string $url 请求完整 URL(超长截断)
|
||||
* @property string $simple_url 规范化 URL(去 query、数字段替换,聚合用)
|
||||
* @property string $method HTTP 方法
|
||||
* @property int $wall_time 总耗时(微秒,main() 的 wt)
|
||||
* @property int $cpu_time CPU 耗时(微秒,main() 的 cpu)
|
||||
* @property int $memory_peak 内存峰值(字节,main() 的 pmu)
|
||||
* @property string $request_time 请求开始时间(REQUEST_TIME_FLOAT 浮点秒)
|
||||
* @property int $create_time 入库时间戳
|
||||
* @property int $id
|
||||
* @property string $node_id 节点ID(区分不同采集节点)
|
||||
* @property string $url 请求完整 URL(超长截断)
|
||||
* @property string $simple_url 规范化 URL(去 query、数字段替换,聚合用)
|
||||
* @property string $method HTTP 方法
|
||||
* @property int $wall_time 总耗时(微秒,main 的 wt)
|
||||
* @property int $cpu_time CPU 耗时(微秒,main 的 cpu)
|
||||
* @property int $memory_peak 内存峰值(字节,main 的 pmu)
|
||||
* @property float|double $request_time 请求开始时间(REQUEST_TIME_FLOAT 浮点秒)
|
||||
* @property int $create_time 入库时间戳
|
||||
*/
|
||||
class XhprofRun extends TimeModel
|
||||
{
|
||||
@@ -23,4 +23,8 @@ class XhprofRun extends TimeModel
|
||||
|
||||
protected $deleteTime = false;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user