CN107729224B - Terminal performance monitoring method and device - Google Patents

Terminal performance monitoring method and device Download PDF

Info

Publication number
CN107729224B
CN107729224B CN201710953483.0A CN201710953483A CN107729224B CN 107729224 B CN107729224 B CN 107729224B CN 201710953483 A CN201710953483 A CN 201710953483A CN 107729224 B CN107729224 B CN 107729224B
Authority
CN
China
Prior art keywords
active delay
unlocking
locking
information
processor
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
CN201710953483.0A
Other languages
Chinese (zh)
Other versions
CN107729224A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710953483.0A priority Critical patent/CN107729224B/en
Publication of CN107729224A publication Critical patent/CN107729224A/en
Application granted granted Critical
Publication of CN107729224B publication Critical patent/CN107729224B/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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a method and a device for monitoring terminal performance, wherein the method comprises the following steps: tracking active delay in the measurement process, marking a timestamp of the active delay, and recording position information when the active delay occurs; tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking periods; and outputting the time stamp of the active delay, the position information when the active delay occurs, the time stamp of the locking and unlocking, and the position information when the resource is used during the locking and unlocking. The technical scheme can facilitate a developer to locate the position of the problem of unreasonable delay and improve the problem so as to reduce delay and overtime and optimize the performance of the terminal.

Description

