Visual analysis and management method and system for JavaScript memory, equipment and storage medium
A management method and memory technology, which is applied in the direction of file system, file system management, structured data retrieval, etc., can solve the problems of not paying attention to code performance, high learning cost, and high technical ability requirements of front-end developers, so as to reduce learning cost and labor costs, and the effect of improving code quality
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] Embodiment 1 of the present invention proposes a JavaScript memory visualization analysis and management method. On the one hand, it can render real-time memory monitoring data when JavaScript code is running, save heap memory snapshots, and on the other hand, can draw the execution context stack (call stack) of JavaScript code. The relationship diagram also identifies problem nodes and their calling paths, so that JavaScript developers can easily and clearly understand the underlying operations during code execution and visually track changes in memory usage.
[0042] Such as figure 1 Provide a road map of JavaScript memory visualization analysis and management method according to Embodiment 1 of the present invention;
[0043] In step S101, the JavaScript target code is parsed to generate the corresponding abstract syntax tree and the scope of variables;
[0044]In this step, lexical analysis and syntax analysis are first performed on the JavaScript code to generate ...
Embodiment 2
[0066] Based on the JavaScript memory visualization analysis and management method proposed in Embodiment 1 of the present invention, Embodiment 2 of the present invention also proposes a JavaScript memory visualization analysis and management system, such as image 3 A schematic diagram of a JavaScript memory visualization analysis and management system according to Embodiment 2 of the present invention is given. The system includes a code pre-analysis device, a data collection device, and a visualization rendering device;
[0067] The code pre-parsing device is used for parsing the JavaScript target code, generating the corresponding abstract syntax tree and the scope of variables;
[0068] The data acquisition device is used to run the JavaScript target code, record the execution context stack and heap memory snapshot information during the code running process,
[0069] The visual rendering device is used to render the JavaScript heap memory usage in real time according to...
Embodiment 3
[0089] The invention also proposes a device comprising:
[0090] memory for storing computer programs;
[0091] When the processor is used to execute the computer program, the method steps are as follows:
[0092] In step S101, the JavaScript target code is parsed to generate the corresponding abstract syntax tree and the scope of variables;
[0093] In this step, lexical analysis and syntax analysis are first performed on the JavaScript code to generate the corresponding AST abstract syntax tree, the scope of variables and the scope chain of functions.
[0094] Among them, the abstract syntax tree (AST): an abstract representation of the grammatical structure of the source code, which represents the grammatical structure of the programming language in the form of a tree, and each node on the tree represents a structure in the source code.
[0095] According to the common memory leak tracking library, statically analyze the JavaScript target code, and mark the scope of the p...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com