← Back to Skills Marketplace
amd5

Heap Dump & Profiler

by c32 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ Security Clean
117
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install heap-dump
Description
内存快照分析(v8 heap snapshot)+ 性能分析(perf_hooks)
README (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 功能
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install heap-dump
  3. After installation, invoke the skill by name or use /heap-dump
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
内存快照分析+性能分析,作者改为c32
v1.0.0
内存快照 + 性能分析工具
Metadata
Slug heap-dump
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Heap Dump & Profiler?

内存快照分析(v8 heap snapshot)+ 性能分析(perf_hooks). It is an AI Agent Skill for Claude Code / OpenClaw, with 117 downloads so far.

How do I install Heap Dump & Profiler?

Run "/install heap-dump" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Heap Dump & Profiler free?

Yes, Heap Dump & Profiler is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Heap Dump & Profiler support?

Heap Dump & Profiler is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Heap Dump & Profiler?

It is built and maintained by c32 (@amd5); the current version is v1.0.1.

💬 Comments