mirror of
https://github.com/esphome/esphome.git
synced 2025-10-22 11:43:51 +01:00
Update esphome/analyze_memory/__init__.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -294,24 +294,24 @@ class MemoryAnalyzer:
|
|||||||
# Try to find the appropriate c++filt for the platform
|
# Try to find the appropriate c++filt for the platform
|
||||||
cppfilt_cmd = "c++filt"
|
cppfilt_cmd = "c++filt"
|
||||||
|
|
||||||
_LOGGER.warning("Demangling %d symbols", len(symbols))
|
_LOGGER.info("Demangling %d symbols", len(symbols))
|
||||||
_LOGGER.debug("objdump_path = %s", self.objdump_path)
|
_LOGGER.debug("objdump_path = %s", self.objdump_path)
|
||||||
|
|
||||||
# Check if we have a toolchain-specific c++filt
|
# Check if we have a toolchain-specific c++filt
|
||||||
if self.objdump_path and self.objdump_path != "objdump":
|
if self.objdump_path and self.objdump_path != "objdump":
|
||||||
# Replace objdump with c++filt in the path
|
# Replace objdump with c++filt in the path
|
||||||
potential_cppfilt = self.objdump_path.replace("objdump", "c++filt")
|
potential_cppfilt = self.objdump_path.replace("objdump", "c++filt")
|
||||||
_LOGGER.warning("Checking for toolchain c++filt at: %s", potential_cppfilt)
|
_LOGGER.info("Checking for toolchain c++filt at: %s", potential_cppfilt)
|
||||||
if Path(potential_cppfilt).exists():
|
if Path(potential_cppfilt).exists():
|
||||||
cppfilt_cmd = potential_cppfilt
|
cppfilt_cmd = potential_cppfilt
|
||||||
_LOGGER.warning("✓ Using toolchain c++filt: %s", cppfilt_cmd)
|
_LOGGER.info("✓ Using toolchain c++filt: %s", cppfilt_cmd)
|
||||||
else:
|
else:
|
||||||
_LOGGER.warning(
|
_LOGGER.info(
|
||||||
"✗ Toolchain c++filt not found at %s, using system c++filt",
|
"✗ Toolchain c++filt not found at %s, using system c++filt",
|
||||||
potential_cppfilt,
|
potential_cppfilt,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
_LOGGER.warning(
|
_LOGGER.info(
|
||||||
"✗ Using system c++filt (objdump_path=%s)", self.objdump_path
|
"✗ Using system c++filt (objdump_path=%s)", self.objdump_path
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user