Visual analysis and management method and system for JavaScript memory, equipment and storage medium
The invention provides a visual analysis and management method and system for a JavaScript memory, equipment and a storage medium. The method comprises the following steps: analyzing a target code, and generating a corresponding abstract syntax tree and an action range of a variable; running the tar...
Saved in:
Main Authors | , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
23.11.2021
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention provides a visual analysis and management method and system for a JavaScript memory, equipment and a storage medium. The method comprises the following steps: analyzing a target code, and generating a corresponding abstract syntax tree and an action range of a variable; running the target code, and recording the execution context stack and heap memory snapshot information in the code running process; and according to the abstract syntax tree, executing the context stack and heap memory snapshot information, rendering the occupation condition of the heap memory in real time, and drawing a calling relation graph among variable nodes in the action range. The method further comprises the steps that according to a common memory leak tracking library, static analysis is conducted on target codes, and the action range of the problems possibly causing leak is marked. A visual analysis and management system, equipment and a storage medium are further provided based on the method, an effective way for con |
---|---|
Bibliography: | Application Number: CN202110798605 |