feat(admin): XHProf 性能日志五张表 Scheme 迁移与模型

This commit is contained in:
augushong
2026-08-14 22:04:52 +08:00
parent da388a8c4f
commit 7e73902325
15 changed files with 478 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
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 入库时间戳
*/
class XhprofRun extends TimeModel
{
protected $name = "xhprof_run";
protected $deleteTime = false;
}