memory-leak-detector

Track JS heap usage and DOM node growth across repeated web app interactions.

1|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/anouar1991/binaryPetsClaude --skill memory-leak-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-leak-detector
Source: https://github.com/anouar1991/binaryPetsClaude/tree/main/plugins/playwright-toolkit/skills/memory-leak-detector
Command: npx skills add https://github.com/anouar1991/binaryPetsClaude --skill memory-leak-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Memory leaks in long-running web applications are notoriously difficult to detect and quantify. This Skill provides automated instrumentation to monitor JavaScript heap usage and DOM node growth across repeated interactions, enabling you to identify leaks and measure their impact.

Core Features & Use Cases

  • Baseline and iterative measurements of JS heap and DOM nodes to detect monotonic growth.
  • Prerequisites and environment checks for Playwright MCP server and Chromium-based browsers.
  • Use cases: SPA route changes, modal open/close, list manipulation, and repeated interactions to surface leaks.

Quick Start

Run the memory-leak-detector on your target page and perform 10 iterations to gather measurements and assess leaks.

Frequently Asked Questions about memory-leak-detector

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

FAQPage Schema
How do I detect memory leaks in a single-page application?

Detect memory leaks in single-page applications by tracking JavaScript heap usage and DOM node growth across repeated interactions like route changes or modal toggles. This Skill automates baseline and iterative measurements to identify monotonic growth patterns.

Does the memory leak detector work with Playwright?

Yes, the memory leak detector works with Playwright. It requires the Playwright MCP server and a Chromium-based browser to run automated measurement logic and utilize the Chrome DevTools Protocol HeapProfiler for accurate heap metrics.

What is the best way to quantify JavaScript heap growth during UI interactions?

The best way to quantify JavaScript heap growth is by computing baseline and iterative measurements using CDP HeapProfiler and Chrome Performance memory metrics. This approach assesses leak impact by measuring heap and DOM node growth over repeated interaction cycles.

How do I measure DOM node growth when components re-render?

You can measure DOM node growth when components re-render by running automated measurement logic across 10 iterations. This tracks DOM node counts against a baseline to surface memory leaks in components that hot-reload or update lists repeatedly.

When do I need Chrome DevTools Protocol HeapProfiler for web performance debugging?

You need Chrome DevTools Protocol HeapProfiler for web performance debugging when investigating long-running web applications. It enables automated instrumentation to monitor JavaScript heap usage and identify leaks caused by repeated interactions or unmanaged DOM nodes.