From ed23b98ca74e415749c897d6a4f66eca2b29e1b6 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 17 Mar 2024 21:34:31 -1000 Subject: [PATCH] Document profiler.set_asyncio_debug service (#31889) * Document profiler.set_asyncio_debug service * Update source/_integrations/profiler.markdown --- source/_integrations/profiler.markdown | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/_integrations/profiler.markdown b/source/_integrations/profiler.markdown index 1c78faa4a86..8563b5cda1e 100644 --- a/source/_integrations/profiler.markdown +++ b/source/_integrations/profiler.markdown @@ -187,3 +187,13 @@ Each upcoming scheduled item is logged similar to the below example: {% my developer_call_service badge service="profiler.lru_stats" %} Logs statistics from [lru_cache](https://docs.python.org/3/library/functools.html#functools.lru_cache) and [lru-dict](https://pypi.org/project/lru-dict/) to help tune Home Assistant and locate memory leaks. + +### Service profiler.set_asyncio_debug + +{% my developer_call_service badge service="profiler.set_asyncio_debug" %} + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | -------------------------------------- | +| `enabled` | yes | Boolean to enable asyncio debug. | + +When `set_asyncio_debug` is enabled, `asyncio` will run in [debug mode](https://docs.python.org/3/library/asyncio-dev.html#debug-mode). Use this service to help identify an integration that is blocking the event loop. \ No newline at end of file