这些设置可在 system.settings 中查看,并由 源文件 自动生成。
trace_profile_events
类型
Bool
默认值
0
启用或禁用以下功能:在每次更新 profile events 时收集 stacktraces,并连同 profile event 的名称和增量值一起发送到 trace_log。
可能的值:
- 1 — 已启用 profile events 跟踪。
- 0 — 已禁用 profile events 跟踪。
trace_profile_events_list
版本历史
| 版本 | 默认值 | 注释 |
|---|---|---|
| 26.1 | 新设置 |
启用设置 trace_profile_events 时,会将被追踪的事件限制为指定的逗号分隔名称列表。
如果 trace_profile_events_list 为空字符串 (默认值) ,则会追踪所有 profile events。
示例值:'DiskS3ReadMicroseconds,DiskS3ReadRequestsCount,SelectQueryTimeMicroseconds,ReadBufferFromS3Bytes'
使用此设置可以更精确地收集大量查询的数据;否则,大量事件可能会导致内部系统日志队列溢出,从而有一部分事件会被丢弃。