CN108009095B - Memory test method and related product - Google Patents

Memory test method and related product Download PDF

Info

Publication number
CN108009095B
CN108009095B CN201711430215.7A CN201711430215A CN108009095B CN 108009095 B CN108009095 B CN 108009095B CN 201711430215 A CN201711430215 A CN 201711430215A CN 108009095 B CN108009095 B CN 108009095B
Authority
CN
China
Prior art keywords
memory
memory information
mobile terminal
information
preset operation
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.)
Active
Application number
CN201711430215.7A
Other languages
Chinese (zh)
Other versions
CN108009095A (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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Spreadrise Technologies 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 Shanghai Spreadrise Technologies Co Ltd filed Critical Shanghai Spreadrise Technologies Co Ltd
Priority to CN201711430215.7A priority Critical patent/CN108009095B/en
Publication of CN108009095A publication Critical patent/CN108009095A/en
Application granted granted Critical
Publication of CN108009095B publication Critical patent/CN108009095B/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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/366Software debugging using diagnostics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application discloses a memory test method and a related product. The method comprises the following steps: the mobile terminal runs a target application program and a test program, wherein the test program is used for simulating at least one preset operation aiming at a running interface of the target application program; the mobile terminal detects the memory of the mobile terminal to obtain memory information and sends the memory information to the terminal equipment; the terminal equipment receives memory information from the mobile terminal, and determines the memory occupation ratio corresponding to each preset operation according to the memory information; and the terminal equipment determines whether the memory overflow occurs in each preset operation according to the memory ratio. By the embodiment of the application, the mobile terminal can synchronously transmit data to the terminal equipment to accurately judge whether the memory overflows or not.

Description

Memory test method and related product
Technical Field
The application relates to the technical field of mobile terminals, in particular to a memory testing method and a related product.
Background
With the rapid development of related technologies of smart phones, more and more applications are installed in user mobile phones, such as reading applications, payment applications, game applications, music applications, and the like, and people's clothes and eating habits are inseparable from mobile phones.
Disclosure of Invention
The embodiment of the application provides a memory testing method and a related product, and whether the memory overflows in the application use process can be intelligently obtained by synchronously transmitting data to terminal equipment through a mobile terminal.
In a first aspect, an embodiment of the present application provides a memory testing method, an application and a mobile terminal, where the method includes:
running a target application program and a test program, wherein the test program is used for simulating at least one preset operation aiming at a running interface of the target application program;
detecting the memory of the mobile terminal to obtain memory information;
and sending the memory information to a terminal device, wherein the memory information is used for determining a memory occupation ratio corresponding to each preset operation by the terminal device according to the memory information, and the memory occupation ratio is used for determining whether the memory overflow occurs in each preset operation.
In a second aspect, an embodiment of the present application provides a memory testing method, which is applied to a terminal device, and the method includes:
receiving memory information from a mobile terminal, wherein the memory information is obtained by detecting the memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used for simulating at least one preset operation aiming at a running interface of the target application program;
determining the memory occupation ratio corresponding to each preset operation according to the memory information;
and determining whether the memory overflow occurs in each preset operation according to the memory ratio.
In a third aspect, an embodiment of the present application provides a mobile terminal, including:
the system comprises an operation unit, a test unit and a control unit, wherein the operation unit is used for operating a target application program and a test program, and the test program is used for simulating at least one preset operation aiming at an operation interface of the target application program;
the mobile terminal comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting the memory of the mobile terminal to obtain memory information;
and the sending unit is used for sending the memory information to the terminal equipment, the memory information is used for determining a memory occupation ratio corresponding to each preset operation by the terminal equipment according to the memory information, and the memory occupation ratio is used for determining whether the memory overflow occurs in each preset operation.
In a fourth aspect, an embodiment of the present application provides a terminal device, including:
the mobile terminal comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving memory information from the mobile terminal, the memory information is obtained by detecting the memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used for simulating at least one preset operation of a running interface aiming at the target application program;
the determining unit is used for determining the memory occupation ratio corresponding to each preset operation according to the memory information;
and the determining unit is further used for determining whether the memory overflow occurs in each preset operation according to the memory ratio.
In a fifth aspect, an embodiment of the present application provides a mobile terminal, including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for some or all of the steps as described in the first aspect.
In a sixth aspect, an embodiment of the present application provides a terminal device, including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for some or all of the steps as described in the second aspect.
In a seventh aspect, this application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to make a computer execute some or all of the steps described in the first aspect or the second aspect of this application.
In an eighth aspect, embodiments of the present application provide a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package, said computer comprising a mobile terminal.
It can be seen that, in the embodiment of the application, the mobile terminal runs the target application program and the test program, and the test program is used for simulating at least one preset operation of a running interface for the target application program; the mobile terminal detects the memory of the mobile terminal to obtain memory information and sends the memory information to the terminal equipment; the method comprises the steps that terminal equipment receives memory information from a mobile terminal, and the memory occupation ratio corresponding to each preset operation is determined according to the memory information; and the terminal equipment determines whether the memory overflow occurs in each preset operation according to the memory occupation ratio. By the embodiment of the application, the mobile terminal can synchronously transmit data to the terminal equipment to accurately judge whether the memory overflows or not.
Drawings
Reference will now be made in brief to the accompanying drawings, to which embodiments of the present application relate.
Fig. 1 is a schematic flowchart of a memory testing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a memory testing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a memory testing method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a memory testing method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a memory testing method according to an embodiment of the present application;
fig. 6 is a memory test apparatus according to an embodiment of the present disclosure;
fig. 7 is a memory test apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an embodiment of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The operating system related to the embodiment of the invention is a software system which performs unified management on hardware resources and provides a service interface for a user.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a memory testing method according to an embodiment of the present application, where the memory testing method includes:
101, the mobile terminal runs a target application program and a test program, and the test program is used for simulating at least one preset operation of a running interface aiming at the target application program.
The target application program refers to a third-party application program installed in a user space of the mobile terminal, the third-party application program may be, for example, an instant messaging application, a game application, or the like, and the third-party application program may be installed by a user or may be pre-installed by a developer before the mobile terminal leaves a factory, which is not limited herein.
102, the mobile terminal detects the memory of the mobile terminal to obtain the memory information.
The detection period may be preset to be flexibly limited, such as 300ms, 5s, and 6s, and is not limited herein.
103, the mobile terminal sends the memory information to a terminal device, the memory information is used for the terminal device to determine a memory occupation ratio corresponding to each preset operation according to the memory information, and the memory occupation ratio is used for determining whether memory overflow occurs in each preset operation.
It can be seen that, in the embodiment of the present application, a mobile terminal first runs a target application program and a test program, where the test program is used to simulate at least one preset operation on a running interface of the target application program; secondly, the mobile terminal detects the memory of the mobile terminal to obtain memory information; and finally, the mobile terminal sends the memory information to the terminal equipment, wherein the memory information is used for determining the memory occupation ratio corresponding to each preset operation according to the memory information by the terminal equipment, and the memory occupation ratio is used for determining whether the memory overflow occurs in each preset operation. The mobile terminal runs the target application program and the test program at the same time, and the obtained memory is synchronously transmitted to the test program when the target application program is run, so that the memory information required by the test program can be obtained, the user operation is further simulated, the memory data of each stage in the running process of the target application program is intelligently obtained and transmitted to the terminal equipment, which operation causes the memory overflow can be accurately judged, and the memory control efficiency is favorably improved.
In one possible example, the detecting the memory of the mobile terminal to obtain the memory information includes: the mobile terminal detects the memory of the mobile terminal by running a pre-installed third-party application program so as to acquire memory information.
The third-party application program is a memory detection application program.
As can be seen, in this example, since the memory detection application is associated with the running target application, it is beneficial to accurately detect the memory information in the memory of the mobile terminal, and improve the accuracy of the memory detection.
In one possible example, the detecting the memory of the mobile terminal to obtain the memory information includes: the mobile terminal detects the memory of the mobile terminal by running a preset system service to acquire memory information.
The preset system service may be a memory management service, and the like, and is not limited herein.
As can be seen, in this example, the memory can detect the same type of memory information through the memory management service preset by the mobile terminal, and different types of memory information are removed, which is beneficial to improving the accuracy of obtaining the memory information in the memory detection.
In one possible example, the at least one preset operation includes at least one of: the method comprises the following steps of touch click operation, touch sliding operation, pressing operation aiming at preset physical keys, body sensing operation and voice input operation.
For example, when a game application a is running on a mobile phone, in a battle field, the left hand is in the control direction, and the right hand is releasing skills, the running memory detection program detects that the memory for the left hand operation is 100MB, the memory for the right hand operation is 150MB, and the total memory at this time is 500MB, so that the memory occupancy ratio for the left hand operation is 1/5, and the memory occupancy ratio for the right hand operation is 3/10. And judging according to the conditions preset by the system, and avoiding memory overflow in the left-hand operation and the right-hand operation.
Therefore, in this example, the mobile terminal can transmit the memories of the multiple operations of the running target application program to the test program, so that the test program can test the memory of each operation of the target application in a targeted manner, a memory occupation ratio is obtained, the accuracy of memory test is improved, and the test time is saved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a memory testing method according to an embodiment of the present application, where the memory testing method includes:
the terminal device receives memory information from a mobile terminal, wherein the memory information is obtained by detecting a memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used for simulating at least one preset operation of a running interface aiming at the target application program.
202, the terminal device determines the memory occupation ratio corresponding to each preset operation according to the memory information.
And 203, the terminal equipment determines whether the memory overflow occurs in each preset operation according to the memory ratio.
It can be seen that, in the embodiment of the present application, a terminal device first receives memory information from a mobile terminal, where the memory information is obtained by detecting a memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used to simulate at least one preset operation on a running interface of the target application program; secondly, determining the memory occupation ratio corresponding to each preset operation according to the memory information; and finally, determining whether the memory overflow occurs in each preset operation according to the memory ratio. The terminal equipment can classify the received memory information according to the received memory information to obtain different memory occupation ratios corresponding to each operation, and compares the memory occupation ratios with the total memory to accurately judge the memory overflow state of each operation, so that the accuracy of judging the memory overflow position is improved, and the memory testing time is prolonged.
In one possible example, the operation times of the at least one preset operation are different from each other; determining the memory occupation ratio corresponding to each preset operation according to the memory information comprises the following steps: screening corresponding partial memory information according to the operation time of each preset operation; and determining the memory occupation ratio corresponding to each preset operation according to the screened partial memory information.
The preset operation time may be 300ms, 3s, 6s, etc., and is not limited herein.
As can be seen, in this example, because of the plurality of memory information generated under the same preset operation, the terminal device can screen out the corresponding memory information, and obtain the memory occupation ratio of the corresponding operation by comparing the screened memory information with the total memory, which is beneficial to improving the accuracy and efficiency of the memory test.
In one possible example, the operation time of the at least one preset operation is the same; determining the memory occupation ratio corresponding to each preset operation according to the memory information comprises the following steps: inquiring identification information of corresponding memory information according to each preset operation; and determining the memory occupation ratio corresponding to each preset operation according to the identification information.
The identification information is located in the script, a data acquisition mode is set through the script, and each line of data is obtained through the identification information in the script.
Therefore, in the example, the memory occupation ratio of each operation in the total memory is obtained through the difference of the identification information of each operation, so that the accuracy of the detection operation is improved, which operation is determined accurately according to the identification information, and the detection time is saved.
In a possible example, the determining whether the memory overflow occurs in each preset operation according to the memory ratio includes: processing the memory information by operating preset software to acquire a broken line image; and determining the memory of each preset operation as memory overflow according to the slope of the broken line in the image.
The preset software may be a MATLAB program, which is not limited herein.
For example, after an image is drawn by an MATLAB program, a normal line graph of the memory is automatically identified, wherein the normal value of the memory can be set by a terminal, and the slope of the line graph represents the memory increased by a single click operation. In the running process of a certain chatting software A, the terminal equipment draws an image according to the screened memory information, the data is increased by 10MB, the data is compared with a preset slope, the data does not belong to the range of memory overflow, and therefore the memory of the operation is judged to be a normal memory.
As can be seen, in this example, since the data of the memory information of each operation is different, the reliability and the singleness of the data of each operation are ensured to a certain extent in the aspect of processing the screening data, and then an accurate proportion image of each operation can be obtained, which is beneficial to improving the accuracy and the efficiency of the memory test.
Referring to fig. 3, fig. 3 is a schematic flow chart of a memory testing method according to an embodiment of the present application, where as shown in the figure, the memory testing method includes:
301, the mobile terminal runs a target application and a test program, wherein the test program is used for simulating at least one preset operation of a running interface for the target application.
302, the mobile terminal detects the memory of the mobile terminal to obtain the memory information.
303, the mobile terminal sends the memory information to a terminal device, where the memory information is used for the terminal device to determine a memory occupation ratio corresponding to each preset operation according to the memory information, and the memory occupation ratio is used for determining whether a memory overflow occurs in each preset operation.
304, the terminal device receives memory information from a mobile terminal, where the memory information is obtained by detecting a memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used to simulate at least one preset operation on a running interface of the target application program.
305, the terminal device determines a memory occupation ratio corresponding to each preset operation according to the memory information.
And 306, the terminal equipment determines whether the memory overflow occurs in each preset operation according to the memory ratio.
It can be seen that, in the embodiment of the application, the mobile terminal runs the target application program and the test program, and the test program is used for simulating at least one preset operation of a running interface for the target application program; the mobile terminal detects the memory of the mobile terminal to obtain memory information and sends the memory information to the terminal equipment; the method comprises the steps that terminal equipment receives memory information from a mobile terminal, and the memory occupation ratio corresponding to each preset operation is determined according to the memory information; and the terminal equipment determines whether the memory overflow occurs in each preset operation according to the memory occupation ratio. Because the mobile terminal and the terminal equipment synchronously transmit the memory information, the memory detection time is extremely saved, the terminal equipment can quickly judge which image operation has the memory overflow phenomenon through the data transmitted by the mobile terminal and feed back the data to the mobile terminal, the accuracy of the memory test performed by the mobile terminal is favorably improved, and the high efficiency is ensured.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application, where the program includes instructions for performing the following steps;
running a target application program and a test program, wherein the test program is used for simulating at least one preset operation aiming at a running interface of the target application program;
detecting the memory of the mobile terminal to obtain memory information;
and sending the memory information to a terminal device, wherein the memory information is used for determining a memory occupation ratio corresponding to each preset operation by the terminal device according to the memory information, and the memory occupation ratio is used for determining whether the memory overflow occurs in each preset operation.
It can be seen that, in the embodiment of the present application, a mobile terminal first runs a target application program and a test program, where the test program is used to simulate at least one preset operation on a running interface of the target application program; secondly, the mobile terminal detects the memory of the mobile terminal to obtain memory information; and finally, the mobile terminal sends the memory information to the terminal equipment, wherein the memory information is used for determining the memory occupation ratio corresponding to each preset operation according to the memory information by the terminal equipment, and the memory occupation ratio is used for determining whether the memory overflow occurs in each preset operation. The mobile terminal runs the target application program and the test program at the same time, and the obtained memory is synchronously transmitted to the test program when the target application program is run, so that the memory information required by the test program can be obtained, the user operation is further simulated, the memory data of each stage in the running process of the target application program is intelligently obtained and transmitted to the terminal equipment, which operation causes the memory overflow can be accurately judged, and the memory control efficiency is favorably improved.
In one possible example, in the aspect of detecting the memory of the mobile terminal to obtain the memory information, the instructions in the program are specifically configured to perform the following operations: and controlling the mobile terminal to detect the memory of the mobile terminal by running a pre-installed third-party application program so as to acquire memory information.
In one possible example, in the aspect of detecting the memory of the mobile terminal to obtain the memory information, the instructions in the program are specifically configured to perform the following operations: the mobile terminal detects the memory of the mobile terminal by running a preset system service to acquire memory information.
In one possible example, the at least one preset operation includes at least one of: the method comprises the following steps of touch click operation, touch sliding operation, pressing operation aiming at preset physical keys, body sensing operation and voice input operation.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application, where the program includes instructions for performing the following steps;
receiving memory information from a mobile terminal, wherein the memory information is obtained by detecting the memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used for simulating at least one preset operation aiming at a running interface of the target application program;
determining the memory occupation ratio corresponding to each preset operation according to the memory information;
and determining whether the memory overflow occurs in each preset operation according to the memory ratio.
It can be seen that, in this example, a terminal device first receives memory information from a mobile terminal, where the memory information is obtained by detecting a memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used to simulate at least one preset operation on a running interface of the target application program; secondly, determining the memory occupation ratio corresponding to each preset operation according to the memory information; and finally, determining whether the memory overflow occurs in each preset operation according to the memory ratio. The terminal equipment can classify the received memory information according to the received memory information to obtain different memory occupation ratios corresponding to each operation, and compares the memory occupation ratios with the total memory to accurately judge the memory overflow state of each operation, so that the accuracy of judging the memory overflow position is improved, and the memory testing time is prolonged.
In one possible example, the operation times of the at least one preset operation are different from each other; in the aspect of determining the memory proportion corresponding to each preset operation according to the memory information, the instruction in the program is specifically configured to perform the following operations: controlling to screen corresponding part of memory information according to the operation time of each preset operation; and controlling to determine the memory occupation ratio corresponding to each preset operation according to the screened partial memory information.
In one possible example, the operation time of the at least one preset operation is the same; in the aspect of determining the memory proportion corresponding to each preset operation according to the memory information, the instruction in the program is specifically configured to perform the following operations: controlling to query the identification information of the corresponding memory information according to each preset operation; and controlling to determine the memory occupation ratio corresponding to each preset operation according to the identification information.
In a possible example, in the aspect that whether the memory overflow occurs in each preset operation is determined according to the memory proportion, the instruction in the program is specifically configured to perform the following operations: controlling to process the memory information by running preset software to acquire a broken line image; and controlling the memory of each preset operation to be memory overflow according to the slope of the broken line in the image.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 shows a block diagram of a possible functional unit of the memory test device according to the above embodiment. The memory test device 600 is applied to a mobile terminal, and the memory test device 600 includes: an operation unit 601, a detection unit 602 and a transmission unit 603.
The running unit 601 is configured to run a target application and a test program, where the test program is configured to simulate at least one preset operation on a running interface of the target application;
the detecting unit 602 is configured to detect a memory of the mobile terminal to obtain memory information;
the sending unit 603 is configured to send the memory information to a terminal device, where the memory information is used for the terminal device to determine a memory occupation ratio corresponding to each preset operation according to the memory information, and the memory occupation ratio is used for determining whether a memory overflow occurs in each preset operation.
In a possible example, in the aspect of detecting the memory of the mobile terminal to obtain the memory information, the detecting unit 602 is specifically configured to: and controlling the mobile terminal to detect the memory of the mobile terminal by running a pre-installed third-party application program so as to acquire memory information.
In a possible example, in the aspect of detecting the memory of the mobile terminal to obtain the memory information, the processing unit 602 is specifically configured to: and controlling the mobile terminal to detect the memory of the mobile terminal by running a preset system service so as to acquire memory information.
In one possible example, the at least one preset operation includes at least one of:
the method comprises the following steps of touch click operation, touch sliding operation, pressing operation aiming at preset physical keys, body sensing operation and voice input operation.
Fig. 7 is a block diagram showing a possible functional unit composition of the memory test device according to the above embodiment. The memory test device 700 is applied to a terminal device, and the memory test device 700 includes: a receiving unit 701 and a determining unit 702.
The receiving unit 701 is configured to receive memory information from a mobile terminal, where the memory information is obtained by detecting a memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used to simulate at least one preset operation on a running interface of the target application program;
the determining unit 702 is configured to determine, according to the memory information, a memory proportion corresponding to each preset operation;
the determining unit 702 is further configured to determine whether a memory overflow occurs in each preset operation according to the memory ratio.
In one possible example, the operation times of the at least one preset operation are different from each other; in the aspect of determining the memory proportion corresponding to each preset operation according to the memory information, the determining unit 702 is specifically configured to: controlling to screen corresponding part of memory information according to the operation time of each preset operation; and controlling to determine the memory occupation ratio corresponding to each preset operation according to the screened partial memory information.
In one possible example, the operation time of the at least one preset operation is the same; in the aspect of determining the memory proportion corresponding to each preset operation according to the memory information, the determining unit 702 is specifically configured to: controlling to query the identification information of the corresponding memory information according to each preset operation; and controlling to determine the memory occupation ratio corresponding to each preset operation according to the identification information.
In a possible example, in the aspect of determining whether the memory overflow occurs in each preset operation according to the memory ratio, the determining unit 702 is specifically configured to: controlling to process the memory information by running preset software to acquire a broken line image; and controlling the memory of each preset operation to be memory overflow according to the slope of the broken line in the image.
In accordance with the above, please refer to fig. 8, which is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present disclosure. The mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, e.g., a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 being connected by a bus 5000.
The Mobile terminal described in the embodiment of the present application may include a smart Phone (e.g., an Android Phone, an IOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable device, which are examples and not exhaustive, and include but are not limited to the Mobile terminal.
The input device 1000 may specifically include a touch panel, a physical button, a mouse, and a microphone.
The output device 2000 may be a display screen.
The memory 4000 may be a high-speed ROM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 4000 is used for storing a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used for calling the program codes stored in the memory 4000 to execute the following operations:
the processor 3000 is configured to:
running a target application program and a test program, wherein the test program is used for simulating at least one preset operation aiming at a running interface of the target application program;
detecting the memory of the mobile terminal to obtain memory information;
and sending the memory information to a terminal device, wherein the memory information is used for determining a memory occupation ratio corresponding to each preset operation by the terminal device according to the memory information, and the memory occupation ratio is used for determining whether the memory overflow occurs in each preset operation.
Please refer to fig. 9, which is a schematic structural diagram of an embodiment of a terminal device according to an embodiment of the present application. The terminal device described in this embodiment includes: at least one input device 1100; at least one output device 2100; at least one processor 3100, e.g., a CPU; and a memory 4100, the input device 1100, the output device 2100, the processor 3100, and the memory 4100 being connected by a bus 5100.
The terminal device described in the embodiment of the present application may include a smart Phone (such as an Android Phone, an IOS Phone, a Windows Phone, etc.), a tablet computer, a palm computer, a notebook computer, a Mobile Internet device (MID, Mobile Internet Devices), or a wearable device, which are merely examples, but are not exhaustive and include but are not limited to the Mobile terminal.
The input device 1100 may specifically include a touch panel, a physical button, a mouse, and a microphone.
The output device 2100 may be a display screen.
The memory 4100 may be a high-speed ROM memory, or a non-volatile memory (e.g., a magnetic disk memory). The memory 4100 is used for storing a set of program codes, and the input device 1100, the output device 2100 and the processor 3100 are used for calling the program codes stored in the memory 4100, and performing the following operations:
the processor 3100, configured to:
receiving memory information from a mobile terminal, wherein the memory information is obtained by detecting the memory of the mobile terminal when the mobile terminal runs a target application program and a test program, and the test program is used for simulating at least one preset operation aiming at a running interface of the target application program;
determining the memory occupation ratio corresponding to each preset operation according to the memory information;
and determining whether the memory overflow occurs in each preset operation according to the memory ratio.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in view of the above, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A memory test method is applied to a mobile terminal, and the method comprises the following steps:
running a target application program and a test program, wherein the test program is used for simulating at least one preset operation aiming at a running interface of the target application program;
detecting the same type of memory information in the mobile terminal by adopting a memory management service, and removing different types of memory information, wherein the same type of memory information is synchronously transmitted to the test program when the target application program is operated, so that the test program determines the memory information corresponding to each stage in the operation process of the target application program, and simulates user operation according to the memory information corresponding to each stage;
sending the same kind of memory information to terminal equipment so that the terminal equipment runs preset software to process the memory information to acquire a broken line image, determining whether memory overflow occurs in each preset operation according to the slope of a broken line in the broken line image, and identifying a normal broken line graph of the memory; wherein, the slope of the broken line represents the memory increased by a single operation;
after receiving the same-class memory information, the terminal device screens out the corresponding memory information according to the operation time of each preset operation, or screens out the corresponding memory information according to the identification information of the memory information corresponding to each preset operation; the identification information is located in the script, a data acquisition mode is set through the script, and each line of data is obtained through the identification information in the script.
2. The method according to claim 1, wherein the detecting the memory of the mobile terminal to obtain the memory information comprises:
the mobile terminal detects the memory of the mobile terminal by running a pre-installed third-party application program so as to acquire memory information.
3. The method according to claim 1, wherein the detecting the memory of the mobile terminal to obtain the memory information comprises:
the mobile terminal detects the memory of the mobile terminal by running a preset system service to acquire memory information.
4. The method according to any one of claims 1-3, wherein the at least one preset operation comprises at least one of:
the method comprises the following steps of touch click operation, touch sliding operation, pressing operation aiming at preset physical keys, body sensing operation and voice input operation.
5. A memory test method is applied to terminal equipment, and the method comprises the following steps:
receiving memory information from a mobile terminal, wherein the memory information is obtained by detecting similar memories in the mobile terminal and eliminating different types of memory information when the mobile terminal runs a target application program and a test program by adopting a memory management service, the test program is used for simulating at least one preset operation aiming at a running interface of the target application program, and the similar memory information is synchronously transmitted to the test program when the target application program is run, so that the test program determines the memory information corresponding to each stage in the running process of the target application program and simulates user operation according to the memory information corresponding to each stage;
determining the memory occupation ratio corresponding to each preset operation according to the similar memory information;
operating preset software to process the memory information to obtain a broken line image, determining whether memory overflow occurs in each preset operation according to the slope of a broken line in the broken line image, and identifying a normal broken line graph of the memory; wherein, the slope of the broken line represents the memory increased by a single operation;
the terminal equipment receives the memory information, and then screens out corresponding memory information according to the operation time of each preset operation, or screens out corresponding memory information according to the identification information of the memory information corresponding to each preset operation; the identification information is located in the script, a data acquisition mode is set through the script, and each line of data is obtained through the identification information in the script.
6. The method according to claim 5, wherein the operation times of the at least one preset operation are different from each other; determining the memory occupation ratio corresponding to each preset operation according to the memory information comprises the following steps:
screening corresponding partial memory information according to the operation time of each preset operation;
and determining the memory occupation ratio corresponding to each preset operation according to the screened partial memory information.
7. The method according to claim 5, wherein the operation time of the at least one preset operation is the same; determining the memory occupation ratio corresponding to each preset operation according to the memory information comprises the following steps:
inquiring identification information of corresponding memory information according to each preset operation;
and determining the memory occupation ratio corresponding to each preset operation according to the identification information.
8. A mobile terminal, characterized in that the mobile terminal comprises:
the system comprises an operation unit, a test unit and a control unit, wherein the operation unit is used for operating a target application program and a test program, and the test program is used for simulating at least one preset operation aiming at an operation interface of the target application program;
the detection unit is used for detecting the same type of memory information in the mobile terminal by adopting a memory management service and eliminating different types of memory information, wherein the same type of memory information is synchronously transmitted to the test program when the target application program is operated, so that the test program determines the memory information corresponding to each stage in the operation process of the target application program and simulates user operation according to the memory information corresponding to each stage;
the sending unit is used for sending the same kind of memory information to the terminal equipment so that the terminal equipment runs preset software to process the memory information to obtain a broken line image, determining whether memory overflow occurs in each preset operation according to the slope of a broken line in the broken line image, and identifying a normal broken line graph of the memory; wherein, the slope of the broken line represents the memory increased by a single operation;
after receiving the same-class memory information, the terminal device screens out the corresponding memory information according to the operation time of each preset operation, or screens out the corresponding memory information according to the identification information of the memory information corresponding to each preset operation; the identification information is located in the script, a data acquisition mode is set through the script, and each line of data is obtained through the identification information in the script.
9. A terminal device, characterized in that the terminal device comprises:
the mobile terminal comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving memory information from the mobile terminal, the memory information is obtained by detecting similar memories in the mobile terminal and removing different types of memory information when the mobile terminal adopts a memory management service to run a target application program and a test program, the test program is used for simulating at least one preset operation aiming at a running interface of the target application program, the similar memory information is synchronously transmitted to the test program when the target application program is run, so that the test program determines the memory information corresponding to each stage in the running process of the target application program, and simulates user operation according to the memory information corresponding to each stage;
the determining unit is used for determining the memory proportion corresponding to each preset operation according to the same type of memory information and marking a normal line graph of the memory; wherein, the slope of the broken line represents the memory increased by a single operation;
the determining unit is further used for operating preset software to process the memory information so as to obtain a broken line image, and determining whether memory overflow occurs in each preset operation according to the slope of a broken line in the broken line image; the identification information is located in the script, a data acquisition mode is set through the script, and each line of data is obtained through the identification information in the script.
CN201711430215.7A 2017-12-26 2017-12-26 Memory test method and related product Active CN108009095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711430215.7A CN108009095B (en) 2017-12-26 2017-12-26 Memory test method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711430215.7A CN108009095B (en) 2017-12-26 2017-12-26 Memory test method and related product

Publications (2)

Publication Number Publication Date
CN108009095A CN108009095A (en) 2018-05-08
CN108009095B true CN108009095B (en) 2021-02-09

Family

ID=62061241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711430215.7A Active CN108009095B (en) 2017-12-26 2017-12-26 Memory test method and related product

Country Status (1)

Country Link
CN (1) CN108009095B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111760283B (en) * 2020-08-06 2023-08-08 腾讯科技(深圳)有限公司 Skill distribution method and device for virtual object, terminal and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577328A (en) * 2013-11-20 2014-02-12 北京奇虎科技有限公司 Method and device for analyzing performance of application
CN105550101A (en) * 2015-12-02 2016-05-04 北京奇虎科技有限公司 Test method for application program, electronic device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5870126B2 (en) * 2014-01-29 2016-02-24 株式会社Sji Application test system, method and program
CN104317702B (en) * 2014-09-30 2017-08-25 广东欧珀移动通信有限公司 A kind of intelligent mobile terminal internal memory automated testing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577328A (en) * 2013-11-20 2014-02-12 北京奇虎科技有限公司 Method and device for analyzing performance of application
CN105550101A (en) * 2015-12-02 2016-05-04 北京奇虎科技有限公司 Test method for application program, electronic device and system

Also Published As

Publication number Publication date
CN108009095A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
US10554805B2 (en) Information processing method, terminal, and computer-readable storage medium
CN103092604B (en) A kind of application program sorting technique and device
CN106528745B (en) Method and device for recommending resources on mobile terminal and mobile terminal
CN109429102B (en) Electronic device and server for displaying applications
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
WO2015135381A1 (en) Device, system, and method for creating virtual credit card field of the technology
CN104615655A (en) Information recommendation method and device
CN109753425B (en) Popup window processing method and device
CN108037990B (en) Task information processing method and device and server
CN108197976A (en) Reward distribution method, device and server
CN108415657B (en) Message sending method, device, medium and electronic equipment
CN107832142B (en) Resource allocation method and equipment for application program
CN110022399B (en) Message display method and device, user terminal and readable storage medium
CN108415646B (en) Touch function setting method and device
CN106227483B (en) Display control method and mobile terminal
CN108984339B (en) Data recovery method and related product
CN104092827A (en) Method and device for setting terminal
KR20170067888A (en) Card addition method, device, and apparatus and computer storage medium
CN107896256B (en) Information pushing method and device, mobile terminal, server and readable storage medium
CN109062648B (en) Information processing method and device, mobile terminal and storage medium
CN108009095B (en) Memory test method and related product
CN107835305B (en) Information input method and device for terminal equipment with screen
CN104636378A (en) Pushing method and device for application programs
CN103699310B (en) Page reading processing method and device and terminal equipment
CN108762996B (en) Touch detection 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
TR01 Transfer of patent right

Effective date of registration: 20221213

Address after: 201203 1st floor, building 1, Lane 36, Xuelin Road, Pudong New Area Free Trade Zone, Shanghai

Patentee after: SHANGHAI TRANSSION INFORMATION TECHNOLOGY Ltd.

Address before: Room 922 / 926, block a, No.1 Lane 399, shengxia Road, Pudong New Area pilot Free Trade Zone, Shanghai 201203

Patentee before: SHANGHAI SPREADRISE COMMUNICATION TECHNOLOGY Ltd.

TR01 Transfer of patent right