Files
ulthon_admin/app/admin/model/XhprofRun.php
augushong e57b186126 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 遗留)
2026-08-15 06:48:45 +08:00

31 lines
833 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\admin\model;
use app\common\model\TimeModel;
/**
* @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
{
protected $name = "xhprof_run";
protected $deleteTime = false;
}