openclaw-test-heap-leaks

Compare two heap snapshots to surface memory deltas and retention hotspots.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zhcndoc/openclaw --skill openclaw-test-heap-leaks-zhcndoc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-test-heap-leaks
Source: https://github.com/zhcndoc/openclaw/tree/main/.agents/skills/openclaw-test-heap-leaks
Command: npx skills add https://github.com/zhcndoc/openclaw --skill openclaw-test-heap-leaks-zhcndoc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps engineers diagnose memory growth in OpenClaw's test suite by surfacing heap snapshot deltas and retention hotspots, reducing guesswork in OOM failures.

Core Features & Use Cases

  • Compare two heap snapshots to surface per-object-type memory deltas and identify potential leaks.
  • Surface dominant retained objects and provide concise summaries to guide targeted fixes.
  • Works with lane-based CI captures (unit-fast, unit-fast-batch-*) to triage memory growth in tests.

Quick Start

Run this skill to compare two heap snapshots and surface the top memory deltas.

Frequently Asked Questions about openclaw-test-heap-leaks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify memory leaks from heap snapshots in CI test lanes?

Compare two heap snapshot files or a lane directory with matching snapshots to surface prioritized delta summaries of dominant retained objects. This directly surfaces memory growth and retention hotspots to guide targeted fixes for OOM failures in OpenClaw tests.

What is a heap delta analysis and how does it surface retention hotspots?

Heap delta analysis identifies memory growth by comparing two heap snapshots to surface deltas and retention hotspots. It outputs a prioritized summary of dominant retained objects, reducing guesswork in OOM failures by highlighting specific per-object-type memory growth.

How do I triage memory growth across multiple worker PIDs in CI captures?

Apply heap delta analysis to CI lanes with multiple PIDs and repeated snapshots to surface differences across workers. By specifying a lane directory with matching snapshots, you get a prioritized delta summary highlighting dominant retained objects across different worker processes.

Does this memory leak triage work with lane-based CI captures like unit-fast?

Yes, this analysis works with lane-based CI captures like unit-fast and unit-fast-batch-*. It compares matching heap snapshots from these directories to surface memory deltas and dominant retained objects, triaging memory growth in tests across multiple workers.

What do I need to provide to surface a prioritized delta summary of retained objects?

Specify two heap snapshot files or a lane directory with matching snapshots. The analysis compares these inputs to output a prioritized delta summary of dominant retained objects and actionable next steps for targeted fixes.