These settings are available in system.settings and are autogenerated from source.
metrics_perf_events_enabled
Type
Bool
Default
0
If enabled, some of the perf events will be measured throughout queries’ execution.
metrics_perf_events_list
Comma separated list of perf metrics that will be measured throughout queries’ execution. Empty means all events. See PerfEventInfo in sources for the available events.