openclaw-test-heap-leaks

Analyze heap snapshots and RSS growth to triage test memory leaks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This tool helps software engineers identify and triage memory leaks in test runs by analyzing heap snapshots and RSS growth, enabling reproducible scenarios and targeted fixes.

Core Features & Use Cases

  • Heap snapshot analysis to quantify retained objects and growth trends across test lanes.
  • Reproducible workflows for pnpm/Vitest/Node-based test suites to isolate leak sources.
  • Use Case: When a test batch exhibits increasing RSS or heap growth, run the workflow to generate and compare Heap snapshots and triage top offenders.

Quick Start

Run the heap-leak workflow to reproduce memory growth and generate comparable heap snapshots with the included scripts.

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 in a Vitest test suite?

To identify memory leaks in a Vitest suite, analyze heap snapshots and RSS growth to quantify retained objects across test workers. Comparing this heap data isolates leak sources by highlighting dominant retained offenders for targeted cleanup.

What is the best way to triage increasing RSS or heap growth during Node tests?

The best way to triage increasing RSS or heap growth during Node tests is generating comparable heap snapshots across workers. Parsing these snapshots summarizes growth trends and isolates the specific test hotspots causing the memory leak.

Can I use heap snapshots to reproduce memory leaks in pnpm-based CI environments?

Yes, you can use heap snapshots to reproduce memory leaks in pnpm-based CI environments. The workflow generates comparable heap data across Vitest workers in both local development and CI, enabling reproducible scenarios for targeted leak fixes.

How do heap snapshots help isolate memory leak sources across different test workers?

Heap snapshots isolate memory leak sources across test workers by parsing and comparing retained objects from each worker. This comparison highlights dominant retained objects, guiding you directly to the hotspot tests requiring cleanup.

Do I need pnpm to analyze Vitest memory leaks with heap snapshots?

Yes, pnpm is required as the reproducible workflows for generating and comparing heap snapshots are specifically designed for pnpm-based Vitest and Node test suites. This ensures consistent dependency resolution across local and CI environments.