v.21.9Improvement
Add Events to Profile Calls for sleep Functions
Add events to profile calls tosleep/sleepEachRow. #26320 (Raúl Marín).
Why it matters
This feature allows users to track and profile the usage and performance impact ofsleep and sleepEachRow functions during query execution. It helps in understanding delays caused by these functions and in optimizing query performance.How to use it
Profiling events forsleep and sleepEachRow are automatically collected when these functions are used in queries. Users can enable query profiling as usual to see detailed information about these function calls.