mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 20:55:32 +08:00
35 lines
868 B
PHP
35 lines
868 B
PHP
<?php
|
||
|
||
namespace app\admin\model;
|
||
|
||
use app\common\model\TimeModel;
|
||
|
||
/**
|
||
* XHProf 采样与监控规则命中聚合(导入时物化)
|
||
*
|
||
* @property int $id 主键ID
|
||
* @property int $run_id 采样记录ID(ul_xhprof_run.id)
|
||
* @property int $watch_id 监控规则ID(ul_xhprof_watch.id)
|
||
* @property int $ct 命中边次数和
|
||
* @property int $wt_sum 命中耗时合计(微秒)
|
||
* @property int $wt_max 命中单次最大耗时(微秒)
|
||
* @property int $create_time 入库时间戳
|
||
*/
|
||
class XhprofRunWatch extends TimeModel
|
||
{
|
||
|
||
protected $name = "xhprof_run_watch";
|
||
|
||
protected $deleteTime = false;
|
||
|
||
public function run()
|
||
{
|
||
return $this->belongsTo('app\admin\model\XhprofRun', 'run_id', 'id');
|
||
}
|
||
|
||
public function watch()
|
||
{
|
||
return $this->belongsTo('app\admin\model\XhprofWatch', 'watch_id', 'id');
|
||
}
|
||
}
|