Home Assistant Unofficial Reference 2024.12.1
__init__.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.profiler
 

Functions

def homeassistant.components.profiler._async_generate_memory_profile (HomeAssistant hass, ServiceCall call)
 
def homeassistant.components.profiler._async_generate_profile (HomeAssistant hass, ServiceCall call)
 
list[str] homeassistant.components.profiler._find_backrefs_not_to_self (Any _object)
 
str|None homeassistant.components.profiler._get_function_absfile (Any func)
 
Generator[None] homeassistant.components.profiler._increase_repr_limit ()
 
None homeassistant.components.profiler._log_object_sources (int max_objects, set[int] last_ids, dict[str, int] last_stats)
 
def homeassistant.components.profiler._log_objects (*_)
 
str homeassistant.components.profiler._safe_repr (Any obj)
 
def homeassistant.components.profiler._write_memory_profile (heap, heap_path)
 
def homeassistant.components.profiler._write_profile (profiler, cprofile_path, callgrind_path)
 
bool homeassistant.components.profiler.async_setup_entry (HomeAssistant hass, ConfigEntry entry)
 
bool homeassistant.components.profiler.async_unload_entry (HomeAssistant hass, ConfigEntry entry)
 

Variables

tuple homeassistant.components.profiler._KNOWN_LRU_CLASSES
 
 homeassistant.components.profiler._LOGGER = logging.getLogger(__name__)
 
 homeassistant.components.profiler._LRU_CACHE_WRAPPER_OBJECT = _lru_cache_wrapper.__name__
 
string homeassistant.components.profiler._SQLALCHEMY_LRU_OBJECT = "LRUCache"
 
string homeassistant.components.profiler.CONF_ENABLED = "enabled"
 
string homeassistant.components.profiler.CONF_MAX_OBJECTS = "max_objects"
 
string homeassistant.components.profiler.CONF_SECONDS = "seconds"
 
int homeassistant.components.profiler.DEFAULT_MAX_OBJECTS = 5
 
 homeassistant.components.profiler.DEFAULT_SCAN_INTERVAL = timedelta(seconds=30)
 
string homeassistant.components.profiler.LOG_INTERVAL_SUB = "log_interval_subscription"
 
string homeassistant.components.profiler.SERVICE_DUMP_LOG_OBJECTS = "dump_log_objects"
 
string homeassistant.components.profiler.SERVICE_LOG_CURRENT_TASKS = "log_current_tasks"
 
string homeassistant.components.profiler.SERVICE_LOG_EVENT_LOOP_SCHEDULED = "log_event_loop_scheduled"
 
string homeassistant.components.profiler.SERVICE_LOG_THREAD_FRAMES = "log_thread_frames"
 
string homeassistant.components.profiler.SERVICE_LRU_STATS = "lru_stats"
 
string homeassistant.components.profiler.SERVICE_MEMORY = "memory"
 
string homeassistant.components.profiler.SERVICE_SET_ASYNCIO_DEBUG = "set_asyncio_debug"
 
string homeassistant.components.profiler.SERVICE_START = "start"
 
string homeassistant.components.profiler.SERVICE_START_LOG_OBJECT_SOURCES = "start_log_object_sources"
 
string homeassistant.components.profiler.SERVICE_START_LOG_OBJECTS = "start_log_objects"
 
string homeassistant.components.profiler.SERVICE_STOP_LOG_OBJECT_SOURCES = "stop_log_object_sources"
 
string homeassistant.components.profiler.SERVICE_STOP_LOG_OBJECTS = "stop_log_objects"
 
tuple homeassistant.components.profiler.SERVICES