Unlock instant, AI-driven research and patent intelligence for your innovation.

Memory performance analysis method and device, medium and electronic equipment

An analysis method and performance technology, applied in the computer field, can solve problems such as impact, slow running speed, memory overflow on the mobile phone, etc., and achieve the effect of improving detection efficiency and comprehensive detection range

Active Publication Date: 2020-06-12
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] Question 1: The product must be connected to the LeakCanary library before it can be used offline
[0015] Question 2: The above-mentioned process of analyzing memory performance through the LeakCanary library is executed on the mobile phone
The mobile phone uses the LeakCanary library to run the process of memory performance analysis, which not only runs slowly, but also consumes the CPU, which affects other modules on the mobile phone.
[0016] Question 3: In the above-mentioned process of analyzing memory performance through the LeakCanary library, even if other leaks are monitored, other leaks that are monitored cannot be analyzed. Since only one leak can be analyzed at a time, using the above-mentioned memory The process of performance analysis is prone to underreporting
[0017] Question 4: On the mobile phone side, the process of analyzing the memory performance through the LeakCanary library will cause the abnormal phenomenon of memory overflow on the mobile phone side

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Memory performance analysis method and device, medium and electronic equipment
  • Memory performance analysis method and device, medium and electronic equipment
  • Memory performance analysis method and device, medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Such as figure 1 As shown, according to the specific implementation manner of the embodiment of the present disclosure, in the first aspect, the embodiment of the present disclosure provides a memory performance analysis method, which specifically includes the following method steps:

[0045] S102: Start and run an analysis process for performing performance analysis on memory performance by using a plug-in conforming to a preset plug-in format on the computer side.

[0046] In this step, the preset plug-in format may be a gradle plug-in format, and the preset plug-in format may also be a jar plug-in format. The above is just an example, and other preset plug-in formats may also be used, which will not be repeated here.

[0047] S104: Unload the memory snapshot, and pull the memory snapshot to the computer.

[0048] In this step, the operation of unloading the memory snapshot is uniformly completed during operation. Whether it is a manual test or an automated test pro...

Embodiment 2

[0084] The embodiment of the present disclosure inherits embodiment 1 and is used to implement the method steps described in embodiment 1. The explanation based on the same name and meaning is the same as that of embodiment 1, and has the same technical effect as embodiment 1, and will not be repeated here. . combined with figure 2 As shown, according to the specific implementation of the present disclosure, in the second aspect, the embodiment of the present disclosure provides a memory performance analysis device, including a startup analysis unit 202, a processing unit 204, an analysis unit 206, and an assembly unit 208, etc., specifically as follows:

[0085] Start the analysis unit 202, which is used to start and run the analysis process of analyzing the memory performance in the form of a plug-in conforming to the preset plug-in format on the computer side;

[0086] The processing unit 204 is used to unload the memory snapshot and pull the memory snapshot to the comput...

Embodiment 3

[0115] Such as image 3 As shown, this embodiment provides an electronic device, which is used for analyzing memory performance, and the electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein ,

[0116] The memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor, so that the at least one processor can: the above-mentioned process of analyzing the memory performance of the application program does not need Introducing intrusion code, for example, to analyze the memory leak of the application, not only has a comprehensive detection range, but also improves the detection efficiency and does not generate additional memory overflow.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a memory performance analysis method and device, a medium and electronic equipment, and the method comprises the steps: carrying out the analysis of a memory snapshot at a computer end, analyzing the storage information in the memory snapshot, and obtaining a corresponding analysis result; and assembling according to the reference chain information corresponding to the moving object and / or the fragment object in the analysis result to obtain a corresponding hypertext markup language file. The method comprises the following steps: splicing reference chain information corresponding to an active object and / or a fragment object in an analysis result to obtain a corresponding hypertext markup language file; wherein the reference chain information comprises first referencechain information corresponding to any one movable object and second reference chain information corresponding to any one fragment object; thus, in the process of analyzing the memory performance ofthe application program, intrusion codes do not need to be introduced, for example, the memory leakage problem of the application program is analyzed, the detection range is comprehensive, the detection efficiency is improved, and extra memory overflow is not generated.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to an analysis method, device, medium and electronic equipment of memory performance. Background technique [0002] Existing application programs often need to occupy a large amount of memory to run, so it is easy to cause a problem of occupying a large amount of memory. [0003] In practical applications, if the memory is used improperly, it will not cause the process of the application program to crash immediately, but will have a longer latency period. There are many reasons for memory problems, for example, affected by the depth of the path, or affected by the interaction of dependencies, memory problems are often difficult to locate. [0004] Monitor the process of memory leaks through the LeakCanary library, and analyze the causes of memory leaks through the LeakCanary library. However, there are many problems with the existing LeakCanary library, as described belo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/30G06F9/445
CPCG06F11/3037G06F9/44526Y02W90/00
Inventor 刘昭
Owner BEIJING BYTEDANCE NETWORK TECH CO LTD