mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
Add runtime_stats component for performance debugging and analysis (#9386)
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
39
tests/integration/fixtures/runtime_stats.yaml
Normal file
39
tests/integration/fixtures/runtime_stats.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
esphome:
|
||||
name: runtime-stats-test
|
||||
|
||||
host:
|
||||
|
||||
api:
|
||||
|
||||
logger:
|
||||
level: DEBUG
|
||||
logs:
|
||||
runtime_stats: INFO
|
||||
|
||||
runtime_stats:
|
||||
log_interval: 1s
|
||||
|
||||
# Add some components that will execute periodically to generate stats
|
||||
sensor:
|
||||
- platform: template
|
||||
name: "Test Sensor 1"
|
||||
id: test_sensor_1
|
||||
lambda: return 42.0;
|
||||
update_interval: 0.1s
|
||||
|
||||
- platform: template
|
||||
name: "Test Sensor 2"
|
||||
id: test_sensor_2
|
||||
lambda: return 24.0;
|
||||
update_interval: 0.2s
|
||||
|
||||
switch:
|
||||
- platform: template
|
||||
name: "Test Switch"
|
||||
id: test_switch
|
||||
optimistic: true
|
||||
|
||||
interval:
|
||||
- interval: 0.5s
|
||||
then:
|
||||
- switch.toggle: test_switch
|
||||
Reference in New Issue
Block a user