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

--- Comment #10 from Zamundaaa <[email protected]> ---
Git commit 8b81659f8b9befde3f4cab9cb2771a23edf4c144 by Xaver Hugl.
Committed on 27/10/2026 at 12:38.
Pushed by zamundaaa into branch 'master'.

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

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

https://invent.kde.org/plasma/kwin/-/commit/8b81659f8b9befde3f4cab9cb2771a23edf4c144

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

Reply via email to