> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# trace_profile_events_* session settings

> ClickHouse session settings in the trace_profile_events_* generated group.

These settings are available in [system.settings](https://clickhouse.com/docs/reference/system-tables/settings.md) and are autogenerated from [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp).

## trace\_profile\_events

Type

Bool

Default

0

Enables or disables collecting stacktraces on each update of profile events along with the name of profile event and the value of increment and sending them into [trace\_log](https://clickhouse.com/docs/reference/system-tables/trace_log.md).

Possible values:

* 1 — Tracing of profile events enabled.
* 0 — Tracing of profile events disabled.

## trace\_profile\_events\_list

When the setting `trace_profile_events` is enabled, limit the traced events to the specified list of comma-separated names.
If the `trace_profile_events_list` is an empty string (by default), trace all profile events.

Example value: 'DiskS3ReadMicroseconds,DiskS3ReadRequestsCount,SelectQueryTimeMicroseconds,ReadBufferFromS3Bytes'

Using this setting allows more precise collection of data for a large number of queries, because otherwise the vast amount of events can overflow the internal system log queue and some portion of them will be dropped.

The names are checked against [`system.events`](https://clickhouse.com/docs/reference/system-tables/events), and a query fails if the list mentions an event that does not exist.
