Document profiler.set_asyncio_debug service (#31889)

* Document profiler.set_asyncio_debug service

* Update source/_integrations/profiler.markdown
This commit is contained in:
J. Nick Koston 2024-03-17 21:34:31 -10:00 committed by GitHub
parent 2a03796f4d
commit ed23b98ca7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,3 +187,13 @@ Each upcoming scheduled item is logged similar to the below example:
{% my developer_call_service badge service="profiler.lru_stats" %} {% 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. 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.