WO2014146612A1 - Procédé et dispositif d'acquisition de temps consommé par un élément de démarrage - Google Patents

Procédé et dispositif d'acquisition de temps consommé par un élément de démarrage Download PDF

Info

Publication number
WO2014146612A1
WO2014146612A1 PCT/CN2014/073922 CN2014073922W WO2014146612A1 WO 2014146612 A1 WO2014146612 A1 WO 2014146612A1 CN 2014073922 W CN2014073922 W CN 2014073922W WO 2014146612 A1 WO2014146612 A1 WO 2014146612A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
consuming
startup
startup item
consumption
Prior art date
Application number
PCT/CN2014/073922
Other languages
English (en)
Chinese (zh)
Inventor
符气康
聂科峰
魏雪
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2014146612A1 publication Critical patent/WO2014146612A1/fr

Links

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/3409Recording 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 for performance assessment
    • G06F11/3419Recording 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 for performance assessment by assessing time
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software

Definitions

  • the present invention relates to the field of electronic communication technologies, and in particular, to a method and an apparatus for acquiring a startup item in a time-consuming manner.
  • a startup item refers to an add-on that a device (such as a computer) runs after being triggered by a non-user operation after being powered on, including but not limited to the following categories: a service item, a scheduled task to be started up, a file in a user startup folder, The keys to be run at boot time are registered in the registry.
  • the startup items referred to in this article all correspond to one process.
  • the startup item takes time, that is, the process corresponding to the startup item takes time.
  • the operating system loads a lot of startup items when it is powered on, and these startup items slow down the system and increase the user's boot time. Users only rely on the senses, it is difficult to determine which startup item makes the system boot and run slower. If the time of the process corresponding to each startup item is obtained in the booting phase, it is possible to determine the startup item that makes the system boot slower, and selectively disable or delete it to achieve the effect of increasing the booting speed.
  • Embodiments of the present invention provide a method for acquiring a startup item in a time-consuming manner, including:
  • the first process is corresponding to the startup item
  • the second process is a child process of the first process
  • the embodiment of the invention further provides a device for acquiring time-consuming time, which comprises:
  • An obtaining unit configured to acquire a time-consuming process of the first process and a time-consuming process of the second process, where the first process is a process corresponding to the startup item, and the second process is a child process of the first process;
  • a calculating unit configured to calculate a time consuming time of the first process and the second process, and use the sum as the startup item
  • control unit is configured to disable the startup item when the startup item takes longer than a preset threshold.
  • Embodiments of the present invention provide a non-transitory storage medium on which computer executable instructions are stored. When the executable instructions are run in a computer, the following steps are performed:
  • the first process is a process corresponding to the startup item, and the second process is a child process of the first process;
  • FIG. 1 is a schematic flowchart of a method for acquiring a time-consuming acquisition item according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for acquiring a time-consuming acquisition item according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a method for acquiring a time-consuming acquisition item according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for acquiring a time-consuming acquisition item according to an embodiment of the present invention
  • FIG. 1 is a schematic flowchart of a method for acquiring a time-consuming acquisition item according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for acquiring a time-consuming acquisition item according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a method for acquiring a time-consuming acquisition item according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for acquiring a time-consuming
  • FIG. 6 is a schematic structural diagram of another time-consuming acquisition device for a startup item according to an embodiment of the present invention
  • FIG. 7 is another schematic diagram of an apparatus for time-consuming acquisition of an activation item according to an embodiment of the present invention
  • FIG. 8 is a schematic flowchart of another method for acquiring a time-consuming acquisition item according to an embodiment of the present invention
  • FIG. 9 is another startup item according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of another time-consuming acquisition device for a startup item according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the present invention will be further described in detail with reference to the accompanying drawings, in which FIG. An embodiment. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • An embodiment of the present invention provides a method for acquiring a startup item in a time-consuming manner. As shown in FIG. 1, the method includes steps 101 to 103.
  • step 101 acquiring the first process time-consuming and the second process time-consuming, the first process is a process corresponding to the startup item, and the second process is a child process of the first process;
  • step 102 the time consuming of the first process and the time consuming by the second process is taken as the start item.
  • step 103 when the startup item takes longer than the preset threshold, the startup item is disabled.
  • the process corresponding to the startup item ends, the process still consumes system resources and affects system startup.
  • the process by calculating the elapsed time of the process corresponding to the startup item and the time consumption of the sub-process of the process, it is possible to more accurately determine the elapsed time of the startup item during the system startup process.
  • the startup item takes longer than the preset threshold, the startup item is disabled, that is, the startup item does not run with the system startup during system startup.
  • the embodiment of the present invention provides another method for acquiring a startup item that takes time, and the method can be executed by a computer processor. As shown in FIG. 2, the method includes steps 201 to 203.
  • step 201 the first process and the second process are determined, the first process is a process corresponding to the startup item, and the second process is a child process of the first process.
  • the computer processor can monitor each process, obtain a parent-child relationship between the processes, and determine a second process of the first process according to the parent-child relationship between the processes. process.
  • a process can have one or more child processes or no child processes.
  • the child process if the child process further has a child process, it is collectively referred to as a second process.
  • step 202 the first process is time-consuming and the second process is time-consuming.
  • the time consumption of the first process is calculated as an example. Due to the I/O of the first process
  • the I/O time consumption of the first process is also included in the time consuming of the first process.
  • the time consumption of the first process is the first process
  • the CPU consumes time and the I/O of the first process.
  • the I/O time consumption of the first process can be calculated by the following formula:
  • the first process I/O can also be registered by the kernel mode program ETW (Event Tracing for Windows, ETW provides a tracking record mechanism for event objects created by user layer applications and kernel layer drivers) The method of the event is obtained.
  • ETW Event Tracing for Windows, ETW provides a tracking record mechanism for event objects created by user layer applications and kernel layer drivers
  • the second process time-consuming acquisition method is the same as the first process time-consuming acquisition method, and will not be described herein.
  • step 203 the sum of the time consumption of the first process and the time consumption of the second process is taken as the start item.
  • the second process is a child process of the first process, and it can be understood that the second process is created by the first process.
  • QQ.exe is created by QQProtect.exe
  • QQExtemal.exe is created by QQ.exe
  • QQ.exe and QQExternal.exe are the second process. If the time spent by QQProtect.exe, QQ.exe, and QQExtemal.exe is Tl, ⁇ 2, ⁇ 3, the startup time corresponding to Bay's QQProtect.exe is Tl+T2+T3.
  • the time consumption of the startup item includes the time consumption of the corresponding process and the time consumption of the sub-process of the process, and the startup item can be more accurately determined during the system startup process. Time-consuming in the middle.
  • the embodiment of the present invention provides another method for acquiring time-consuming acquisition items. As shown in FIG. 3, the method includes steps 301 to 307.
  • step 301 the operating system is started, and each startup item is monitored.
  • the monitoring execution entity In the prior art, it is necessary to run the monitoring execution entity before the startup item is started, and the monitoring execution entity itself may consume the system resources very high. Therefore, the operation of the monitoring execution body itself may affect the system startup.
  • the monitoring execution body may be run during startup of the startup item, and the monitoring execution body may be a computer processor.
  • step 302 when a clock interrupt is reached, information about all current processes in the system is obtained.
  • one clock cycle may be preset, and the monitoring execution entity may periodically monitor the startup items in the system according to the clock cycle.
  • the clock cycle can be set according to the actual situation, which is not limited by the embodiment of the present invention.
  • the process information may include a handle of the process, an ID of the process, and the like.
  • step 303 information about the point in time at which lssass.exe appears and all processes of the current system are obtained and recorded.
  • step 304 the time point at which the user login is completed and the information of all processes of the current system are acquired and recorded.
  • the difference between the time points recorded in step 304 and step 303 can be considered as the waiting time of the user in the process of logging in to the system. Since system resources are not consumed at this stage, the time period needs to be eliminated when calculating the system startup time. That is to say, the time from the power-on of the device to the start of the system startup minus the waiting time of the user during login to the system is the startup time of the system.
  • the difference is negligible. That is, in steps 303 and 304 It is only necessary to perform the acquisition of the information of all the processes in the system. In this embodiment, the information of all the processes in the system obtained in step 304 is taken as the standard, and the subsequent calculation is performed.
  • step 304 through the information of all the processes in the system obtained in step 304, the parent-child relationship between the processes in the system and the I/O throughput of each process can be obtained.
  • step 305 it is determined whether the booting is completed; if the booting is completed within the clock cycle, then step 306 is performed; if the booting is not completed within the clocking cycle, the process returns to step 302.
  • step 306 a startup item time consuming calculation is performed.
  • the time consumption of the startup item S can be calculated according to the following formula:
  • Ts - T P + ⁇ p-childd) ( 2 ) indicates the time taken by the start item S
  • 7> indicates the time consuming of the process
  • 7— ⁇ (,) indicates the time consuming of the i-th child process of the process ⁇ .
  • the I/O time of the process can be obtained.
  • the time from the power-on of the device to the completion of the system startup minus the waiting time of the user during the login process that is, the startup time r fl / / of the system, the CPU consumption of each process ⁇ ⁇ appetizer and
  • the throughput GW can be obtained according to the information of all processes in the system recorded in step 304; the system idle time T free can be obtained from the process named System idle Process in the system task manager.
  • the CPU time of each process ⁇ ⁇ admir and the system idle time T / FT are in the number of cores of the computer CPU of the obtained value.
  • the time-consuming calculation of all the child processes of the process P can be performed as described above. It should be noted that the time-consuming calculation of the sub-process may be performed first, or the time-consuming calculation of each process may be performed at the same time, which is not limited by the embodiment of the present invention.
  • step 307 it is determined whether the startup item takes longer than a preset threshold, and when the startup item takes longer than a preset threshold, the startup item is disabled.
  • the time consumption of each startup item in the system startup process can be accurately calculated, and the user can decide which startup items are disabled according to the time consumption of each startup item acquired, so that they are not operated during the startup phase, thereby improving the user.
  • the embodiment of the present invention further provides a startup time-consuming acquisition device. As shown in FIG. 4, the device includes: an acquisition unit 401, a calculation unit 402, and a control unit 403.
  • the obtaining unit 401 is configured to acquire the time-consuming process of the first process and the time-consuming process of the second process, where the first process is a process corresponding to the startup item, and the second process is a child process of the first process.
  • the control unit 403 is configured to disable the startup item when the startup item takes longer than the preset threshold.
  • the embodiment of the present invention further provides another startup time-consuming acquisition device, which is compared with the corresponding embodiment of FIG. 4, wherein the device further includes a determining unit 404, as shown in FIG. 5.
  • the determining unit 404 is configured to determine a first process and a second process, where the first process is a process corresponding to the startup item, and the second process is a child process of the first process.
  • the computer processor can monitor each process, obtain a parent-child relationship between the processes, and determine a second process of the first process according to the parent-child relationship between the processes. process.
  • a process can have one or more child processes or no child processes.
  • the child process if the child process further has a child process, it is collectively referred to as a second process.
  • the calculating unit 402 may include a CPU time consuming calculation subunit 4021 and an I/O time consuming calculation subunit 4022, as shown in FIG. 6.
  • the CPU time-consuming calculation sub-unit 4021 is configured to calculate a CPU time consumption of the first process and a CPU time consumption of the second process.
  • the I/O time consumption calculation sub-unit 4022 is configured to calculate an I/O time consumption of the first process and an I/O consumption time of the second process.
  • the process corresponding to the startup item ends, the process still consumes system resources and affects system startup.
  • the process by calculating the elapsed time of the process corresponding to the startup item and the time consumption of the sub-process of the process, it is possible to more accurately determine the elapsed time of the startup item during the system startup process.
  • the I/O time consumption of the process is taken into consideration during the calculation process, thereby further improving the accuracy of the startup item.
  • the inventor found that, because a process is finished in the booting phase, it does not mean that the process stops running. In the process of loading other processes, the process is still running subsequent logic. , still consume system resources, and even pull up other processes, which will affect the system boot. It is considered that the improvement process is completed in the booting phase when the loading is completed by only one process.
  • This view of a process itself is loaded in isolation to evaluate the impact on the operation of the entire system, and the obtained process is opened. The machine will be less time consuming. Therefore, the foregoing solution cannot accurately measure the time consuming process.
  • a method for acquiring a startup item in a time-consuming manner is provided. As shown in FIG. 7, the method includes:
  • the 701 Obtain a parent-child relationship between the processes in the monitoring period, and determine the first process and the second process; the first process is a process corresponding to the startup item to be calculated, and the second process is based on the foregoing process items.
  • the child process of the first process described above determined by the parent-child relationship;
  • sub-process of a process may be empty or one or more.
  • the sub-process may also have a sub-process, which is collectively referred to as a second process. The number of specific sub-processes is not described in the embodiment of the present invention.
  • the calculation process takes time, and the calculation process takes time: calculating the time consumption of the first process and the time consumption of the second process;
  • steps 701 and 702 do not have a logical sequence.
  • 701 is performed to obtain the parent-child relationship of each process, and then execution 702 obtains the time-consuming of the first process and the time-consuming process of the second process. It is also possible to execute 702 to obtain the time consumption of all processes, and then execute 701 to obtain the parent-child relationship between the processes.
  • the inventor also finds that: the I/O (Input/Output) of the process is the resource occupied by the process during the startup process, which will affect the process startup. Therefore, I/O time should also be part of the time-consuming process.
  • the calculation process time-consuming includes: calculating the CPU time consumption of the process and the input/output time consumption of the process, and taking the sum of the CPU time consumption of the process and the input/output time of the process as the process consumption. Time.
  • the embodiment of the present invention also provides a specific how to calculate the input/output time consumption of the process, as follows:
  • the above monitoring time period is the time period of the boot time
  • the input/output time consumption of the above calculation process includes: calculation The difference between the system boot time and the total CPU time of all processes and the system idle time, calculate the ratio of the set input/output time to the system boot time and the input/output throughput of the process and the input of all processes/
  • the quotient of the output throughput is calculated by calculating the product of the difference and the above quotient as the input/output time of the above process.
  • the method of obtaining the time I/O of the process can also register the event of the ETW (Event Tracing for Windows, ETW provides a tracking and recording mechanism for the event object created by the user layer application and the kernel layer driver) through the kernel mode program. , capture the I/O time of each process, so you can also fine Determine the I/O time.
  • ETW Event Tracing for Windows, ETW provides a tracking and recording mechanism for the event object created by the user layer application and the kernel layer driver
  • the process may have a waiting situation, the situation is not a resource consumed in the system startup process, and therefore may be excluded, further improving the accuracy of the process time-consuming calculation, as follows: the above system startup time for calculation And the system idle time does not include the CPU time spent in the process waiting process, and the input/output throughput of all processes does not include the input/output time spent in the waiting process.
  • the ratio of the above-mentioned set input/output time to the total time may be a face value, which is set in advance, and can be directly used when calculating, as follows: The value of the above-mentioned set input/output time as a percentage of the total time The domain is (0, 1.0).
  • the inventor also finds in the process of implementing the embodiments of the present invention:
  • the monitoring execution entity since the monitoring execution entity needs to run before the monitored process, the monitoring execution entity itself may consume system resources. Therefore, the timing of the implementation of the program is too high.
  • the embodiment of the present invention further provides the following solutions: Preferably, at least one of the parent-child relationship between the processes in the monitoring period, the CPU consumption of the process, and the input/output throughput of the process is included in the foregoing monitoring period. :
  • the process of performing monitoring by the scheme of the embodiment can be performed without having to run before the monitored process, so that the requirement for execution timing can be reduced.
  • the time consuming of the first process and the time consuming of the second process are taken as the time of the startup item to be calculated.
  • the child process is created by the parent process (that is, the second process is created by the first process), one parent process may have multiple child processes, and the child process may have its own child process, in the foregoing embodiment.
  • the child process of the parent process and the child process of the child process are collectively referred to as the second process.
  • QQ.exe is created by QQProtect.exe
  • QQExternal.exe is by QQ.exe Created, if QQProtect.exe, QQ.exe, QQExternal.exe three processes themselves are time-consuming Tl, ⁇ 2, ⁇ 3 then:
  • the time spent on QQExternal.exe is ⁇ 3, the time consumption of QQ.exe is T2+T3, and the time consumption of QQProtect.exe is Tl+T2+T3.
  • the operation of the startup process can accurately obtain the time consumption of the startup item in the system during the startup phase. If the information is displayed to the user, the user can disable the startup items to prevent them from running during the startup phase, thereby increasing the startup time of the user system and thereby increasing the operating speed of the entire system.
  • indicating that the startup item takes time
  • indicating that the process is time consuming that is, the time taken by the process corresponding to the startup item
  • indicating that the child process takes time indicates that the process CPU is time consuming.
  • CNT i'() process I/O throughput which indicates the system boot time
  • c indicates the ratio of the set ⁇ / ⁇ time to the running time, and the CPU idle time in the T system.
  • 801 Determine whether the clock is interrupted. If yes, enter 802, otherwise enter 801;
  • a time interval t for controlling the interrupt needs to be preset. After the monitoring software is started, an interrupt is executed every other time interval t, t can be any time interval, and the experience value can be set to 1 second.
  • 803 Determine whether there is a new process (that is, a process that is not recorded in the memory by the monitoring software) is created; if yes, enter 804, if not, enter 808;
  • the handle of the newly created process (Handle), the process ID (IDentity, identifier) and the like are stored in the memory, and the process ID may be a PID (Process ID, process ID number);
  • the saved information may include: PID, CPU usage, I/O read/write, etc.
  • the saved location may be a memory or a file, which is not limited in this embodiment.
  • the calculation method is as follows.
  • the two processes of 805 to 806 and 807 to 806 save two times of information in the two processes, thereby obtaining the change of CPU time and I/O throughput between the two times.
  • the difference between the two can be used to obtain the difference, which is the user's consumption in the login waiting interface (CPU time and I/O throughput consumption), which is not counted in the process's consumption during the boot process.
  • Process I/O time (system boot time - total CPU time of all processes - system idle time) ⁇ set I/O time to total time ratio X process I/O throughput I I/O throughput for all processes; where C is a face value with a range of (0, 1.0).
  • Process time consumption CPU time consumed during process running + Process running process I/O time consumed.
  • All the child processes of the process can be obtained through the handle information and the API of the corresponding system.
  • the time-consuming time of the child process can be obtained by referring to the time-consuming calculation method of the process in the foregoing solution. In this way, we get the time of a startup item in the boot phase through equation (6), assuming that there are i child processes.
  • An embodiment of the present invention further provides a device for acquiring time-consuming time, as shown in FIG. 9, which includes:
  • the relationship obtaining unit 901 is configured to acquire a parent-child relationship between processes in the monitoring time period; it can be understood that the child process of one process may be empty or one or more, and the specific number of the child processes is the present invention.
  • the embodiment is not limited. This embodiment will give an example of how the parent-child relationship between processes is obtained in the following description.
  • the process determining unit 902 is configured to determine the first process and the second process.
  • the first process is a process corresponding to the startup item to be calculated, and the second process is a parent and child between the process items acquired by the relationship acquiring unit 901. The child process of the first process described above determined by the relationship;
  • the time-consuming calculation unit 903 is configured to calculate a time-consuming process, where the calculating process time-consuming includes: calculating a time consumption of the first process and a time consumption of the second process; and consuming the time of the first process and the consumption of the second process The sum of time is taken as the time of the startup item to be calculated.
  • the inventor also finds that: the I/O (Input/Output) of the process is the resource occupied by the process during the startup process, which will affect the process startup. Cause Therefore, the I/O time should also be part of the time-consuming process.
  • the time-consuming computing unit 303 is specifically used for calculating the CPU time consumption of the process and the input/output time consumption of the process, and the sum of the CPU time consumption of the process and the input/output time of the process. Time-consuming as a process.
  • the embodiment of the present invention further provides a scheme for calculating the input/output time consumption of the process, as follows:
  • the foregoing monitoring time period is a time period of the booting time; the time consuming calculating unit 303 is specifically used for the computing system.
  • the difference between the boot time and the total CPU time of all processes and the system idle time calculate the ratio of the set input/output time to the system boot time and the input/output throughput of the process and the input/output of all processes.
  • the quotient of the throughput calculates the product of the above difference and the above quotient as the input/output time of the above process.
  • the time-consuming computing unit 903 specifically used for calculating the system boot time and the system idle time, does not include The CPU waits while the process is waiting.
  • the input/output throughput of all processes does not include the input/output time spent in the wait process.
  • the ratio of the above-mentioned set input/output time to the total time may be an empirical value, which is set in advance, and may be directly used in the calculation, as follows:
  • the above-mentioned time-consuming calculation unit 903 is specifically used for calculating the above-mentioned settings.
  • the range of the ratio of the specified input/output time to the total time is (0, 1.0).
  • the foregoing apparatus further includes:
  • the information obtaining unit 1001 is configured to acquire at least one of a parent-child relationship between processes in the monitoring period, a CPU consumption of the process, and an input/output throughput of the process, and the obtaining manner is: The way to get all the current processes, and save the handle information of the new process compared with the previous interrupt; read the application programming interface corresponding to the above handle information.
  • the process of performing monitoring by the scheme of the embodiment can be performed without having to run before the monitored process, so that the requirement for execution timing can be reduced.
  • the embodiment of the invention further provides a terminal, which may be a mobile phone, a computer, a tablet computer, a personal digital assistant (PDA), a point of sale (POS), an in-vehicle terminal, and the like.
  • the terminal may include: A radio frequency (RF) circuit 510, a memory 520, an input unit 530, a display unit 540, a sensor 550, an audio circuit 560, a communication module 570, a processor 580, and a power supply 590.
  • the terminal may be a mobile phone, a computer, a tablet, a Personal Digital Assistant (PDA), a Point of Sales (POS), an in-vehicle terminal, or the like.
  • PDA Personal Digital Assistant
  • POS Point of Sales
  • the RF circuit 510 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving downlink information of the base station, and processing it to the processor 580; in addition, transmitting the designed uplink data to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the RF circuit 50 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), and code division multiple access ( Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 520 can be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the terminals by running software programs and modules stored in the memory 520.
  • the memory 520 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the mobile phone (such as audio data, phone book, etc.).
  • memory 520 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state memory device.
  • the input unit 530 can be configured to receive input numeric or character information, and to generate key signal inputs related to user settings and function control of the terminal 500.
  • the input unit 530 can include a touch panel 531 and other input devices 532.
  • the touch panel 531 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 531 or near the touch panel 531. Operation), and according to a preset program Drive the corresponding connecting device.
  • the touch panel 531 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information
  • the processor 580 is provided and can receive commands from the processor 580 and execute them.
  • the touch panel 531 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 530 may also include other input devices 532.
  • other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 540 can be used to display information input by the user or information provided to the user as well as various menus of the terminal.
  • the display unit 540 can include a display panel 541.
  • the display panel 541 can be configured in the form of a Liquid Crystal Display (LCD) Organic Light-Emitting Diode (OLED).
  • the touch panel 531 can cover the display panel 541. When the touch panel 531 detects a touch operation on or near it, the touch panel 531 transmits to the processor 580 to determine the type of the touch event, and then the processor 580 according to the touch event. The type provides a corresponding visual output on display panel 541.
  • the touch panel 531 and the display panel 541 are used as two independent components to implement input and input functions of the terminal, in some embodiments, the touch panel 531 may be integrated with the display panel 541. Realize the input and output functions of the terminal.
  • Terminal 500 can also include at least one type of sensor 550, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of the ambient light, and the proximity sensor may close the display panel 541 and/or when the terminal moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • attitude of the terminal such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can be configured in the terminal are no longer used here. Praise.
  • Audio circuit 560, speaker 561, and microphone 562 can provide an audio interface between the user and the terminal.
  • the audio circuit 560 can transmit the converted electrical data of the received audio data to the speaker 561.
  • the speaker 561 converts the sound signal into an audio signal.
  • the microphone 562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 560 and converted into audio data, and then processed by the audio data output processor 580, and then passed through the RF circuit.
  • 510 is sent to, for example, another terminal, or audio data is output to memory 520 for further processing.
  • the terminal can help the user to send and receive emails, browse web pages, access streaming media, etc. through the communication module 570, which provides users with wireless broadband Internet access.
  • FIG. 5 shows the communication module 570, it will be understood that it does not belong to the essential configuration of the terminal 500, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 580 is the control center of the terminal, and connects various parts of the entire terminal using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 520, and calling data stored in the memory 520, executing The terminal's various functions and processing data, so as to monitor the terminal as a whole.
  • the processor 580 may include one or more processing units.
  • the processor 580 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into processor 580.
  • the terminal 500 also includes a power source 590 (such as a battery) for powering various components.
  • a power source 590 such as a battery
  • the power source can be logically coupled to the processor 580 through a power management system to perform functions such as managing charging, discharging, and power management through the power management system.
  • the terminal 500 may further include a camera, a microphone, etc., and details are not described herein.
  • the processor 580 included in the terminal may also perform time-consuming acquisition of the startup item.
  • the processor 580 can obtain the time of the startup item by the following steps:
  • the time consuming time of the first process and the second process is time consuming as the startup item.
  • sub-process of a process may be empty or one or more.
  • the sub-process may also have a sub-process, which is collectively referred to as a second process.
  • the number of the specific sub-processes is not limited in the embodiment of the present invention.
  • the I/O (Input/Output) of the process is the resource occupied by the process during the startup process, which will affect the process startup.
  • the I/O time should also be part of the time-consuming process.
  • the calculation process time-consuming includes: calculating the CPU time consumption of the process and the input/output time consumption of the process, and taking the sum of the CPU time consumption of the process and the input/output time of the process as the process consumption. Time.
  • the embodiment of the present invention also provides a specific how to calculate the input/output time consumption of the process, as follows:
  • the above monitoring time period is the time period of the boot time
  • the input/output time consumption of the above calculation process includes: calculation The difference between the system boot time and the total CPU time of all processes and the system idle time, calculate the ratio of the set input/output time to the system boot time and the input/output throughput of the process and the input of all processes/
  • the quotient of the output throughput is calculated by calculating the product of the difference and the above quotient as the input/output time of the above process.
  • the method of obtaining the time I/O of the process can also register the event of the ETW (Event Tracing for Windows, ETW provides a tracking and recording mechanism for the event object created by the user layer application and the kernel layer driver) through the kernel mode program. , capture the I / O time of each process, which can also accurately determine the I / O time.
  • ETW Event Tracing for Windows, ETW provides a tracking and recording mechanism for the event object created by the user layer application and the kernel layer driver
  • the process may have a waiting situation, the situation is not a resource consumed in the system startup process, and therefore may be excluded, further improving the accuracy of the process time-consuming calculation, as follows: the above system startup time for calculation And the system idle time does not include the CPU time spent in the process waiting process, and the input/output throughput of all processes does not include the input/output time spent in the waiting process.
  • the ratio of the ratio of the input/output time set to the total time set above is (0, 1.0).
  • the obtaining of at least one of a parent-child relationship between the processes in the monitoring period, a CPU consumption of the process, and an input/output throughput of the process includes:

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)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