Terminal performance monitoring method and device
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for monitoring terminal performance.
Background
With the continuous development of intelligent technology, more and more mobile terminals (e.g., mobile phones, tablets, etc.) enter people's daily work and life. In the process of processing various events, the mobile terminal can have some delay waiting and overtime, so that the user has obvious experience of poor performance; therefore, it is necessary to monitor the performance of the mobile terminal and adjust the program affecting the performance of the mobile terminal when the performance of the mobile terminal is low, so as to improve the performance of the mobile terminal.
Disclosure of Invention
The embodiment of the disclosure provides a terminal performance monitoring method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a method for monitoring terminal performance is provided, which includes:
tracking active delay in the measurement process, marking a timestamp of the active delay, and recording position information when the active delay occurs;
tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking periods;
and outputting the time stamp of the active delay, the position information when the active delay occurs, the time stamp of the locking and unlocking, and the position information when the resource is used during the locking and unlocking.
In one embodiment, the location information includes the process and the code location.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the location information described in this embodiment may include the process to which the user belongs and the location of the code, so that problem location at the code level can be achieved, and the problem location is more accurate.
In one embodiment, the method further comprises:
while tracking the active delay, recording information of a processor processing the active delay;
recording information of a processor processing the resources when the resources used in the serial process are tracked;
outputting information of a processor processing the active delay and information of a processor processing the resource;
wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
In one embodiment, the method further comprises:
recording call stack information and a corresponding timestamp in the measurement process;
and outputting the call stack information and the corresponding timestamp in the measuring process.
According to a second aspect of the embodiments of the present disclosure, a method for monitoring terminal performance is provided, including:
acquiring and counting timestamps of active delay in a measuring process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking of resources used in a serial process of the measuring process and position information of the resources used in the locking and unlocking process, so as to obtain statistical results of the measuring process of the different terminals.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal performance monitoring apparatus, including:
the first tracking module is used for tracking the active delay in the measurement process, marking a timestamp of the active delay and recording position information when the active delay occurs;
the second tracking module is used for tracking locking and unlocking of resources used in the serial process of the measurement process, marking timestamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking process;
and the first output module is used for outputting the time stamp of the active delay, the position information when the active delay occurs, the time stamp of the locking and unlocking and the position information when the resource is used during the locking and unlocking.
In one embodiment, the location information includes the process and the code location.
In one embodiment, the apparatus further comprises:
the first recording module is used for recording information of a processor for processing the active delay when the active delay is tracked;
the second recording module is used for recording information of a processor for processing the resources when the resources used in the serial process are tracked;
a second output module for outputting information of a processor processing the active delay and information of a processor processing the resource;
wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
In one embodiment, the apparatus further comprises:
the third recording module is used for recording the call stack information and the corresponding timestamp in the measurement process;
and the third output module is used for outputting the call stack information and the corresponding timestamp in the measurement process.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a terminal performance monitoring apparatus, including:
the system comprises an acquisition module, a data processing module and a data processing module, wherein the acquisition module is used for acquiring timestamps of active delay in a measurement process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking a resource used in a serial process of the measurement process and position information of using the resource during the locking and unlocking;
and the counting module is used for counting the time stamps of active delay in the measuring process sent by different terminals, the position information when the active delay occurs, the time stamps for locking and unlocking the resources used in the serial process of the measuring process and the position information of the resources used in the locking and unlocking periods to obtain the counting results of the measuring process of the different terminals.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a terminal performance monitoring apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
tracking active delay in the measurement process, marking a timestamp of the active delay, and recording position information when the active delay occurs;
tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking periods;
and outputting the time stamp of the active delay, the position information when the active delay occurs, the time stamp of the locking and unlocking, and the position information when the resource is used during the locking and unlocking.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a terminal performance monitoring apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring and counting timestamps of active delay in a measuring process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking of resources used in a serial process of the measuring process and position information of the resources used in the locking and unlocking process, so as to obtain statistical results of the measuring process of the different terminals.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the above method.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the above method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the embodiment can track the active delay in the measurement process, mark the timestamp of the active delay, and record the position information when the active delay occurs; tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information when the resources are used in the locking and unlocking period; and outputting the active delay time stamp, the position information when the active delay occurs, the locking and unlocking time stamp and the position information when the resource is used during the locking and unlocking periods, so as to determine whether the delay or timeout in the measurement process is reasonable or not according to the marked time stamp, locate the position of the problem according to the recorded position information, improve the position of the problem, reduce the delay and timeout and optimize the performance of the terminal.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a terminal performance monitoring method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a terminal performance monitoring method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a terminal performance monitoring method according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a terminal performance monitoring method according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating a terminal performance monitoring apparatus according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a terminal performance monitoring apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a terminal performance monitoring apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating a terminal performance monitoring apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating a terminal performance monitoring apparatus according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating a terminal performance monitoring apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a terminal performance monitoring method according to an exemplary embodiment, where the terminal performance monitoring method is used in a terminal or the like, as shown in fig. 1, and includes the following steps 101 to 103:
in step 101, active delays in a measurement process are tracked, timestamps of the active delays are marked, and position information when the active delays occur is recorded.
In step 102, the resources used in the serial process of the measurement process are tracked for locking and unlocking, the time stamps for locking and unlocking are marked, and the position information of the resources used during the locking and unlocking process is recorded.
In step 103, the timestamp of the active delay, the location information when the active delay occurs, and the processor information to which the active delay belongs, and the timestamp of the locking and unlocking, and the location information when the resource is used during the locking and unlocking are output.
In this embodiment, a process of the terminal processing any event may be used as a measurement process, for example, the measurement process may be an unlocking process, a process of opening an application, a call process, and so on, and a developer may define, as the measurement process, each process that needs to check the enhanced performance at the terminal, and then the terminal may measure delay or timeout information in the processes. It should be noted that the terminal does not need to check each measurement process all the time, so to avoid wasting terminal resources and saving terminal energy consumption, a measurement switch may be defined on the terminal, and when the measurement switch is turned on, the terminal will start to perform the measurements in steps 101 to 103.
In this embodiment, the process of acquiring the delay or timeout information in the measurement processes by the terminal may be to track the active delay in the measurement processes, where when processing a certain process, the processor actively exits the process according to a program setting for a period of time, such as 5ms, to wait for the resource to be in place or for the hardware configuration, and restarts the process after the period of time elapses, and the period of time for exiting the process may be referred to as the active delay. The terminal can track the active delay in the measurement process, mark the timestamp of the active delay, record the occurrence time and the end time of the active delay and record the position information of the active delay.
In this embodiment, the process of the terminal acquiring the delay or timeout information in the measurement processes may also be tracking locking and unlocking of resources used in a serial process of the measurement processes, where the serial process means that each step performed in the process is serial, and the next step can be started only after the current step is finished, and resources on the terminal are required in each step in the serial process, where the resources are constants on the terminal such as pictures, videos, positions, fonts, and the like; when a resource is used, the terminal can lock the resource, mark the locked timestamp, unlock the resource after the resource is used up, and mark the unlocked timestamp, where locking the terminal can ensure that the resource is intelligently used by the current step in the serial process during the locking period, and certainly, if the resource is used by other processes during the locking period, the resource can be used by the current step after the processes use up the resource. When the serial process runs out of this step, the resource is unlocked. In this way, the terminal can track the locking and unlocking of the used resource, mark the time stamp of the locking and the time stamp of the unlocking, and the position information of the time when the resource is used during the locking and unlocking, namely, the position where the processor uses the resource.
In this embodiment, the terminal tracks the active delay and the serial process in the measurement process, marks a timestamp of the active delay, records position information when the active delay occurs, and marks timestamps of the locking and unlocking, and after recording the position information when the resource is used during the locking and unlocking, the marked and recorded measurement data may be output. Here, the terminal may output the measurement data to the cloud; therefore, the cloud end can obtain the measurement data of the measurement process sent by a plurality of terminals, and the cloud end can count and compare the measurement data of the measurement process of various terminals; the developer can check the result of statistics and comparison of the data by the cloud terminal from the cloud terminal interface, and if the unreasonable delay or timeout in the measurement process of a certain terminal is determined according to the timestamp marked in the measurement process, the position of the unreasonable timeout can be determined according to the position information corresponding to the unreasonable timeout, so that the problem is located, and the improvement is carried out.
The embodiment can track the active delay in the measurement process, mark the timestamp of the active delay, and record the position information when the active delay occurs; tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information when the resources are used in the locking and unlocking period; and outputting the active delay time stamp, the position information when the active delay occurs, the locking and unlocking time stamp and the position information when the resource is used during the locking and unlocking periods, so as to determine whether the delay or timeout in the measurement process is reasonable or not according to the marked time stamp, locate the position of the problem according to the recorded position information, improve the position of the problem, reduce the delay and timeout and optimize the performance of the terminal.
In a possible implementation manner, the location information in the terminal performance monitoring method includes the affiliated process and the location of the code.
In this embodiment, when tracking the active delay in the measurement process, the process and the code position where the active delay occurs may be recorded, so that if the active delay is not reasonable, the developer may determine to find the position where the active delay occurs according to the process and the code position where the active delay occurs when the active delay occurs, find the code at the process, then determine whether the active delay at the code may be reduced according to the standard specification, if so, reduce the duration of the active delay, and the developer may also check whether the position of the active delay may be moved, and so on.
In this embodiment, when tracking locking and unlocking of a resource used in a serial process in a measurement process, a process and a code position where the resource is used during the locking and unlocking may be recorded, so that when the resource use process times out, the process and the code position where the resource is used may be directly located, the code at the process may be found, the reason why the resource is used for time out may be checked, and further improvement may be made, for example, a serial process may be improved, and if it is found that the process that times out may be parallel to other processes by checking time out, the process in the serial process may be improved to be parallel.
The location information described in this embodiment may include the process to which the user belongs and the location of the code, so that problem location at the code level can be achieved, and the problem location is more accurate.
In a possible implementation, the terminal performance monitoring method may further include the following steps a1 to A3.
In step a1, information of the processor processing the active delay is recorded while tracking the active delay.
In step A2, information is recorded about the processor that processed the resource as it was used in the serial process is tracked.
In step a3, information of the processor that processes the active delay and information of the processor that processes the resource are output.
Wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
In this embodiment, when the terminal is based on the resources used in the active delay and serial processes, the terminal may further record information of processors used in the processes, such as the identifier of the processor and the frequency of the processor, and output the information of the processor that processes the active delay and the information of the processor that processes the resources to the cloud server; therefore, after the delay is found to be unreasonable subsequently, a developer can check the information of the processor used at the position where the unreasonable delay occurs through the interface of the cloud server, determine whether the delay is caused by the problem of the processor according to the information of the processor, and adjust the performance of the processor if the delay is the problem of the processor, such as the processor does not exert the maximum performance.
The embodiment can record the information of the processor used in the active delay and the resource used in the serial process, so that whether the reason of unreasonable delay is caused by the processor or not can be judged in the following, and the problem can be determined more accurately by using the information of the processor as an assistant.
In a possible implementation manner, the terminal performance monitoring method may further include the following steps B1 and B2.
In step B1, the call stack information and the corresponding time stamp in the measurement process are recorded.
In step B2, the call stack information and the corresponding timestamp in the measurement process are output.
In this embodiment, the terminal may further obtain call stack information in the measurement process and a timestamp during the call, and output the call stack information in the measurement process and the corresponding timestamp to the cloud server, where the call stack information and the corresponding timestamp are used to indicate at what time in the measurement process that the function code is called; therefore, when discovering that the delay and the timeout are unreasonable in the measurement process, a developer can know which code is called at any time according to the call stack information and the corresponding timestamp, and then quickly trace back to the process and the code when the delay occurs.
It should be noted here that recording the call stack information and the corresponding timestamp wastes terminal resources, and the normal detection time is long, when the developer is familiar with each process in the measurement process, the call stack information and the corresponding timestamp may not be needed, so a switch may be set, and according to the needs of the developer, the switch is turned on when the developer is unfamiliar with each process in the measurement process, so that the terminal obtains the call stack information and the corresponding timestamp in the measurement process, and the switch is turned off when the developer is familiar with each process in the measurement process, and the developer can also quickly trace back the code of the process in which the problem occurs.
The present embodiment may record call stack information and a corresponding timestamp in the measurement process, so that a developer can quickly trace back to a process and a code location where a delay or timeout occurs in the measurement process.
Fig. 2 is a flowchart illustrating a terminal performance monitoring method according to an exemplary embodiment, where as shown in fig. 2, the terminal performance monitoring method is used in a server such as a cloud server, and includes the following steps 201:
in step 201, time stamps of active delays in a measurement process and position information when the active delays occur, which are sent by different terminals, time stamps of locking and unlocking of resources used in a serial process of the measurement process and position information of the resources used during the locking and unlocking are obtained and counted to obtain a statistical result of the measurement process of the different terminals.
In this embodiment, different terminals can track the active delay in the measurement process, mark the timestamp of the active delay, and record the position information when the active delay occurs; tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking periods; and then, outputting a timestamp of active delay in the measurement process, position information when the active delay occurs, timestamps for locking and unlocking resources used in the serial process of the measurement process and position information of the resources used in the locking and unlocking processes to a cloud server. Here, the location information includes the belonging process and the located code location.
In this embodiment, after the cloud server receives the measurement data sent by different terminals, the terminals may be different platforms and use different versions, so that the measurement data of different terminals for the same measurement process are different, and after the cloud server receives the measurement data of different terminals for the same measurement process, the cloud server may perform statistical analysis on the measurement data, for example, the cloud server may perform statistical analysis on the measurement data of different terminals for the same measurement process to generate a comparison graph, where a horizontal axis of the comparison graph is a time axis and a vertical axis thereof is a process position in the measurement process, such as active delay and resource usage, lines corresponding to the measurement processes of different terminals may be generated according to the marked time stamps, and the cloud server may perform preliminary analysis, such as analyzing unreasonable active delay and resource usage duration, and a developer may view the comparison graph through a cloud server interface, unreasonable delays are found, and according to the position information corresponding to the unreasonable delays, the position of the unreasonable delays is determined, the problem is located, and corresponding improvement is carried out.
It should be noted here that the terminal may also record information of a processor that processes the active delay when tracking the active delay; recording information of a processor processing the resources when the resources used in the serial process are tracked; or, call stack information and a corresponding timestamp in the measurement process may also be recorded. The terminal can then send the recorded data to the cloud server, and the cloud server performs data statistics, so that a developer can judge whether the reason why the delay is unreasonable is due to the processor according to the statistics of the data, or the developer can quickly trace back to a process and a code position where the delay or the timeout occurs in the measurement process according to the call stack information.
The embodiment can acquire and count the time stamp of active delay in the measurement process sent by different terminals and the position information when the active delay occurs, the time stamp of locking and unlocking of the resource used in the serial process of the measurement process and the position information of the resource used in the locking and unlocking periods, and the statistical results of the measurement process of different terminals are obtained, so that the comparison results of the measurement process between terminals of different versions and platforms are provided, developers can position the position where unreasonable delay occurs according to the statistical results, and the optimization control of the equipment performance is facilitated.
The implementation is described in detail below by way of several embodiments.
Fig. 3 is a flowchart illustrating a method for monitoring terminal performance according to an exemplary embodiment, where as shown in fig. 3, the method may be implemented by a terminal, a cloud server, and other devices, and includes steps 301 and 304.
In step 301, a terminal tracks an active delay in a measurement process, marks a timestamp of the active delay, and records position information when the active delay occurs; the position information comprises the process and the position of the code.
In step 302, the terminal tracks locking and unlocking of resources used in the serial process of the measurement process, marks timestamps of the locking and unlocking, and records location information of the resources used during the locking and unlocking.
In step 303, the terminal outputs the timestamp of the active delay, the location information when the active delay occurs, the timestamp of the locking and unlocking, and the location information when the resource is used during the locking and unlocking.
In step 304, the cloud server obtains and counts timestamps of active delay in a measurement process and location information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking of resources used in a serial process of the measurement process, and location information of the resources used during the locking and unlocking, so as to obtain statistical results of the measurement process of the different terminals.
Fig. 4 is a flowchart illustrating a method for monitoring terminal performance according to an exemplary embodiment, where as shown in fig. 4, the method may be implemented by a terminal, a cloud server, and other devices, and includes steps 401 and 405.
In step 401, a terminal tracks an active delay in a measurement process, marks a timestamp of the active delay, records position information when the active delay occurs, and records information of a processor processing the active delay; the position information comprises the process and the position of the code.
In step 402, a terminal tracks locking and unlocking of resources used in a serial process of the measurement process, marks timestamps of the locking and unlocking, records location information of the resources used during the locking and unlocking, and records information of a processor processing the resources; wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
In step 403, the terminal records call stack information and a corresponding timestamp in the measurement process.
In step 404, the terminal outputs the timestamp of the active delay, the location information when the active delay occurs, and the timestamps of the locking and unlocking, the location information when the resource is used during the locking and unlocking; outputting information of a processor processing the active delay and information of a processor processing the resource; and outputting the call stack information and the corresponding timestamp in the measuring process.
In step 405, the cloud server obtains and counts timestamps of active delay, position information when the active delay occurs, and information of a processor that processes the active delay in a measurement process, which are sent by different terminals, timestamps of locking and unlocking a resource used in a serial process of the measurement process, position information of the resource used in the locking and unlocking process, information of the processor that processes the resource, call stack information and a corresponding timestamp in the measurement process; and obtaining the statistical results of the measurement processes of the different terminals.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 5 is a block diagram illustrating a terminal performance monitoring apparatus, which may be implemented as part or all of an electronic device through software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 5, the terminal performance monitoring apparatus includes: a first tracking module 501, a second tracking module 502 and a first output module 503; wherein:
a first tracking module 501, configured to track an active delay in a measurement process, mark a timestamp of the active delay, and record position information when the active delay occurs;
a second tracking module 502, configured to track locking and unlocking of a resource used in a serial process of the measurement process, mark a timestamp of the locking and unlocking, and record location information of the resource used during the locking and unlocking;
a first output module 503, configured to output the timestamp of the active delay, the location information when the active delay occurs, the timestamp of the locking and unlocking, and the location information when the resource is used during the locking and unlocking.
As a possible embodiment, the location information in the terminal performance monitoring apparatus disclosed above includes the affiliated process and the location of the code.
As a possible embodiment, fig. 6 is a block diagram illustrating a terminal performance monitoring apparatus according to an exemplary embodiment, and referring to fig. 6, the terminal performance monitoring apparatus disclosed above may be further configured to include a first recording module 504, a second recording module 505, and a second output module 506, wherein:
a first recording module 504, configured to record information of a processor that processes the active delay when tracking the active delay;
a second recording module 505, configured to record information of a processor that processes a resource when the resource used in the serial process is tracked;
a second output module 506 for outputting information of the processor processing the active delay and information of the processor processing the resource;
wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
As a possible embodiment, fig. 7 is a block diagram illustrating a terminal performance monitoring apparatus according to an exemplary embodiment, and referring to fig. 7, the terminal performance monitoring apparatus disclosed above may be further configured to include a third recording module 507 and a third output module 508, wherein:
a third recording module 507, configured to record call stack information and a corresponding timestamp in the measurement process;
a third output module 508, configured to output the call stack information and the corresponding timestamp in the measurement process.
Fig. 8 is a block diagram illustrating a terminal performance monitoring apparatus, which may be implemented as part or all of an electronic device through software, hardware, or a combination of both, according to an example embodiment. As shown in fig. 8, the terminal performance monitoring apparatus includes: an acquisition module 801 and a statistics module 802; wherein:
an obtaining module 801, configured to obtain timestamps of active delay in a measurement process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking a resource used in a serial process of the measurement process, and position information of the resource used during the locking and unlocking;
the statistical module 802 is configured to count timestamps of active delay in a measurement process sent by different terminals and location information when the active delay occurs, as well as timestamps of locking and unlocking of resources used in a serial process of the measurement process and location information of the resources used during the locking and unlocking, to obtain statistical results of the measurement process for the different terminals.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a terminal performance monitoring apparatus adapted for use with a terminal device according to an exemplary embodiment. For example, the apparatus 900 may be a mobile phone, a game console, a computer, a tablet device, a personal digital assistant, and the like.
The apparatus 900 may include one or more of the following components: processing component 901, memory 902, power component 903, multimedia component 904, audio component 905, input/output (I/O) interface 906, sensor component 907, and communications component 908.
The processing component 901 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 901 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 901 may include one or more modules that facilitate interaction between the processing component 901 and other components. For example, the processing component 901 may include a multimedia module to facilitate interaction between the multimedia component 904 and the processing component 901.
The memory 902 is configured to store various types of data to support operations at the apparatus 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 902 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 903 provides power to the various components of the device 900. The power components 903 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 904 includes a screen that provides an output interface between the device 900 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 904 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 905 is configured to output and/or input audio signals. For example, audio component 905 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 902 or transmitted via the communication component 908. In some embodiments, audio component 905 also includes a speaker for outputting audio signals.
The I/O interface 906 provides an interface between the processing component 901 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 907 includes one or more sensors for providing various aspects of status assessment for device 900. For example, sensor assembly 907 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. Sensor assembly 907 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 907 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 907 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 908 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 908 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 908 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 902 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present embodiment provides a computer readable storage medium, the instructions in which when executed by the processor of the apparatus 900 implement the steps of:
tracking active delay in the measurement process, marking a timestamp of the active delay, and recording position information when the active delay occurs;
tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking periods;
and outputting the time stamp of the active delay, the position information when the active delay occurs, the time stamp of the locking and unlocking, and the position information when the resource is used during the locking and unlocking.
The instructions in the storage medium when executed by the processor may further implement the steps of:
the position information comprises the process and the position of the code.
The instructions in the storage medium when executed by the processor may further implement the steps of:
the method further comprises the following steps:
while tracking the active delay, recording information of a processor processing the active delay;
recording information of a processor processing the resources when the resources used in the serial process are tracked;
outputting information of a processor processing the active delay and information of a processor processing the resource;
wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
The instructions in the storage medium when executed by the processor may further implement the steps of:
the method further comprises the following steps:
recording call stack information and a corresponding timestamp in the measurement process;
and outputting the call stack information and the corresponding timestamp in the measuring process.
The present disclosure also provides a terminal performance monitoring device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
tracking active delay in the measurement process, marking a timestamp of the active delay, and recording position information when the active delay occurs;
tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking periods;
and outputting the time stamp of the active delay, the position information when the active delay occurs, the time stamp of the locking and unlocking, and the position information when the resource is used during the locking and unlocking.
The processor may be further configured to:
the position information comprises the process and the position of the code.
The processor may be further configured to:
the method further comprises the following steps:
while tracking the active delay, recording information of a processor processing the active delay;
recording information of a processor processing the resources when the resources used in the serial process are tracked;
outputting information of a processor processing the active delay and information of a processor processing the resource;
wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
The processor may be further configured to:
the method further comprises the following steps:
recording call stack information and a corresponding timestamp in the measurement process;
and outputting the call stack information and the corresponding timestamp in the measuring process.
Fig. 10 is a block diagram illustrating monitoring of terminal performance according to an example embodiment. For example, the apparatus 1000 may be provided as a cloud server. The apparatus 1000 includes a processing component 1011 that further includes one or more processors, and memory resources, represented by memory 1012, for storing instructions, such as application programs, that are executable by the processing component 1011. The application programs stored in memory 1012 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1011 is configured to execute instructions to perform the above-described method.
The device 1000 may also include a power supply component 1013 configured to perform power management for the device 1000, a wired or wireless network interface 1014 configured to connect the device 1000 to a network, and an input output (I/O) interface 1015. The apparatus 1000 may operate based on an operating system, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like, stored in the memory 1012.
The present embodiment provides a computer readable storage medium, the instructions in which when executed by the processor of the apparatus 1000 implement the steps of:
acquiring and counting timestamps of active delay in a measuring process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking of resources used in a serial process of the measuring process and position information of the resources used in the locking and unlocking process, so as to obtain statistical results of the measuring process of the different terminals.
The present disclosure also provides a terminal performance monitoring device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring and counting timestamps of active delay in a measuring process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking of resources used in a serial process of the measuring process and position information of the resources used in the locking and unlocking process, so as to obtain statistical results of the measuring process of the different terminals.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for monitoring terminal performance is characterized by comprising the following steps:
tracking active delay in a measuring process, marking a timestamp of the active delay, and recording position information when the active delay occurs, wherein the active delay comprises a time period for actively quitting a process according to program setting during the process of processing the process;
tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking periods;
outputting the time stamp of the active delay, the position information when the active delay occurs, the time stamps of locking and unlocking, and the position information when the resource is used during the locking and unlocking period, so as to carry out statistics and comparison, and determining whether unreasonable delay or overtime exists in the measurement process of the terminal according to the time stamp marked in the measurement process;
the position information comprises the belonged process and the code position;
the method further comprises the following steps:
recording call stack information and a corresponding timestamp in the measurement process;
and outputting the call stack information and the corresponding timestamp in the measuring process.
2. The method of claim 1, further comprising:
while tracking the active delay, recording information of a processor processing the active delay;
recording information of a processor processing the resources when the resources used in the serial process are tracked;
outputting information of a processor processing the active delay and information of a processor processing the resource;
wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
3. A method for monitoring terminal performance is characterized by comprising the following steps:
acquiring and counting timestamps of active delay in a measuring process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking of resources used in a serial process of the measuring process, position information of the resources used in the locking and unlocking periods, call stack information and corresponding timestamps in the measuring process to obtain statistical results of the measuring process of the different terminals, and determining whether unreasonable delay or overtime exists in the measuring process of the terminals according to the statistical results;
the active delay comprises a time period for actively quitting the process according to program setting when the process is processed;
the position information comprises the process and the position of the code.
4. A terminal performance monitoring apparatus, comprising:
the first tracking module is used for tracking the active delay in the measurement process, marking a timestamp of the active delay and recording position information when the active delay occurs, wherein the active delay comprises a time period for actively quitting the process according to program setting during the process of processing;
the second tracking module is used for tracking locking and unlocking of resources used in the serial process of the measurement process, marking timestamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking process;
a first output module, configured to output the timestamp of the active delay, the location information when the active delay occurs, the timestamp of the locking and unlocking, and the location information when the resource is used during the locking and unlocking, so as to perform statistics and comparison, and determine whether there is an unreasonable delay or timeout in the measurement process of the terminal according to the timestamp marked in the measurement process;
the position information comprises the belonged process and the code position;
the device further comprises:
the third recording module is used for recording the call stack information and the corresponding timestamp in the measurement process;
and the third output module is used for outputting the call stack information and the corresponding timestamp in the measurement process.
5. The apparatus of claim 4, further comprising:
the first recording module is used for recording information of a processor for processing the active delay when the active delay is tracked;
the second recording module is used for recording information of a processor for processing the resources when the resources used in the serial process are tracked;
a second output module for outputting information of a processor processing the active delay and information of a processor processing the resource;
wherein the information of the processor comprises an identification of the processor and a frequency of the processor.
6. A terminal performance monitoring apparatus, comprising:
the system comprises an acquisition module, a call stack module and a processing module, wherein the acquisition module is used for acquiring timestamps of active delay in a measurement process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking a resource used in a serial process of the measurement process, position information of using the resource during the locking and unlocking, call stack information in the measurement process and corresponding timestamps;
a counting module, configured to count timestamps of active delay and position information of the active delay in a measurement process sent by different terminals, timestamps of locking and unlocking a resource used in a serial process of the measurement process, position information of the resource used during the locking and unlocking, call stack information and corresponding timestamps in the measurement process, obtain a statistical result of the measurement process for the different terminals, and determine whether the measurement process of the terminal has an unreasonable delay or timeout according to the statistical result;
the active delay comprises a time period for actively quitting the process according to program setting when the process is processed;
the position information comprises the process and the position of the code.
7. A terminal performance monitoring apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
tracking active delay in a measuring process, marking a timestamp of the active delay, and recording position information when the active delay occurs, wherein the active delay comprises a time period for actively quitting a process according to program setting during the process of processing the process;
tracking locking and unlocking of resources used in the serial process of the measurement process, marking time stamps of the locking and unlocking, and recording position information of the resources used in the locking and unlocking periods;
outputting the time stamp of the active delay, the position information when the active delay occurs, the time stamps of locking and unlocking, and the position information when the resource is used during the locking and unlocking period, so as to carry out statistics and comparison, and determining whether unreasonable delay or overtime exists in the measurement process of the terminal according to the time stamp marked in the measurement process;
the position information comprises the belonged process and the code position;
the method further comprises the following steps:
recording call stack information and a corresponding timestamp in the measurement process;
and outputting the call stack information and the corresponding timestamp in the measuring process.
8. A terminal performance monitoring apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring and counting timestamps of active delay in a measuring process and position information when the active delay occurs, which are sent by different terminals, timestamps of locking and unlocking of resources used in a serial process of the measuring process, position information of the resources used in the locking and unlocking periods, call stack information and corresponding timestamps in the measuring process to obtain statistical results of the measuring process of the different terminals, and determining whether unreasonable delay or overtime exists in the measuring process of the terminals according to the statistical results;
the active delay comprises a time period for actively quitting the process according to program setting when the process is processed;
the position information comprises the process and the position of the code.
9. A computer readable storage medium storing computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the method of claim 1 or 2.
10. A computer readable storage medium storing computer instructions, wherein the computer instructions, when executed by a processor, implement the steps of the method of claim 3.
CN201710953483.0A 2017-10-13 2017-10-13 Terminal performance monitoring method and device Active CN107729224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710953483.0A CN107729224B (en) 2017-10-13 2017-10-13 Terminal performance monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710953483.0A CN107729224B (en) 2017-10-13 2017-10-13 Terminal performance monitoring method and device

