Memory analysis

From LeoKemp223/embed-ai-tool · View interactive version

Memory analysis is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要解析 .map 文件或 ELF 获取固件内存使用报告、符号大小排名或版本对比时使用。

How to use this skill

Skill file

固件内存分析

适用场景

必要输入

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次是环境探测、构建目录扫描,还是执行分析。
  2. 若不确定工具是否可用,先运行 scripts/memory_analyzer.py 的 --detect 模式确认。
  3. 使用 --scan <build_dir> 自动查找可分析的文件。
  4. 使用 --map-file 或 --elf 执行内存分析。
  5. 可选使用 --linker-script 获取总容量并计算使用率。
  6. 使用 --top <N> 查看占用最大的符号。
  7. 使用 --compare 对比两个 .map 文件的差异。

失败分流

平台说明

输出约定

交接关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.