About
Profiler is a built-in Home Assistant integration for diagnosing performance and memory use. It adds actions that write diagnostic information to the log, such as current asyncio tasks, thread frames, used sockets, what is scheduled in the event loop, and statistics of LRU caches. It can also create a memory profile or a system profile for a specified number of seconds. For tracking memory, separate actions start and stop logging the growth of objects and the sources of new objects, and another dumps the repr of matching objects to the log. Asyncio debug mode can be switched on or off with an action, and the integration is set up in the UI.
Automatic summary of Home Assistant's source code. Something wrong? Get in touch
Supports
Set up in the UI Add it in Settings, Devices and services. Nothing to download.
Updated with Home Assistant Ships and updates with every Home Assistant release.
Setting it up
It is added under Settings, Devices and services, with Add integration.
Actions
- Dump log objectsLets the Profiler dump the repr of all matching objects to the log.Fields: Type
- Dump used socketsLets the Profiler log information about all currently used sockets.
- Log current asyncio tasksLets the Profiler log all the current asyncio tasks.
- Log event loop scheduledLets the Profiler log what is scheduled in the event loop.
- Log thread framesLets the Profiler log the current frames for all threads.
- Log LRU statsLets the Profiler log the stats of all LRU caches.
- Create memory profileLets the Profiler create a memory profile for a specified number of seconds.Fields: Seconds
- Set asyncio debugLets the Profiler enable or disable asyncio debug.Fields: Enabled
- Create system profileLets the Profiler create a system profile for a specified number of seconds.Fields: Seconds
- Start logging object sourcesStarts the Profiler logging sources of new objects in memory.Fields: Maximum objects, Scan interval
- Start logging objectsStarts the Profiler logging growth of objects in memory.Fields: Scan interval
- Stop logging object sourcesStops the Profiler logging sources of new objects in memory.
- Stop logging objectsStops the Profiler logging growth of objects in memory.
Information
- Installs
- 3.9k sharing analytics
- Connection
- Not stated
- Upkeep
- Part of Home Assistant
- Kind
- Built-in integration
- Needs
- Built into Home Assistant
- Domain
profiler