La présente invention se rapporte à un procédé et à un dispositif adaptés pour acquérir le temps consommé par un élément de démarrage. Le procédé selon l'invention consiste : à acquérir le temps consommé par un premier processus et le temps consommé par un second processus, le premier processus étant un processus qui correspond à l'élément de démarrage et le second processus étant un sous-processus du premier processus; à utiliser la somme du temps consommé par le premier processus et le temps consommé par le second processus en tant que le temps consommé par l'élément de démarrage; et à désactiver l'élément de démarrage lorsque le temps consommé par l'élément de démarrage est supérieur à un seuil prédéfini.
PCT/CN2014/073922 2013-03-22 2014-03-24 Procédé et dispositif d'acquisition de temps consommé par un élément de démarrage WO2014146612A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310096444.5 2013-03-22
CN201310096444.5A CN103150248B (zh) 2013-03-22 2013-03-22 一种启动项耗时的测算方法和装置

Publications (1)

Publication Number Publication Date
WO2014146612A1 true WO2014146612A1 (fr) 2014-09-25

Family

ID=48548343

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/073922 WO2014146612A1 (fr) 2013-03-22 2014-03-24 Procédé et dispositif d'acquisition de temps consommé par un élément de démarrage

Country Status (2)

Country Link
CN (1) CN103150248B (fr)
WO (1) WO2014146612A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716660A (zh) * 2019-09-02 2020-01-21 Oppo(重庆)智能科技有限公司 一种触摸屏启动方法及终端、存储介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150248B (zh) * 2013-03-22 2015-03-18 腾讯科技(深圳)有限公司 一种启动项耗时的测算方法和装置
CN104199692B (zh) * 2014-08-25 2017-08-04 北京金山安全软件有限公司 一种获取应用程序的启动时间的方法、装置及终端
CN107341094B (zh) * 2016-04-29 2020-01-31 腾讯科技(深圳)有限公司 启动项耗时的测量方法及装置
CN107992334B (zh) * 2016-10-27 2021-06-01 腾讯科技(深圳)有限公司 一种开机优化的方法以及终端
CN106775712B (zh) * 2016-12-14 2021-02-05 深圳Tcl数字技术有限公司 安卓系统启动过程的响应方法及装置
CN107168839B (zh) * 2017-05-18 2020-10-30 浙江红绿蓝纺织印染有限公司 一种移动终端开机时间长度检测方法
CN111176869B (zh) * 2019-08-01 2022-05-10 腾讯云计算(北京)有限责任公司 超时检测方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8060734B1 (en) * 2008-10-13 2011-11-15 Symantec Corporation Systems and methods for providing recommendations to improve boot performance based on community data
CN102298532A (zh) * 2011-09-15 2011-12-28 奇智软件(北京)有限公司 一种基于启动项的管理方法及装置
CN102831045A (zh) * 2012-06-21 2012-12-19 北京奇虎科技有限公司 一种终端设备中启动项检测的方法和装置
CN102981863A (zh) * 2011-09-07 2013-03-20 奇智软件(北京)有限公司 一种开机启动项目的管理方法和装置
CN103150248A (zh) * 2013-03-22 2013-06-12 腾讯科技(深圳)有限公司 一种启动项耗时的测算方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8010995B2 (en) * 2006-09-08 2011-08-30 International Business Machines Corporation Methods, systems, and computer program products for implementing inter-process integrity serialization
CN102096591A (zh) * 2011-03-01 2011-06-15 云浮南风数字科技有限公司 一种加快嵌入式Linux系统启动的方法
CN102591770B (zh) * 2011-12-27 2016-06-29 北京奇虎科技有限公司 一种目标应用启动时间检测方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8060734B1 (en) * 2008-10-13 2011-11-15 Symantec Corporation Systems and methods for providing recommendations to improve boot performance based on community data
CN102981863A (zh) * 2011-09-07 2013-03-20 奇智软件(北京)有限公司 一种开机启动项目的管理方法和装置
CN102298532A (zh) * 2011-09-15 2011-12-28 奇智软件(北京)有限公司 一种基于启动项的管理方法及装置
CN102831045A (zh) * 2012-06-21 2012-12-19 北京奇虎科技有限公司 一种终端设备中启动项检测的方法和装置
CN103150248A (zh) * 2013-03-22 2013-06-12 腾讯科技(深圳)有限公司 一种启动项耗时的测算方法和装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110716660A (zh) * 2019-09-02 2020-01-21 Oppo(重庆)智能科技有限公司 一种触摸屏启动方法及终端、存储介质
CN110716660B (zh) * 2019-09-02 2023-05-09 Oppo(重庆)智能科技有限公司 一种触摸屏启动方法及终端、存储介质