Publications (2)

Publication Number Publication Date
CN107729224A CN107729224A (en) 2018-02-23
CN107729224B true CN107729224B (en) 2021-10-08

Family

ID=61211180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710953483.0A Active CN107729224B (en) 2017-10-13 2017-10-13 Terminal performance monitoring method and device

Country Status (1)

Country Link
CN (1) CN107729224B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826117A (en) * 2014-01-17 2014-05-28 浙江大学 Method of measuring end-to-end delay of mobile phone video communication application
CN105653407A (en) * 2015-12-08 2016-06-08 网易(杭州)网络有限公司 Terminal, jam measuring method, device, game jam measuring method and apparatus
CN106547640A (en) * 2016-11-23 2017-03-29 深圳市金立通信设备有限公司 A kind of method and terminal of backstage cleaning
CN106980554A (en) * 2017-03-08 2017-07-25 广东欧珀移动通信有限公司 A kind of process handling method and device
CN107066324A (en) * 2017-03-08 2017-08-18 广东欧珀移动通信有限公司 A kind of control method and equipment of finger prints processing resource
CN107193678A (en) * 2017-04-28 2017-09-22 北京小米移动软件有限公司 Interim card method for determining reason, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826117A (en) * 2014-01-17 2014-05-28 浙江大学 Method of measuring end-to-end delay of mobile phone video communication application
CN105653407A (en) * 2015-12-08 2016-06-08 网易(杭州)网络有限公司 Terminal, jam measuring method, device, game jam measuring method and apparatus
CN106547640A (en) * 2016-11-23 2017-03-29 深圳市金立通信设备有限公司 A kind of method and terminal of backstage cleaning
CN106980554A (en) * 2017-03-08 2017-07-25 广东欧珀移动通信有限公司 A kind of process handling method and device
CN107066324A (en) * 2017-03-08 2017-08-18 广东欧珀移动通信有限公司 A kind of control method and equipment of finger prints processing resource
CN107193678A (en) * 2017-04-28 2017-09-22 北京小米移动软件有限公司 Interim card method for determining reason, device and storage medium

