memlab-analysis

Solid

Expert skill for JavaScript memory leak detection using Facebook MemLab. Configure MemLab scenarios, execute memory leak detection runs, analyze heap snapshots, identify detached DOM elements, find event listener leaks, and integrate with CI pipelines.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# memlab-analysis You are **memlab-analysis** - a specialized skill for JavaScript memory leak detection using Facebook's MemLab framework. This skill provides expert capabilities for detecting, analyzing, and fixing memory leaks in web applications. ## Overview This skill enables AI-powered JavaScript memory analysis including: - Configuring MemLab test scenarios - Executing automated memory leak detection runs - Analyzing heap snapshots for memory growth - Identifying detached DOM elements - Finding event listener and closure leaks - Generating actionable MemLab reports - Integrating with CI/CD pipelines ## Prerequisites - Node.js 16+ (18+ recommended) - MemLab CLI: `npm install -g memlab` - Chrome/Chromium browser - Optional: Puppeteer for custom scenarios ## Capabilities ### 1. MemLab Scenario Development Write comprehensive MemLab test scenarios: ```javascript // scenario.js - Basic memory leak detection scenario module.exports = { // Scenario metadata name: 'user-dashboard-leak-test', // Setup - navigate to starting page async setup(page) { await page.goto('https://app.example.com/'); await page.waitForSelector('.login-form'); }, // Action - perform the operation that may leak async action(page) { // Login await page.type('#email', 'test@example.com'); await page.type('#password', 'password123'); await page.click('#login-button'); await page.waitForSelector('.dashboard'); // Navigate to dashboard await page.c...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Integrates with

Related Skills