← 返回 Skills 市场
amd5

Heap Dump & Profiler

作者 c32 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
117
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install heap-dump
功能描述
内存快照分析(v8 heap snapshot)+ 性能分析(perf_hooks)
使用说明 (SKILL.md)

Heap Dump & Profiler — 内存与性能分析

版本: 1.0.1
创建日期: 2026-04-13
更新日期: 2026-04-14


📋 功能

功能 说明
heap-dump 生成 v8 堆快照,Chrome DevTools 分析
profiler perf_hooks 性能分析(start/checkpoint/end/report)

📂 文件结构

skills/heap-dump/
├── SKILL.md
├── skill.json
└── scripts/
    ├── heap-dump.js     # 内存快照生成
    └── profiler.js      # 性能分析工具

🔧 用法

# 内存快照
node skills/heap-dump/scripts/heap-dump.js snapshot

# 性能分析
node skills/heap-dump/scripts/profiler.js start "任务名"   # 开始
node skills/heap-dump/scripts/profiler.js checkpoint "阶段" # 标记点
node skills/heap-dump/scripts/profiler.js end              # 结束
node skills/heap-dump/scripts/profiler.js report           # 生成报告

📊 触发方式

  • 手动触发(按需使用的诊断工具,无需自动化)

⚠️ 注意事项

  • heap snapshot 文件较大,建议分析后删除
  • profiler 输出写入 memory/perf/ 目录
  • 已合并 headless-profiler 功能
安全使用建议
This skill appears to do what it says: generate V8 heap snapshots and record perf_hooks-based profiling locally. Before installing, note that: 1) it creates ~/.openclaw/heap-snapshots/ and ~/.openclaw/profiles/ and stores potentially large .heapsnapshot files—delete them after analysis; 2) it reads low-level process info (internal Node APIs and /proc/self/fd on Linux) to build diagnostics — expected for profiling but it does access process state; 3) SKILL.md and the code disagree about the output path (memory/perf/ vs ~/.openclaw/...), so confirm where files will land on your system; 4) there are no network calls or credential requests, so no outward exfiltration is apparent. If you run this on a production agent, consider running it in a controlled/dev environment first and inspect the files it creates.
功能分析
Type: OpenClaw Skill Name: heap-dump Version: 1.0.1 The skill bundle provides legitimate diagnostic tools for Node.js memory and performance analysis. The scripts `heap-dump.js` and `profiler.js` use standard Node.js APIs (v8, perf_hooks) to collect system metrics and generate heap snapshots, storing them locally in the user's home directory without any evidence of data exfiltration, remote execution, or malicious intent.
能力评估
Purpose & Capability
Name/description describe heap snapshots and profiling; the included scripts implement exactly those features (v8.getHeapSnapshot, perf_hooks). There are no unrelated network calls or external service credentials requested.
Instruction Scope
SKILL.md instructs running the included scripts which is correct, but there are small mismatches: the README warns 'profiler output write to memory/perf/' while the code actually writes to ~/.openclaw/profiles/ and ~/.openclaw/heap-snapshots/. The scripts also read /proc/self/fd (Linux-only) and use internal Node APIs (process._getActiveHandles/_getActiveRequests) to collect diagnostics — these are diagnostic actions consistent with the stated purpose but they access low-level process state.
Install Mechanism
No install spec (instruction-only with bundled scripts). Nothing is downloaded or extracted from remote URLs; risk from install mechanism is low.
Credentials
The skill declares no required env vars or credentials and indeed needs none. It does rely on process.env.HOME to create ~/.openclaw/… directories; the skill did not declare those config paths in metadata, which is a minor inconsistency you should be aware of.
Persistence & Privilege
Skill is not always-enabled and is user-invocable only. It writes files under the user's HOME (heap snapshots, diagnostics, profile state/history) which is expected for a local diagnostic tool and does not change other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install heap-dump
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /heap-dump 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
内存快照分析+性能分析,作者改为c32
v1.0.0
内存快照 + 性能分析工具
元数据
Slug heap-dump
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Heap Dump & Profiler 是什么?

内存快照分析(v8 heap snapshot)+ 性能分析(perf_hooks). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 117 次。

如何安装 Heap Dump & Profiler?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install heap-dump」即可一键安装,无需额外配置。

Heap Dump & Profiler 是免费的吗?

是的,Heap Dump & Profiler 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Heap Dump & Profiler 支持哪些平台?

Heap Dump & Profiler 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Heap Dump & Profiler?

由 c32(@amd5)开发并维护,当前版本 v1.0.1。

💬 留言讨论