CN113434364A - Screen-side equipment memory detection method and device, storage medium and electronic device - Google Patents

Screen-side equipment memory detection method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113434364A
CN113434364A CN202110713725.5A CN202110713725A CN113434364A CN 113434364 A CN113434364 A CN 113434364A CN 202110713725 A CN202110713725 A CN 202110713725A CN 113434364 A CN113434364 A CN 113434364A
Authority
CN
China
Prior art keywords
memory
screen
log information
trend graph
curve trend
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110713725.5A
Other languages
Chinese (zh)
Other versions
CN113434364B (en
Inventor
王党军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110713725.5A priority Critical patent/CN113434364B/en
Publication of CN113434364A publication Critical patent/CN113434364A/en
Application granted granted Critical
Publication of CN113434364B publication Critical patent/CN113434364B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for detecting the memory of screen-end equipment, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring the memory consumption condition of the screen-side equipment, and generating a memory curve trend graph according to the memory consumption condition; acquiring log information according to the memory curve trend graph; performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result; when the memory detection result indicates that the memory problem exists, the type of the memory problem is determined according to the log information, so that the problems that in the related technology, only equipment can be tested whether the memory leakage exists, and the detailed trace log of a development engineer cannot be accurately provided after the memory leakage is found can be solved, the memory consumption condition is monitored, the memory is detected based on the memory consumption condition and the log information, the trace log (namely the log information) can be accurately provided after the memory problem is found, and the type of the memory problem is determined based on the log information.

Description

Screen-side equipment memory detection method and device, storage medium and electronic device
Technical Field
The invention relates to the field of communication, in particular to a method and a device for detecting a memory of screen-side equipment, a storage medium and an electronic device.
Background
Memory Leak (Memory Leak) refers to that a heap Memory dynamically allocated in a program is not released or cannot be released for some reason, which may cause waste of a system Memory, and seriously results in slow program running speed and even system crash.
For a network device to be shipped from a factory, in order to ensure the quality of the network device, a memory leak test needs to be performed on the network device. At present, only whether the equipment has memory leakage can be tested, and a detailed trace log of a development engineer cannot be accurately provided after a problem is found.
Aiming at the problems that in the related technology, only the existence of memory leakage of equipment can be tested, and the detailed trace log of a development engineer cannot be accurately provided after the memory leakage is found, a solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting a memory of screen-side equipment, a storage medium and an electronic device, which are used for at least solving the problems that whether the equipment has memory leakage can only be tested in the related technology, and a detailed trace log of a development engineer cannot be accurately provided after the memory leakage is found.
According to an embodiment of the present invention, a method for detecting a memory of a screen-side device is provided, including:
acquiring the memory consumption condition of screen-end equipment, and generating a memory curve trend graph according to the memory consumption condition;
acquiring log information according to the memory curve trend graph;
performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result;
and determining the type of the memory problem according to the log information under the condition that the memory problem exists in the memory detection result.
Optionally, performing memory detection on the screen-side device according to the memory curve trend graph and the log information includes:
judging whether the memory curve trend graph is in a continuous rising state within preset time;
if so, acquiring the log information in the continuous rising period in the memory curve trend graph through a log tracking engine;
and determining that the memory leakage or the memory exhaustion exists in the screen-side equipment according to the log information.
Optionally, after performing memory detection on the screen-side device according to the memory curve trend graph and the log information, the method further includes:
determining a target solution corresponding to the memory leak or the memory exhaustion according to a pre-stored corresponding list of the memory leak or the memory exhaustion and the solution;
and sending the memory leak or the memory exhaustion and the target solution corresponding to the memory leak or the memory exhaustion to one or more preset target accounts.
Optionally, the generating the memory curve trend graph according to the memory consumption condition includes:
acquiring a total memory of the screen-side equipment;
determining a memory occupation ratio according to the memory consumption condition and the total memory;
and generating the memory curve trend graph according to the memory occupation ratio.
Optionally, before obtaining the memory consumption condition of the screen-side device, the method further includes:
determining a test scene of the screen-end equipment;
and acquiring a test script preset for the test scene.
Optionally, the obtaining the memory consumption condition of the screen-side device includes:
and monitoring data generated in the running process of the software development kit SDK process in the screen-end equipment by running the test script to obtain the memory consumption condition.
According to another embodiment of the present invention, there is also provided a device for detecting a memory of a screen-side device, including:
the generating module is used for acquiring the memory consumption condition of the screen-side equipment and generating a memory curve trend graph according to the memory consumption condition;
the first acquisition module is used for acquiring log information according to the memory curve trend graph;
the memory detection module is used for performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result;
and the first determining module is used for determining the type of the memory problem according to the log information under the condition that the memory problem exists in the memory detection result.
Optionally, the memory detection module includes:
the judgment submodule is used for judging whether the memory curve trend graph is in a continuous rising state within preset time;
the first obtaining submodule is used for obtaining the log information in the continuous rising period in the memory curve trend graph through a log tracking engine under the condition that the judgment result is yes;
and the determining submodule is used for determining that the memory leakage or the memory exhaustion exists in the screen terminal equipment according to the log information.
Optionally, the apparatus further comprises:
the second determination module is used for determining a target solution corresponding to the memory leak or the memory exhaustion according to a pre-stored corresponding list of the memory leak or the memory exhaustion and the solution;
and the sending module is used for sending the memory leakage or the memory exhaustion and the target solution corresponding to the memory leakage or the memory exhaustion to one or more preset target accounts.
Optionally, the generating module includes:
the second obtaining submodule is used for obtaining the total memory of the screen-side equipment;
the determining submodule is used for determining a memory occupation ratio according to the memory consumption condition and the total memory;
and the generating submodule is used for generating the memory curve trend graph according to the memory occupation ratio.
Optionally, the apparatus further comprises:
the third determining module is used for determining a test scene of the screen-side equipment;
and the second acquisition module is used for acquiring the test script which is preset for the test scene.
Optionally, the generating module is further configured to
And monitoring data generated in the running process of the software development kit SDK process in the screen-end equipment by running the test script to obtain the memory consumption condition.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the memory consumption condition of the screen-side equipment is obtained, and a memory curve trend graph is generated according to the memory consumption condition; acquiring log information according to the memory curve trend graph; performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result; and under the condition that the memory detection result indicates that the memory problem exists, determining the type of the memory problem according to the log information, solving the problems that only equipment can be tested whether the memory leaks or not in the related technology, and the detailed trace log of a development engineer cannot be accurately provided after the memory leaks are found, monitoring the memory consumption condition, detecting the memory based on the memory consumption condition and the log information, and accurately providing the trace log (namely the log information) after the memory problem is found.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a method for detecting a memory of a screen-side device according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for detecting a memory of a screen-side device according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating memory testing according to an embodiment of the invention;
fig. 4 is a block diagram of a device for detecting a memory of a screen-side device according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of the screen-side device memory detection method according to the embodiment of the present invention, as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the screen-side device memory detection method in the embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to execute various functional applications and data processing, that is, to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio FrequeNcy (RF) module, which is used to communicate with the internet in a wireless manner.
Based on the foregoing mobile terminal or network architecture, in this embodiment, a method for detecting a memory of a screen-side device is provided, and fig. 2 is a flowchart of the method for detecting a memory of a screen-side device according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring the memory consumption condition of the screen-side equipment, and generating a memory curve trend chart according to the memory consumption condition;
in this embodiment of the present invention, in the step S202, the obtaining the memory consumption condition may specifically include: acquiring a total memory of the screen-side equipment; determining a memory occupation ratio according to the memory consumption condition and the total memory; and generating the memory curve trend graph according to the memory occupation ratio.
Step S204, acquiring log information according to the memory curve trend graph;
specifically, partial log information is acquired according to the memory curve trend graph, specifically, the log information in the continuous rising period is acquired, and not all the log information is acquired.
Step S206, performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result;
and step S208, determining the type of the memory problem according to the log information under the condition that the memory detection result indicates that the memory problem exists.
In this embodiment of the present invention, the memory problem may specifically include memory leak and memory exhaustion, and the step S208 may specifically include: judging whether the memory curve trend graph is in a continuous rising state within preset time; if so, acquiring the log information in the continuous rising period in the memory curve trend graph through a log tracking engine; determining that the memory leak or the memory exhaustion exists in the screen-side device according to the log information, the current implementation environment and the field information, and further determining that the memory leak or the memory exhaustion exists according to the log information, the current implementation environment and the field information, wherein the current implementation environment includes: the verification environment, the verification environment and the production environment, and the field information refers to the state reflected in the UI after the memory is leaked.
Through the steps S202 to S208, the memory consumption condition of the screen-side equipment is obtained, and a memory curve trend graph is generated according to the memory consumption condition; acquiring log information according to the memory curve trend graph; performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result; and under the condition that the memory detection result indicates that the memory problem exists, determining the type of the memory problem according to the log information, solving the problems that only equipment can be tested whether the memory leaks or not in the related technology, and the detailed trace log of a development engineer cannot be accurately provided after the memory leaks are found, monitoring the memory consumption condition, detecting the memory based on the memory consumption condition and the log information, and accurately providing the trace log (namely the log information) after the memory problem is found.
In an optional embodiment, after performing memory detection on the screen-side device according to the memory curve trend graph and the log information, determining a target solution corresponding to memory leakage or memory exhaustion according to a pre-stored corresponding list of memory leakage or memory exhaustion and solutions; and sending the memory leak or the memory exhaustion and the target solution corresponding to the memory leak or the memory exhaustion to one or more preset target accounts.
In another optional embodiment, before the memory consumption condition of the screen-side device is obtained, a test scenario of the screen-side device is determined; and acquiring a test script preset for the test scene. Correspondingly, the step S202 may specifically include: and monitoring data generated in the running process of the software development kit SDK process in the screen-end equipment by running the test script to obtain the memory consumption condition.
The memory test in the embodiment of the invention comprises the following steps: acquiring the current occupation ratio of a memory of the android intelligent screen-side equipment, repeatedly simulating an automatic test script to trigger the intelligent screen-side equipment to use the same function, and monitoring a memory curve trend graph in real time; and if the memory curve trend graph continuously rises, calling a log tracking engine to record the memory leakage log of the screen-end equipment and generate a memory leakage analysis solution so as to test the memory of the intelligent screen-end equipment. The embodiment of the invention not only can accurately find the problem of memory leakage, but also can improve the efficiency of solving the problem of memory leakage, and effectively improve the test efficiency and the BUG analysis efficiency, and the embodiment of the invention specifically comprises the following steps:
step 1, determining a test scene of intelligent equipment at a screen end;
and according to the SDK requirement and market feedback, evaluating the product, development and test together to determine a test scene. And the test scenarios are prioritized as shown in table 1.
TABLE 1
Figure BDA0003133938740000081
Figure BDA0003133938740000091
And 2, formulating and developing a test script admission and discharge standard as shown in the table 2.
TABLE 2
Figure BDA0003133938740000092
Test script is test data + operation, data can be configured, and the operation is python and java program.
And step 3, preparing tools and equipment, namely android screen-end intelligent equipment, a WiFi module, household appliances and an intelligent household APP.
Software Development Kit (SDK) is installed on an android screen end intelligent device and an intelligent household APP (application), and a wifi & blue module and a household appliance are dependent devices. The SDK controls the household appliances, and the Internet of things module is connected to the household appliances.
Step 4, fig. 3 is a schematic diagram of a memory test according to an embodiment of the present invention, and as shown in fig. 3, Jenkins schedules a script execution engine to execute a script;
step 5, the memory monitoring engine starts to work, a native memory and a java memory of the screen-end intelligent device are obtained at fixed time, and a memory curve trend graph is generated;
and 6, checking a memory trend graph generated by monitoring, if the phenomenon that the memory trend graph linearly rises in N fixed time periods does not have a downward trend, starting the work of a log tracking engine, capturing log information, the current implementation environment and field information of the intelligent screen end equipment in real time, analyzing by a memory analysis tool based on the log information, the current implementation environment and the field information, and determining memory leakage or memory exhaustion.
And 7, storing solutions such as memory leakage, system crash and the like accumulated by big data by the log tracking engine. If the memory trend graph linearly rises in N fixed time stages, the memory leakage or the memory crash is found, the log is timely analyzed, and a guiding solution is given to a development engineer as a reference for modifying the bug. Memory leaks can occur if there are a large number of garbage objects referenced in a program. If the native memory is exhausted, the program will crash;
and 8, pushing the test result and the test log tracking related information to the team member through mail.
According to the memory test provided by the embodiment of the invention, the situation that the program circulation new object on the android platform is not released can be avoided; strong references to objects that are no longer used are avoided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 3
The present embodiment further provides a device for detecting a memory of a screen-side device, where the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device that has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a device for detecting a memory of a screen-side device according to an embodiment of the present invention, as shown in fig. 4, including:
the generating module 42 is configured to obtain a memory consumption condition of the screen-side device, and generate a memory curve trend graph according to the memory consumption condition;
a first obtaining module 44, configured to obtain log information according to the memory curve trend graph;
the memory detection module 46 is configured to perform memory detection on the screen-side device according to the memory curve trend graph and the log information to obtain a memory detection result;
a first determining module 48, configured to determine the type of the memory problem according to the log information when the memory detection result indicates that the memory problem exists.
Optionally, the memory detection module 46 includes:
the judgment submodule is used for judging whether the memory curve trend graph is in a continuous rising state within preset time;
the first obtaining submodule is used for obtaining the log information in the continuous rising period in the memory curve trend graph through a log tracking engine under the condition that the judgment result is yes;
and the determining submodule is used for determining that the memory leakage or the memory exhaustion exists in the screen terminal equipment according to the log information.
Optionally, the apparatus further comprises:
the second determination module is used for determining a target solution corresponding to the memory leak or the memory exhaustion according to a pre-stored corresponding list of the memory leak or the memory exhaustion and the solution;
and the sending module is used for sending the memory leakage or the memory exhaustion and the target solution corresponding to the memory leakage or the memory exhaustion to one or more preset target accounts.
Optionally, the generating module 42 includes:
the second obtaining submodule is used for obtaining the total memory of the screen-side equipment;
the determining submodule is used for determining a memory occupation ratio according to the memory consumption condition and the total memory;
and the generating submodule is used for generating the memory curve trend graph according to the memory occupation ratio.
Optionally, the apparatus further comprises:
the third determining module is used for determining a test scene of the screen-side equipment;
and the second acquisition module is used for acquiring the test script which is preset for the test scene.
Optionally, the generating module 42 is further configured to
And monitoring data generated in the running process of the software development kit SDK process in the screen-end equipment by running the test script to obtain the memory consumption condition.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring the memory consumption condition of the screen-side equipment, and generating a memory curve trend chart according to the memory consumption condition;
s2, acquiring log information according to the memory curve trend graph;
s3, performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result;
and S4, determining the type of the memory problem according to the log information under the condition that the memory detection result indicates that the memory problem exists.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a RaNdom Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, which can store computer programs.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring the memory consumption condition of the screen-side equipment, and generating a memory curve trend chart according to the memory consumption condition;
s2, acquiring log information according to the memory curve trend graph;
s3, performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result;
and S4, determining the type of the memory problem according to the log information under the condition that the memory detection result indicates that the memory problem exists.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for detecting a memory of a screen-side device is characterized by comprising the following steps:
acquiring the memory consumption condition of screen-end equipment, and generating a memory curve trend graph according to the memory consumption condition;
acquiring log information according to the memory curve trend graph;
performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result;
and determining the type of the memory problem according to the log information under the condition that the memory problem exists in the memory detection result.
2. The method of claim 1, wherein performing memory detection on the screen-side device according to the memory curve trend graph and the log information comprises:
judging whether the memory curve trend graph is in a continuous rising state within preset time;
if so, acquiring the log information in the continuous rising period in the memory curve trend graph through a log tracking engine;
and determining that the memory leakage or the memory exhaustion exists in the screen-side equipment according to the log information.
3. The method of claim 2, wherein after performing the memory check on the screen-side device according to the memory curve trend graph and the log information, the method further comprises:
determining a target solution corresponding to the memory leak or the memory exhaustion according to a pre-stored corresponding list of the memory leak or the memory exhaustion and the solution;
and sending the memory leak or the memory exhaustion and the target solution corresponding to the memory leak or the memory exhaustion to one or more preset target accounts.
4. The method of claim 1, wherein generating the memory curve trend graph according to the memory consumption comprises:
acquiring a total memory of the screen-side equipment;
determining a memory occupation ratio according to the memory consumption condition and the total memory;
and generating the memory curve trend graph according to the memory occupation ratio.
5. The method according to any one of claims 1 to 4, wherein before obtaining the memory consumption condition of the screen-side device, the method further comprises:
determining a test scene of the screen-end equipment;
and acquiring a test script preset for the test scene.
6. The method of claim 5, wherein obtaining the memory consumption of the screen-side device comprises:
and monitoring data generated in the running process of the software development kit SDK process in the screen-end equipment by running the test script to obtain the memory consumption condition.
7. The utility model provides a screen end equipment memory detection device which characterized in that includes:
the generating module is used for acquiring the memory consumption condition of the screen-side equipment and generating a memory curve trend graph according to the memory consumption condition;
the first acquisition module is used for acquiring log information according to the memory curve trend graph;
the memory detection module is used for performing memory detection on the screen-side equipment according to the memory curve trend graph and the log information to obtain a memory detection result;
and the first determining module is used for determining the type of the memory problem according to the log information under the condition that the memory problem exists in the memory detection result.
8. The apparatus of claim 7, wherein the memory detection module comprises:
the judgment submodule is used for judging whether the memory curve trend graph is in a continuous rising state within preset time;
the first obtaining submodule is used for obtaining the log information in the continuous rising period in the memory curve trend graph through a log tracking engine under the condition that the judgment result is yes;
and the determining submodule is used for determining that the memory leakage or the memory exhaustion exists in the screen terminal equipment according to the log information.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN202110713725.5A 2021-06-25 2021-06-25 Method and device for detecting memory of screen terminal equipment, storage medium and electronic device Active CN113434364B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110713725.5A CN113434364B (en) 2021-06-25 2021-06-25 Method and device for detecting memory of screen terminal equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110713725.5A CN113434364B (en) 2021-06-25 2021-06-25 Method and device for detecting memory of screen terminal equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113434364A true CN113434364A (en) 2021-09-24
CN113434364B CN113434364B (en) 2024-03-22

Family

ID=77754697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110713725.5A Active CN113434364B (en) 2021-06-25 2021-06-25 Method and device for detecting memory of screen terminal equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113434364B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262582A (en) * 2010-05-25 2011-11-30 芯讯通无线科技(上海)有限公司 Mobile terminal and method for detecting memory leakage thereof
CN102955719A (en) * 2011-08-31 2013-03-06 国际商业机器公司 Determination method and device of suspected memory leak
CN103473172A (en) * 2013-09-05 2013-12-25 无敌科技(西安)有限公司 System and method for checking leak of background program memories and positioning leak memory points
CN104866409A (en) * 2015-05-29 2015-08-26 小米科技有限责任公司 Method and apparatus for monitoring memory leakage
CN105204996A (en) * 2015-09-24 2015-12-30 努比亚技术有限公司 Memory leak detection device and method and terminal
CN105224433A (en) * 2014-06-23 2016-01-06 阿里巴巴集团控股有限公司 A kind of internal memory monitoring method and server
CN106802861A (en) * 2015-11-26 2017-06-06 大唐移动通信设备有限公司 A kind of method and apparatus for detecting RAM leakage
CN107346285A (en) * 2017-05-26 2017-11-14 郑州云海信息技术有限公司 A kind of method for detecting memory leakage and device
CN107357656A (en) * 2017-06-27 2017-11-17 努比亚技术有限公司 A kind of memory allocation method, mobile terminal and computer-readable recording medium
CN107957941A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 Mobile terminal memory overflow treating method and apparatus
CN108073439A (en) * 2016-11-11 2018-05-25 深圳业拓讯通信科技有限公司 A kind of JVM RAM leakages automatic testing method and system
CN108845934A (en) * 2018-05-24 2018-11-20 深圳市腾讯网络信息技术有限公司 The localization method and device in memory overflow source, storage medium, electronic device
CN109101383A (en) * 2018-08-09 2018-12-28 郑州云海信息技术有限公司 A kind of test method and system of memory detection
CN110210220A (en) * 2018-07-19 2019-09-06 腾讯科技(深圳)有限公司 A kind of information leakage detection method, device and storage medium
CN110704217A (en) * 2019-08-27 2020-01-17 努比亚技术有限公司 Memory leak detection method, terminal and computer readable storage medium
CN111274060A (en) * 2020-02-10 2020-06-12 广州虎牙科技有限公司 Method, device, equipment and storage medium for determining memory abnormity
CN111984541A (en) * 2020-08-31 2020-11-24 北京达佳互联信息技术有限公司 Memory leak detection method and device and terminal

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262582A (en) * 2010-05-25 2011-11-30 芯讯通无线科技(上海)有限公司 Mobile terminal and method for detecting memory leakage thereof
CN102955719A (en) * 2011-08-31 2013-03-06 国际商业机器公司 Determination method and device of suspected memory leak
CN103473172A (en) * 2013-09-05 2013-12-25 无敌科技(西安)有限公司 System and method for checking leak of background program memories and positioning leak memory points
CN105224433A (en) * 2014-06-23 2016-01-06 阿里巴巴集团控股有限公司 A kind of internal memory monitoring method and server
CN104866409A (en) * 2015-05-29 2015-08-26 小米科技有限责任公司 Method and apparatus for monitoring memory leakage
CN105204996A (en) * 2015-09-24 2015-12-30 努比亚技术有限公司 Memory leak detection device and method and terminal
CN106802861A (en) * 2015-11-26 2017-06-06 大唐移动通信设备有限公司 A kind of method and apparatus for detecting RAM leakage
CN107957941A (en) * 2016-10-17 2018-04-24 腾讯科技(深圳)有限公司 Mobile terminal memory overflow treating method and apparatus
CN108073439A (en) * 2016-11-11 2018-05-25 深圳业拓讯通信科技有限公司 A kind of JVM RAM leakages automatic testing method and system
CN107346285A (en) * 2017-05-26 2017-11-14 郑州云海信息技术有限公司 A kind of method for detecting memory leakage and device
CN107357656A (en) * 2017-06-27 2017-11-17 努比亚技术有限公司 A kind of memory allocation method, mobile terminal and computer-readable recording medium
CN108845934A (en) * 2018-05-24 2018-11-20 深圳市腾讯网络信息技术有限公司 The localization method and device in memory overflow source, storage medium, electronic device
CN110210220A (en) * 2018-07-19 2019-09-06 腾讯科技(深圳)有限公司 A kind of information leakage detection method, device and storage medium
CN109101383A (en) * 2018-08-09 2018-12-28 郑州云海信息技术有限公司 A kind of test method and system of memory detection
CN110704217A (en) * 2019-08-27 2020-01-17 努比亚技术有限公司 Memory leak detection method, terminal and computer readable storage medium
CN111274060A (en) * 2020-02-10 2020-06-12 广州虎牙科技有限公司 Method, device, equipment and storage medium for determining memory abnormity
CN111984541A (en) * 2020-08-31 2020-11-24 北京达佳互联信息技术有限公司 Memory leak detection method and device and terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GAYATHRI SANTHANAKRISHNAN ET AL.: "Memory leak detection in android applications based on code patterns", 《2016 INTERNATIONAL CONFERENCE ON INFORMATION SOCIETY (I-SOCIETY)》, pages 133 - 134 *
孙琳等: "JavaScript中的内存泄漏检测方法研究", 《计算机与数字工程》, vol. 43, no. 12, pages 2230 - 2233 *

Also Published As

Publication number Publication date
CN113434364B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN106294120B (en) Method, apparatus and computer program product for testing code
CN114546738B (en) Universal test method, system, terminal and storage medium for server
CN110784879B (en) Network mode switching test method, system, equipment and medium of communication module
CN109885496B (en) Test log management method and system
CN107957956A (en) Test method, device and the readable storage medium storing program for executing of software differences coverage rate
CN110362460B (en) Application program performance data processing method, device and storage medium
CN112052169A (en) Test management method, system, device and computer readable storage medium
CN110647471A (en) Interface test case generation method, electronic device and storage medium
CN111124871A (en) Interface test method and device
CN111309609A (en) Software processing system
CN109783284A (en) Information acquisition method, system and server, computer readable storage medium
CN106972983B (en) Automatic testing device and method for network interface
CN112269746A (en) Automatic testing method and related equipment
CN110750453A (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN111966597B (en) Test data generation method and device
CN115114141A (en) Method, device and equipment for testing performance of application program and storage medium
CN110990381B (en) Processing method and device of server, storage medium and electronic device
CN112084108A (en) Test script generation method and device and related components
CN113434364B (en) Method and device for detecting memory of screen terminal equipment, storage medium and electronic device
CN110134583B (en) Software testing and data processing method and device
CN106484601B (en) User data analysis method and system for client
CN106951236B (en) Plug-in development method and device
CN113806231A (en) Code coverage rate analysis method, device, equipment and medium
CN112148590B (en) Method, device and equipment for determining code coverage rate
CN111352852A (en) Regression test case selection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant