diff --git a/esphome/analyze_memory/cli.py b/esphome/analyze_memory/cli.py index 71631365b3..f54b9bbd9b 100644 --- a/esphome/analyze_memory/cli.py +++ b/esphome/analyze_memory/cli.py @@ -191,7 +191,7 @@ class MemoryAnalyzerCLI(MemoryAnalyzer): total_size = sum(size for _, size, _, _ in self._cswtch_symbols) lines.append( - f"Total: {len(self._cswtch_symbols)} switch tables, {total_size:,} B" + f"Total: {len(self._cswtch_symbols)} switch table(s), {total_size:,} B" ) lines.append("") diff --git a/esphome/analyze_memory/const.py b/esphome/analyze_memory/const.py index 3c02e29d96..66866615a6 100644 --- a/esphome/analyze_memory/const.py +++ b/esphome/analyze_memory/const.py @@ -66,15 +66,6 @@ SECTION_MAPPING = { ), } -# Section to ComponentMemory attribute mapping -# Maps section names to the attribute name in ComponentMemory dataclass -SECTION_TO_ATTR = { - ".text": "text_size", - ".rodata": "rodata_size", - ".data": "data_size", - ".bss": "bss_size", -} - # Component identification rules # Symbol patterns: patterns found in raw symbol names SYMBOL_PATTERNS = {