mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Document profiler.set_asyncio_debug service (#31889)
* Document profiler.set_asyncio_debug service * Update source/_integrations/profiler.markdown
This commit is contained in:
parent
2a03796f4d
commit
ed23b98ca7
@ -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.
|
Loading…
x
Reference in New Issue
Block a user