openclaw-test-heap-leaks

Analyze heap snapshot deltas to identify memory growth in OpenClaw test suites.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps test teams diagnose memory growth and potential leaks in OpenClaw's test suite by analyzing heap snapshot deltas and triage signals rather than RSS alone.

Core Features & Use Cases

  • Analyze repeated heap snapshots to identify growing objects and object counts between runs.
  • Use the included heapsnapshot-delta tool to compare before/after snapshots and surface dominant retained object families.
  • Apply in CI debugging, local dev, and cross-PID comparisons to triage whether growth is due to leaked runtime objects or shared-workspace module retention.

Quick Start

Run pnpm test with heap snapshots enabled and compare two snapshots for the same PID using the included heapsnapshot-delta.mjs tool.

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 find memory leaks in a test suite using heap snapshots?

To find memory leaks in a test suite, analyze heap snapshot deltas to identify growing objects and surface retained object families between runs. This approach triages whether growth stems from leaked runtime objects or module retention.

Why does my test suite memory keep growing across repeated runs?

Test suite memory growth often indicates potential leaks that require heap snapshot analysis to diagnose. Comparing before and after snapshots surfaces dominant retained objects and dominators to classify the leak source.

How do I compare heap snapshots across different process IDs?

Cross-PID heap snapshot comparisons triage memory deltas by analyzing retained objects and dominators across different processes. You need at least two snapshots per PID and a delta utility to surface the growing object families.

Can I diagnose memory leaks in a Linux CI environment?

Yes, you can diagnose memory leaks in a Linux CI environment by enabling heap snapshots during test runs and comparing them. This identifies growing object counts and retained runtime objects specific to CI-style unit failures.

What do I need to start analyzing heap snapshot deltas?

Analyzing heap snapshot deltas requires at least two snapshots per PID, the heapsnapshot-delta utility, and the ability to surface retained objects and dominators to classify leaks. Run tests with snapshots enabled to generate the data.