Namespaces | |
| config_flow | |
| const | |
Functions | |
| def | _async_generate_memory_profile (HomeAssistant hass, ServiceCall call) |
| def | _async_generate_profile (HomeAssistant hass, ServiceCall call) |
| list[str] | _find_backrefs_not_to_self (Any _object) |
| str|None | _get_function_absfile (Any func) |
| Generator[None] | _increase_repr_limit () |
| None | _log_object_sources (int max_objects, set[int] last_ids, dict[str, int] last_stats) |
| def | _log_objects (*_) |
| str | _safe_repr (Any obj) |
| def | _write_memory_profile (heap, heap_path) |
| def | _write_profile (profiler, cprofile_path, callgrind_path) |
| bool | async_setup_entry (HomeAssistant hass, ConfigEntry entry) |
| bool | async_unload_entry (HomeAssistant hass, ConfigEntry entry) |
Variables | |
| tuple | _KNOWN_LRU_CLASSES |
| _LOGGER = logging.getLogger(__name__) | |
| _LRU_CACHE_WRAPPER_OBJECT = _lru_cache_wrapper.__name__ | |
| string | _SQLALCHEMY_LRU_OBJECT = "LRUCache" |
| string | CONF_ENABLED = "enabled" |
| string | CONF_MAX_OBJECTS = "max_objects" |
| string | CONF_SECONDS = "seconds" |
| int | DEFAULT_MAX_OBJECTS = 5 |
| DEFAULT_SCAN_INTERVAL = timedelta(seconds=30) | |
| string | LOG_INTERVAL_SUB = "log_interval_subscription" |
| string | SERVICE_DUMP_LOG_OBJECTS = "dump_log_objects" |
| string | SERVICE_LOG_CURRENT_TASKS = "log_current_tasks" |
| string | SERVICE_LOG_EVENT_LOOP_SCHEDULED = "log_event_loop_scheduled" |
| string | SERVICE_LOG_THREAD_FRAMES = "log_thread_frames" |
| string | SERVICE_LRU_STATS = "lru_stats" |
| string | SERVICE_MEMORY = "memory" |
| string | SERVICE_SET_ASYNCIO_DEBUG = "set_asyncio_debug" |
| string | SERVICE_START = "start" |
| string | SERVICE_START_LOG_OBJECT_SOURCES = "start_log_object_sources" |
| string | SERVICE_START_LOG_OBJECTS = "start_log_objects" |
| string | SERVICE_STOP_LOG_OBJECT_SOURCES = "stop_log_object_sources" |
| string | SERVICE_STOP_LOG_OBJECTS = "stop_log_objects" |
| tuple | SERVICES |
The profiler integration.
|
private |
Definition at line 435 of file __init__.py.
|
private |
Definition at line 398 of file __init__.py.
|
private |
Definition at line 516 of file __init__.py.
|
private |
Get the absolute file path of a function.
Definition at line 494 of file __init__.py.
|
private |
Increase the repr limit.
Definition at line 593 of file __init__.py.
|
private |
Definition at line 527 of file __init__.py.
|
private |
Definition at line 485 of file __init__.py.
|
private |
Get the repr of an object but keep going if there is an exception. We wrap repr to ensure if one object cannot be serialized, we can still get the rest.
Definition at line 504 of file __init__.py.
|
private |
Definition at line 481 of file __init__.py.
|
private |
Definition at line 470 of file __init__.py.
| bool homeassistant.components.profiler.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Set up Profiler from a config entry.
Definition at line 82 of file __init__.py.
| bool homeassistant.components.profiler.async_unload_entry | ( | HomeAssistant | hass, |
| ConfigEntry | entry | ||
| ) |
Unload a config entry.
Definition at line 388 of file __init__.py.
|
private |
Definition at line 47 of file __init__.py.
|
private |
Definition at line 79 of file __init__.py.
|
private |
Definition at line 44 of file __init__.py.
|
private |
Definition at line 45 of file __init__.py.
| string homeassistant.components.profiler.CONF_ENABLED = "enabled" |
Definition at line 72 of file __init__.py.
| string homeassistant.components.profiler.CONF_MAX_OBJECTS = "max_objects" |
Definition at line 74 of file __init__.py.
| string homeassistant.components.profiler.CONF_SECONDS = "seconds" |
Definition at line 73 of file __init__.py.
| int homeassistant.components.profiler.DEFAULT_MAX_OBJECTS = 5 |
Definition at line 70 of file __init__.py.
| homeassistant.components.profiler.DEFAULT_SCAN_INTERVAL = timedelta(seconds=30) |
Definition at line 68 of file __init__.py.
| string homeassistant.components.profiler.LOG_INTERVAL_SUB = "log_interval_subscription" |
Definition at line 76 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_DUMP_LOG_OBJECTS = "dump_log_objects" |
Definition at line 37 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_LOG_CURRENT_TASKS = "log_current_tasks" |
Definition at line 42 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_LOG_EVENT_LOOP_SCHEDULED = "log_event_loop_scheduled" |
Definition at line 40 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_LOG_THREAD_FRAMES = "log_thread_frames" |
Definition at line 39 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_LRU_STATS = "lru_stats" |
Definition at line 38 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_MEMORY = "memory" |
Definition at line 32 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_SET_ASYNCIO_DEBUG = "set_asyncio_debug" |
Definition at line 41 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_START = "start" |
Definition at line 31 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_START_LOG_OBJECT_SOURCES = "start_log_object_sources" |
Definition at line 35 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_START_LOG_OBJECTS = "start_log_objects" |
Definition at line 33 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_STOP_LOG_OBJECT_SOURCES = "stop_log_object_sources" |
Definition at line 36 of file __init__.py.
| string homeassistant.components.profiler.SERVICE_STOP_LOG_OBJECTS = "stop_log_objects" |
Definition at line 34 of file __init__.py.
| tuple homeassistant.components.profiler.SERVICES |
Definition at line 55 of file __init__.py.