1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-23 20:23:50 +01:00

esp32 only platforms

This commit is contained in:
J. Nick Koston
2025-10-17 16:11:28 -10:00
parent 29b9073d62
commit f5d69a2539
3 changed files with 20 additions and 28 deletions

View File

@@ -2,7 +2,6 @@
from collections import defaultdict
from dataclasses import dataclass, field
import json
import logging
from pathlib import Path
import re
@@ -422,28 +421,6 @@ class MemoryAnalyzer:
return "Other Core"
def to_json(self) -> str:
"""Export analysis results as JSON."""
data = {
"components": {
name: {
"text": mem.text_size,
"rodata": mem.rodata_size,
"data": mem.data_size,
"bss": mem.bss_size,
"flash_total": mem.flash_total,
"ram_total": mem.ram_total,
"symbol_count": mem.symbol_count,
}
for name, mem in self.components.items()
},
"totals": {
"flash": sum(c.flash_total for c in self.components.values()),
"ram": sum(c.ram_total for c in self.components.values()),
},
}
return json.dumps(data, indent=2)
if __name__ == "__main__":
from .cli import main