https://bugs.kde.org/show_bug.cgi?id=527622

--- Comment #13 from Zamundaaa <[email protected]> ---
Git commit 273d39d9f13e16f8c65f85ecc48ff2b20ce745b6 by Xaver Hugl.
Committed on 27/10/2026 at 14:06.
Pushed by zamundaaa into branch 'Plasma/6.8'.

main: add a hang detection thread

The timeout after which a hang is detected is configured with the
KWIN_HANG_DETECTION_TIMEOUT environment variable (in microseconds).

If it's set to a value greater than zero, the thread runs in the background
and pings the main thread after every timeout. Whenever the main thread
doesn't respond within the timeout, it
- prints a warnings that the main thread is hanging, so that you can set a
  breakpoint on `Application::onMainHang` to get the main thread's backtrace
- prints how long the main thread did hang after it recovers, as an objective
  measurement when trying to improve the situation
(cherry picked from commit 8b81659f8b9befde3f4cab9cb2771a23edf4c144)

M  +53   -0    src/main.cpp
M  +11   -0    src/main.h

https://invent.kde.org/plasma/kwin/-/commit/273d39d9f13e16f8c65f85ecc48ff2b20ce745b6

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to