Also Published As

Publication number Publication date
CN103150248B (zh) 2015-03-18
CN103150248A (zh) 2013-06-12

Similar Documents

Publication Publication Date Title
WO2014146612A1 (fr) Procédé et dispositif d'acquisition de temps consommé par un élément de démarrage
WO2017206916A1 (fr) Procédé de détermination d'une configuration d'exécution de noyau dans un processeur et produit correspondant
TWI520043B (zh) 消息查看方法、裝置和移動終端
US10664088B2 (en) Method for controlling touch screen and electronic device supporting thereof
WO2017206902A1 (fr) Procédé de commande d'application et dispositif associé
CN107590057B (zh) 冻屏监测与解决方法、移动终端及计算机可读存储介质
CN106775833B (zh) 设备驱动程序加载方法、终端及系统
WO2015027856A1 (fr) Procédé, appareil et terminal de retour d'information
WO2015043194A1 (fr) Procédé et appareil d'affichage de clavier virtuel, et terminal
JP6616896B2 (ja) 指紋認識方法及び電子デバイス
WO2017193496A1 (fr) Procédé et appareil de traitement de données d'application et dispositif de terminal
WO2017206915A1 (fr) Procédé de détermination de configuration d'exécution de noyau dans un processeur et produit associé
WO2017206918A1 (fr) Procédé d'accélération du réveil d'un terminal et produit associé
WO2015035835A1 (fr) Méthode et appareil de détection de programme d'application
WO2018209555A1 (fr) Procédé de connexion de dispositif bluetooth et dispositif terminal
CN103631625B (zh) 一种数据获取的方法、用户端、服务器及系统
WO2019085533A1 (fr) Procédé de traitement d'application pour pour un dispositif terminal, et dispositif terminal
WO2019007371A1 (fr) Procédé pour empêcher le vol d'informations, dispositif de stockage et terminal mobile
WO2017206853A1 (fr) Procédé d'accélération de réponse de glissement et produits correspondants
WO2014032250A1 (fr) Procédé et dispositif de commande d'une unité centrale
WO2015074387A1 (fr) Procédé, appareil et dispositif terminal de réponse à une opération de glissement
WO2019128571A1 (fr) Procédé et dispositif de gestion de ressources, terminal mobile, ainsi que support d'informations lisible par ordinateur
WO2015062234A1 (fr) Procédé, dispositif et appareil de traitement de ressource de terminal mobile
WO2017206860A1 (fr) Procédé de traitement de terminal mobile et terminal mobile
WO2018045874A1 (fr) Procédé de traitement d'informations et produit associé

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14767942

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.02.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14767942

Country of ref document: EP

Kind code of ref document: A1