Also Published As

Publication number Publication date
CN107729224A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
EP3611963A1 (en) Method and device for switching cells and user equipment
CN106766022B (en) Sensor control method and device
EP3113131A1 (en) Method and device for providing object finding information
CN109359056B (en) Application program testing method and device
CN107193678B (en) Method and device for determining cause of stuck and storage medium
CN104866409A (en) Method and apparatus for monitoring memory leakage
CN111614990B (en) Method and device for acquiring loading duration and electronic equipment
CN106253996B (en) Sensitivity attenuation test method and device
CN103914337A (en) Service calling method, device and terminal
CN108427618B (en) Method and device for determining stuck state and computer readable storage medium
CN107027157A (en) Location updating method and equipment
CN109298995B (en) Performance test method and device, electronic equipment and storage medium
US20200404527A1 (en) Information recording method and information recording apparatus
EP3160112A1 (en) Reminding method and device
CN107158685B (en) Exercise verification method and apparatus
US20210067984A1 (en) Method and apparatus for performing minimization of drive test
CN105786561B (en) Method and device for calling process
CN112256563A (en) Android application stability testing method and device, electronic equipment and storage medium
CN105657676B (en) Information reminding method and device
CN107729224B (en) Terminal performance monitoring method and device
CN108228433B (en) Electronic equipment, and method and device for counting visit time and stay time of mobile application
CN107704489B (en) Processing method and device for read-write timeout and computer readable storage medium
CN107422911B (en) Pressure value detection method and device and computer readable storage medium
CN106791057B (en) Alarm clock control method and device
CN106227402B (en) Information prompting 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