openclaw-test-heap-leaks

Analyze heap snapshots to quantify memory growth in OpenClaw test runs.

7|12|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/borealBytes/my-farm-advisor --skill openclaw-test-heap-leaks-borealbytes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-test-heap-leaks
Source: https://github.com/borealBytes/my-farm-advisor/tree/main/.agents/skills/openclaw-test-heap-leaks
Command: npx skills add https://github.com/borealBytes/my-farm-advisor --skill openclaw-test-heap-leaks-borealbytes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Investigate and triage memory growth in OpenClaw test suites by analyzing heap snapshots to identify leaks or retained module growth.

Core Features & Use Cases

  • Heap-snapshot comparison to quantify memory deltas across runs.
  • Guided triage of top delta entries to distinguish leaks from module growth.
  • Script-driven workflow for reproducible memory diagnostics in pnpm-based OpenClaw tests.

Quick Start

Launch the heapsnapshot-delta tool to compare two heap snapshots for a PID 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 diagnose memory leaks in vitest test suites?

Compare heap snapshots across test runs to identify and quantify memory growth deltas. This triages actual memory leaks versus retained module growth by analyzing top delta entries for specific PIDs.

What is the best way to triage heap snapshot deltas for pnpm test runs?

Use a script-driven heapsnapshot-delta tool to compare snapshots and surface top memory growth entries. This documents exact analysis steps to distinguish true leaks from retained module growth in pnpm tests.

Does this heap snapshot analysis work with pnpm-based OpenClaw tests?

Yes, the analysis applies directly to pnpm-based OpenClaw test suites across lanes and PIDs. It provides reproducible memory diagnostics by documenting exact analysis steps and tool outputs.

How do I distinguish real memory leaks from retained module growth in vitest?

Review top delta entries from heap snapshot comparisons to distinguish leaks from retained module growth. This guided triage identifies whether memory growth stems from uncollected objects or expected module retention.

When do I need to compare heap snapshots across PIDs for OpenClaw tests?

Compare heap snapshots across PIDs when diagnosing unexplained memory growth in OpenClaw test runs. This analysis isolates process-specific leaks from systemic retained module growth across test lanes.