类型: | enum |
默认: | none |
上下文: | superuser |
重新开始: | false |
值: | [none, pl, all] |
启用跟踪函数调用计数和用时。指定pl
只跟踪过程语言函数,指定all
还会跟踪 SQL 和 C 语言函数。默认值是none
,它禁用函数统计跟踪。只有超级用户可以更改这个设置。
简单到足以被内联到调用查询中的 SQL 语言函数不会被跟踪, 而不管这个设置。
建议 [EN]
Set it to 'pl' to collect stats on user-defined functions. Very useful for stored procedure performance profiling and troubleshooting.