1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 13:22:19 +01:00
This commit is contained in:
J. Nick Koston
2025-08-06 10:11:28 -10:00
parent b75719d37e
commit 2cdf50a025

View File

@@ -1161,9 +1161,8 @@ class MemoryAnalyzer:
if component_name in ESPHOME_COMPONENTS: if component_name in ESPHOME_COMPONENTS:
return f"[esphome]{component_name}" return f"[esphome]{component_name}"
# Check if this is a known external component from the config # Check if this is a known external component from the config
elif component_name in self.external_components: if component_name in self.external_components:
return f"[external]{component_name}" return f"[external]{component_name}"
else:
# Everything else in esphome:: namespace is core # Everything else in esphome:: namespace is core
return "[esphome]core" return "[esphome]core"
@@ -1188,7 +1187,6 @@ class MemoryAnalyzer:
if "spi_" in symbol_name or "SPI" in symbol_name: if "spi_" in symbol_name or "SPI" in symbol_name:
if "spi_flash" in symbol_name: if "spi_flash" in symbol_name:
return "spi_flash" return "spi_flash"
else:
return "spi_driver" return "spi_driver"
# libc special printf variants # libc special printf variants
@@ -1487,7 +1485,7 @@ class MemoryAnalyzer:
] ]
top_esphome_components = sorted( top_esphome_components = sorted(
esphome_components, key=lambda x: x[1].flash_total, reverse=True esphome_components, key=lambda x: x[1].flash_total, reverse=True
)[:5] )[:10]
# Check if API component exists and ensure it's included # Check if API component exists and ensure it's included
api_component = None api_component = None