Component memory leak detection method and device, computer equipment and storage medium
By generating heap snapshots and structured operation logs, memory leaks in Vue.js 2 components are automatically identified, solving the problem of inefficiency in existing tools and achieving efficient and accurate memory leak detection and repair.
Patent Information
- Application Number
- CN202511797247.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-01
- Publication Date
- 2026-03-17
AI Technical Summary
Existing memory leak detection tools cannot effectively identify hidden memory leaks in Vue.js 2 components and rely on manual operation, resulting in low detection efficiency and insufficient accuracy.
By generating heap snapshots of component creation and destruction events, combined with structured operation logs and information mapping tables, the system automatically identifies component instance nodes, constructs a memory reference graph, performs reverse breadth-first search and path compression, determines the root cause of memory leaks, and generates a visual report.
It enables automated detection of memory leaks in Vue.js 2 components, improving detection efficiency and accuracy, reducing the cost of detection and repair for developers, and accurately locating memory leak issues.