v.22.8Improvement

Add Profile Events for Fsync Operations

Add profile events for fsync operations. #39179 (Azat Khuzhin).
Added profile events to track fsync operations in ClickHouse.

Why it matters

This feature enables monitoring and profiling of fsync calls, which are critical for ensuring data is flushed correctly to disk. It helps users identify and analyze the impact of fsync on performance by providing detailed metrics.

How to use it

Users can utilize the new profile events related to fsync through the ClickHouse system tables that expose profile events, enabling performance diagnostics and fine-tuning by querying those metrics.