WO2016000544A1 - 处理app的cpu占用率异常的方法、装置及移动终端 - Google Patents

处理app的cpu占用率异常的方法、装置及移动终端 Download PDF

Info

Publication number
WO2016000544A1
WO2016000544A1 PCT/CN2015/082114 CN2015082114W WO2016000544A1 WO 2016000544 A1 WO2016000544 A1 WO 2016000544A1 CN 2015082114 W CN2015082114 W CN 2015082114W WO 2016000544 A1 WO2016000544 A1 WO 2016000544A1
Authority
WO
WIPO (PCT)
Prior art keywords
app
cpu usage
user
abnormal
similar
Prior art date
Application number
PCT/CN2015/082114
Other languages
English (en)
French (fr)
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 北京金山安全软件有限公司
Priority to US15/322,990 priority Critical patent/US10409441B2/en
Publication of WO2016000544A1 publication Critical patent/WO2016000544A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • 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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/501Performance criteria
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/508Monitor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation

Definitions

  • the present invention relates to the field of mobile communications technologies, and in particular, to a method, an apparatus, and a mobile terminal for processing an abnormal CPU usage of an APP.
  • the user can obtain the current CPU share of the smart phone through an application installed on the smart phone, such as a Tencent butler, a 360 optimization master, etc., wherein the CPU usage can indicate the consumption of CPU resources in the smart phone system, usually CPU usage.
  • the rate usually the higher the operating efficiency of the smartphone system.
  • the existing related technologies only give the CPU usage of each APP, and do not judge whether the CPU usage of each APP is abnormal.
  • the user cannot know whether the CPU usage of the running APP in the current system is abnormal, and the APP with abnormal CPU usage cannot be processed.
  • the APP with abnormal CPU usage affects the efficiency of the smartphone system, which may affect the user.
  • the present invention aims to solve at least one of the technical problems in the related art to some extent. Therefore, the first object of the present invention is to provide a method for processing an abnormal CPU usage of an APP, which can reduce the impact of an APP with abnormal CPU usage on the operating efficiency of the mobile terminal system, and improve the operating efficiency of the mobile terminal system. .
  • a second object of the present invention is to provide an apparatus for handling an abnormal CPU usage of an APP.
  • a third object of the present invention is to provide a mobile terminal.
  • a method for processing an abnormality of the CPU usage of the APP including: determining that the CPU usage of the current APP is abnormal; and displaying prompt information of the killing process, so that the user checks and kills according to the prompt information. Corresponding process.
  • the method for processing the abnormality of the CPU usage of the APP in the embodiment of the present invention determines that the CPU usage of the APP is abnormal, and displays the prompt information of the killing process, so that the user can kill the corresponding process according to the prompt information, thereby reducing the CPU usage.
  • the effect of the abnormal APP on the operating efficiency of the mobile terminal system improves the operational efficiency of the mobile terminal system.
  • the device of the second aspect of the present invention provides an apparatus for processing an abnormality of the CPU usage of the APP, including: a determining module, configured to determine that the CPU usage of the current APP is abnormal; and a display module, configured to display prompt information of the killing process, The user is prompted to kill the corresponding process according to the prompt information.
  • the device for processing the abnormal CPU usage of the APP in the embodiment of the present invention determines that the CPU usage of the APP is abnormal by using the determining module, and displays the prompt information of the killing process through the display module, so that the user can kill the corresponding process according to the prompt information, thereby
  • the utility model can reduce the influence of the APP with abnormal CPU usage on the operating efficiency of the mobile terminal system, and improve the operating efficiency of the mobile terminal system.
  • a third aspect of the present invention provides a mobile terminal, which includes a casing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the casing, The processor and the memory are disposed on the circuit board; the power supply circuit is configured to supply power to each circuit or device of the mobile terminal; the memory is configured to store executable program code; the processor Running a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following steps: determining that the CPU usage of the current APP is abnormal; displaying prompt information of the killing process, The user is prompted to kill the corresponding process according to the prompt information.
  • the CPU of the embodiment of the present invention determines that the CPU usage of the APP is abnormal
  • the prompt information of the killing process is displayed, so that the user can kill the corresponding process according to the prompt information, thereby reducing the APP to the mobile terminal with abnormal CPU usage.
  • the impact of system operation efficiency improves the operational efficiency of the mobile terminal system.
  • FIG. 1 is a flowchart of a method for processing an abnormal CPU usage of an APP according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for processing an abnormal CPU usage of an APP according to another embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for processing an abnormality of CPU usage of an APP according to still another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a prompt box prompting a user to import user data according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for processing an abnormality of CPU usage of an APP according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for processing an abnormality of CPU usage of an APP according to another embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for processing an abnormal CPU usage of an APP according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
  • the CPU usage of the current APP can be calculated, and then the CPU usage of the current APP is determined to be within a predetermined value range. If not, the CPU usage of the current APP is abnormal.
  • the method may further include: obtaining parameter information of the APP, sending parameter information to the server, and receiving the server to query the local database according to the parameter information, and then returning The predetermined range of values.
  • the mobile terminal receives a predetermined value range of the CPU usage of the current APP returned by the server, and determines whether the calculated CPU usage of the current APP is within a predetermined value range of the CPU of the current APP, and if the CPU usage of the current APP is found. If the value is not within the predetermined value range, it is determined that the CPU usage of the current APP is abnormal.
  • the preset value range of the CPU usage of the APP is a value range of the CPU usage rate of the APP pre-stored in the local database of the server according to the parameter information of the APP.
  • the parameter information of the APP may include, but is not limited to, an identifier of the APP.
  • the information, the running environment, and the running scenario, the identifier information is used to uniquely identify the APP, and the identifier information may be the package name or the package signature information of the current APP.
  • the running environment of the APP refers to the hardware environment and software environment of the terminal where the current APP is located, and the APP
  • the running scenario refers to the functions or operations performed by the APP under certain operating environments (related to the hardware environment and the software environment), such as downloading, uploading, foreground running, or background running.
  • the function or operation of an APP is more complete.
  • the higher the CPU usage of the APP for example, the operating environment of the 3D game is higher than the operating environment of the 2D game.
  • the operating environment of the 3D game corresponds to a higher CPU usage, that is, the 3D game consumes more CPU resources. .
  • the mobile terminal calculates that the CPU usage of the game is 30% according to the parameter information of the game, and the value of the CPU usage corresponding to the game returned from the server ranges from 20% to 25%.
  • the mobile terminal can determine that the CPU usage of the game is not within the value range of the CPU usage, and the CPU usage of the game is abnormal.
  • the prompt information of the killing process is displayed.
  • the user can kill the APP with abnormal CPU usage according to the prompt information, that is, the process of closing the APP, thereby, The effect of the APP with abnormal CPU usage on the operating efficiency of the mobile terminal system is reduced, and the stability of the operation of the mobile terminal system is improved.
  • the process may not be completely killed.
  • the method is as shown in FIG. 2 . It can also include:
  • the APP will automatically start after an interval preset time, for example, 1 minute, and continue to run on the mobile terminal.
  • an interval preset time for example, 1 minute
  • the APP can use the system broadcast of the Android system, and the program that triggers the APP checks the running status of the service of the corresponding APP, and if the running status of the service corresponding to the APP has been closed, That is, it is checked that the corresponding APP has been killed.
  • the running state of the service of the corresponding APP can be changed, and the APP is restarted in the background, that is, the APP is re-run in the background process of the mobile terminal.
  • the prompt page including the forced stop or the self-starting may be displayed for the user, and the mobile terminal may perform a forced stop or prohibit the self-start operation according to the user's selection.
  • the app may still start automatically.
  • the embodiment may further include:
  • the user may also display a similar APP list with the current APP, that is, in the process of uninstalling the current APP, pushing the user with the same type as the current APP.
  • a similar APP list with the current APP, that is, in the process of uninstalling the current APP, pushing the user with the same type as the current APP.
  • other apps of the music category can be recommended to the user in the recommendation list.
  • the recommendation list can display shrimp music, Netease music and cool dog music. Etc.
  • an updated version of QQ music can also be displayed in the recommendation list.
  • the user data saved in the current APP may also be acquired, and the corresponding user data may be saved.
  • the APP as the QQ music as an example, the user's favorite song or the user's favorite song may be used. The relevant data is saved.
  • the mobile terminal will receive the user's selection, download the corresponding similar APP from the server according to the user's selection, install the similar APP, and after installing the similar APP, Display a prompt box prompting the user whether to import user data. If the user needs to import user data, import user data in a similar APP after installation. For example, in the process of uninstalling QQ music, the user selects Netease music in the recommended list. After the NetEase music is installed, the mobile terminal will display a prompt box as shown in FIG. 4.
  • the mobile terminal will import the user data generated by the user in the use of the QQ music into the Netease music, for example, The user-collected songs or related data of the songs that the user likes are imported into the Netease music, thereby enabling the user to continue to use the original user data after the APP is replaced, without requiring the user to manually add again, saving the user a lot of operations. More user-friendly and intelligent, so that users can continue to use the original service.
  • the embodiment of the present invention can adopt different methods for the number of times the abnormality of the background CPU usage of the APP and the scenario, and provide a user with a variety of ways to handle the abnormal CPU usage of the background of the APP, and provide a more humanized processing manner.
  • Various processing solutions are provided to solve the abnormal CPU usage.
  • the method for processing the abnormality of the CPU usage of the APP is as follows: after determining that the CPU usage of the APP is abnormal, the prompt information of the killing process is displayed, so that the user can kill the corresponding process according to the prompt information, thereby reducing the abnormal CPU usage.
  • the impact of the APP on the operational efficiency of the mobile terminal system improves the operational efficiency of the mobile terminal system.
  • the present invention also provides an apparatus for handling an abnormal CPU usage of an APP.
  • FIG. 5 is a schematic structural diagram of an apparatus for processing an abnormality of CPU usage of an APP according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes: a determining module 51 and a display module 52, where:
  • the determining module 51 is configured to determine that the CPU usage of the current APP is abnormal.
  • the display module 52 is configured to display the prompt information of the killing process, so that the user can kill the corresponding process according to the prompt information.
  • the determining module 51 is specifically configured to: calculate a CPU usage of the current APP, determine whether the CPU usage of the current APP is within a predetermined value range, and if not within the predetermined value range, determine that the CPU usage of the current APP is abnormal. .
  • the foregoing apparatus may further include an obtaining module 50, configured to obtain parameter information of the APP, and send the parameter to the server, before the determining module 51 determines whether the CPU usage of the current APP is within a predetermined value range. And receiving the predetermined range of values returned by the server after querying the local database according to the parameter information.
  • an obtaining module 50 configured to obtain parameter information of the APP, and send the parameter to the server, before the determining module 51 determines whether the CPU usage of the current APP is within a predetermined value range. And receiving the predetermined range of values returned by the server after querying the local database according to the parameter information.
  • the preset value range of the CPU usage of the APP is a value range of the CPU usage rate of the APP pre-stored in the local database of the server according to the parameter information of the APP.
  • the parameter information of the APP may include, but is not limited to, an identifier of the APP.
  • the information, the running environment, and the running scenario, the identifier information is used to uniquely identify the APP, and the identifier information may be the package name or the package signature information of the current APP.
  • the running environment of the APP refers to the hardware environment and software environment of the terminal where the current APP is located, and the APP
  • the running scenario refers to the functions or operations performed by the APP in a certain operating environment (related to the hardware environment and the software environment).
  • the running environment of the 3D game is compared with the running environment of the 2D game, and the CPU of the running environment of the 3D game is occupied.
  • the rate is high, that is, 3D consumes more CPU resources.
  • the process may not be completely killed.
  • the foregoing apparatus may further include The processing module 53 is configured to perform a forced stop or prohibit the self-start operation if the CPU usage of the process being checked is abnormal after the display module 51 displays the prompt information of the killing process.
  • the user may display a prompt page including forcibly stopping or prohibiting self-starting, and the mobile terminal may perform forced stop or prohibit the current APP according to the user's selection. Since the operation is started, in addition, it is also possible to automatically perform a forced stop or prohibit the self-start operation according to a specific scene.
  • the device may further include a second processing module 54.
  • the second processing module 54 is configured to: after the first processing module 53 performs the forced stop or the self-starting operation, if the CPU usage of the process that is forcibly stopped or prohibited from being started is abnormal, the boot interface is displayed to guide The user uninstalls the corresponding process.
  • the above display module 52 can also be used to display a similar APP list of the current APP to recommend a similar APP to the user.
  • the foregoing apparatus may further include an acquisition and save module 55, configured to acquire user data saved in the current APP, and save the user data.
  • the device may further include an importing module 56, and the importing module 56 is configured to receive and install the user from the similar APP list after the obtaining and saving module 55 saves the user data.
  • the importing module 56 is configured to receive and install the user from the similar APP list after the obtaining and saving module 55 saves the user data.
  • a similar APP selected in the middle, and the above user data is imported in a similar APP after installation.
  • the user data is imported into the newly installed similar APP by the import module 56, so that the user can continue to use the original user data without requiring the user to manually add it again, which saves the user a lot of operations, is more user-friendly and intelligent, and is convenient. The user continues to use the original service.
  • the display module 52 may be further configured to: after the import module 56 receives and installs a similar APP selected by the user from the similar APP list, before the importing module 56 imports the user data in the installed similar APP, A prompt box is displayed to prompt whether the above user needs to import the above user data.
  • the processing procedure of the device including the acquisition module 50, the determination module 51, the display module 52, the first processing module 53, the second processing module 54, the acquisition storage module 55, and the processing module of the import module 56 is abnormal. 2, FIG. 3, and will not be described here.
  • the apparatus for processing an abnormality of the CPU usage of the APP is determined by the determining module that the CPU usage of the APP is abnormal, and the prompt information of the killing process is displayed by the display module, so that the user can kill the corresponding process according to the prompt information, thereby Reduce the impact of APPs with abnormal CPU usage on the operating efficiency of mobile terminal systems, and improve the mobile terminal system. operating efficiency.
  • the present invention further provides a mobile terminal including a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed inside a space enclosed by the housing, The processor and the memory are disposed on the circuit board; the power circuit is configured to supply power to each circuit or device of the mobile terminal; the memory is configured to store executable program code; and the processor reads the memory stored in the memory by reading The executable program code runs a program corresponding to the above executable program code for performing the following steps:
  • the CPU usage of the current APP can be calculated, and then the CPU usage of the current APP is determined to be within a predetermined value range. If not, the CPU usage of the current APP is abnormal.
  • the method may further include: obtaining parameter information of the APP, sending parameter information to the server, and receiving the server to query the local database according to the parameter information, and then returning The predetermined range of values.
  • the mobile terminal receives a predetermined value range of the CPU usage of the current APP returned by the server, and determines whether the calculated CPU usage of the current APP is within a predetermined value range of the CPU of the current APP, and if the CPU usage of the current APP is found. If the value is not within the predetermined value range, it is determined that the CPU usage of the current APP is abnormal.
  • the preset value range of the CPU usage of the APP is a value range of the CPU usage rate of the APP pre-stored in the local database of the server according to the parameter information of the APP.
  • the parameter information of the APP may include, but is not limited to, an identifier of the APP.
  • the information, the running environment, and the running scenario, the identifier information is used to uniquely identify the APP, and the identifier information may be a package name or a package signature information of the current APP, and the running environment of the APP refers to a hardware environment and a software environment of the mobile terminal where the current APP is located.
  • the running scenario of the APP refers to the functions or operations performed by the APP under certain operating environments (related to the hardware environment and the software environment), such as downloading, uploading, foreground running, or background running, etc., functions or operations to be completed by an APP.
  • the mobile terminal calculates that the CPU usage of the game is 30% according to the parameter information of the game, and the value of the CPU usage corresponding to the game returned from the server ranges from 20% to 25%.
  • the mobile terminal can determine that the CPU usage of the game is not within the value range of the CPU usage, and the CPU usage of the game is abnormal.
  • the prompt information of the killing process is displayed.
  • the user can kill the APP with abnormal CPU usage according to the prompt information, thereby reducing the abnormal CPU usage.
  • the impact of APP on the operating efficiency of the mobile terminal system improves the stability of the operation of the mobile terminal system.
  • the processor is further configured to perform step S103'.
  • the APP will automatically start after an interval preset time, for example, 1 minute, and continue to run on the mobile terminal.
  • an interval preset time for example, 1 minute
  • the APP can use the system broadcast of the Android system, and the program that triggers the APP checks the running status of the service of the corresponding APP, and if the running status of the service corresponding to the APP has been closed, That is, it is checked that the corresponding APP has been killed.
  • the running state of the service of the corresponding APP can be changed, and the APP is restarted in the background, that is, the APP is re-run in the background process of the mobile terminal.
  • the prompt page including the forced stop or the self-starting may be displayed for the user, and the mobile terminal may perform a forced stop or prohibit the self-start operation according to the user's selection.
  • the app may still start automatically.
  • the processor is further configured to perform step S104'.
  • the boot interface is displayed to guide the user to uninstall the corresponding process.
  • the user may also display a similar APP list with the current APP, that is, in the process of uninstalling the current APP, pushing the user with the same type as the current APP.
  • a similar APP list with the current APP, that is, in the process of uninstalling the current APP, pushing the user with the same type as the current APP.
  • other apps of the music category can be recommended to the user in the recommendation list.
  • the recommendation list can display shrimp music, Netease music and cool dog music. Etc.
  • an updated version of QQ music can also be displayed in the recommendation list.
  • the user data saved in the current APP may also be acquired, and the corresponding user data may be saved.
  • the APP as the QQ music as an example, the user's favorite song or the user's favorite song may be used. The relevant data is saved.
  • the mobile terminal will receive the user's selection, download the corresponding similar APP from the server according to the user's selection, install the similar APP, and display a similar APP after installing a similar APP.
  • Prompt the user whether to import the user data prompt box if the user needs to import the user data, import the user data in the similar APP after installation, for example, in the process of uninstalling the QQ music, the user selects the NetEase music in the recommendation list, and moves After installing the Netease music, the terminal will display a prompt box as shown in Figure 4, and the user clicks OK.
  • the mobile terminal will import the user data generated by the user in the use of QQ music into the Netease music, for example, the user-supplied song or the related data of the user's favorite song can be imported into the Netease music, thereby causing the user to replace
  • the original user data can still be used, without requiring the user to manually add it again, which saves the user a lot of operations, is more user-friendly and intelligent, so that the user can continue to use the original service.
  • the embodiment of the present invention can adopt different methods for the number of times the abnormality of the background CPU usage of the APP and the scenario, and provide a user with a variety of ways to handle the abnormal CPU usage of the background of the APP, and provide a more humanized processing manner.
  • Various processing solutions are provided to solve the abnormal CPU usage.
  • the prompt information of the killing process is displayed, so that the user can kill the corresponding process according to the prompt information, thereby reducing the APP with abnormal CPU usage to run on the mobile terminal system.
  • the impact of efficiency improves the operational efficiency of mobile terminal systems.
  • first and second are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
  • features defining “first” or “second” may include at least one of the features, either explicitly or implicitly.
  • the meaning of "a plurality” is at least two, such as two, three, etc., unless specifically defined otherwise.
  • a "computer-readable medium” can be any apparatus that can contain, store, communicate, propagate, or transport a program for use in an instruction execution system, apparatus, or device, or in conjunction with the instruction execution system, apparatus, or device.
  • a more specific example (non-exhaustive list) of computer readable media includes the following: electrical connections having one or more wires (electrical Sub-device), portable computer case (magnetic device), random access memory (RAM), read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic device, and portable CD Read only memory (CDROM).
  • the computer readable medium may even be a paper or other suitable medium on which the program can be printed, as it may be optically scanned, for example by paper or other medium, followed by editing, interpretation or, if appropriate, other suitable The method is processed to obtain the program electronically and then stored in computer memory.
  • portions of the invention may be implemented in hardware, software, firmware or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提出一种处理APP的CPU占用率异常的方法、装置及移动终端。其中,该处理APP的CPU占用率异常的方法包括:确定当前APP的CPU占用率异常;以及显示杀进程的提示信息,以使用户根据提示信息查杀对应进程。本发明实施例的处理APP的CPU占用率异常的方法、装置及移动终端,可减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统的运行效率。

Description

处理APP的CPU占用率异常的方法、装置及移动终端
相关申请的交叉引用
本申请要求于2014年6月30日提交中国专利局、申请号为201410309657.6、发明名称为“处理APP的CPU占用率异常的方法、装置及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通信技术领域,尤其涉及一种处理APP的CPU占用率异常的方法、装置及移动终端。
背景技术
随着移动通信技术的发展,移动终端(例如智能手机)的功能越来越强大,智能手机中通常会安装各种功能的应用程序(APP,APPlication),每个APP在运行时均会消耗一定的中央处理器(CPU,Central Processing Unit)资源。
目前,用户可通过安装在智能手机上的应用程序例如腾讯管家、360优化大师等获得智能手机当前的CPU占有率,其中,CPU占用率可以表示智能手机系统中CPU资源的消耗情况,通常CPU占用率越小,智能手机系统的运行效率越高,然而,现有的相关技术中仅是给出了每个APP的CPU占用率情况,并未对每个APP的CPU占用率是否存在异常进行判断,用户无法获知当前系统中正在运行的APP的CPU占用率是否异常,进而无法对CPU占用率异常的APP进行处理,CPU占用率异常的APP会影响智能手机系统运行的效率,进而可影响用户对智能手机的使用体验。
发明内容
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本发明的第一个目的在于提出一种处理APP的CPU占用率异常的方法,该方法可减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统的运行效率。
本发明的第二个目的在于提出一种处理APP的CPU占用率异常的装置。
本发明的第三个目的在于提出一种移动终端。
根据本发明第一方面实施例提出了一种处理APP的CPU占用率异常的方法,包括:确定当前APP的CPU占用率异常;显示杀进程的提示信息,以使用户根据所述提示信息查杀对应进程。
本发明实施例的处理APP的CPU占用率异常的方法,确定APP的CPU占用率异常后,显示杀进程的提示信息,以使用户可以根据提示信息查杀对应进程,由此,可减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统的运行效率。
本发明第二方面实施例提出了一种处理APP的CPU占用率异常的装置,包括:确定模块,用于确定当前APP的CPU占用率异常;显示模块,用于显示杀进程的提示信息,以使用户根据所述提示信息查杀对应进程。
本发明实施例的处理APP的CPU占用率异常的装置,通过确定模块确定APP的CPU占用率异常,通过显示模块显示杀进程的提示信息,以使用户可以根据提示信息查杀对应进程,由此,可减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统的运行效率。
本发明第三方面实施例提出了一种移动终端,该移动终端包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:确定当前APP的CPU占用率异常;显示杀进程的提示信息,以使用户根据所述提示信息查杀对应进程。
本发明实施例的移动终端,确定APP的CPU占用率异常后,显示杀进程的提示信息,以使用户可以根据提示信息查杀对应进程,由此,可减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统的运行效率。
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。
附图说明
图1是根据本发明一个实施例的处理APP的CPU占用率异常的方法的流程图。
图2是根据本发明另一个实施例的处理APP的CPU占用率异常的方法的流程图。
图3是根据本发明又一个实施例的处理APP的CPU占用率异常的方法的流程图。
图4是根据本发明一个实施例的提示用户是否导入用户数据的提示框的示意图。
图5是根据本发明一个实施例的处理APP的CPU占用率异常的装置的结构示意图。
图6是根据本发明另一个实施例的处理APP的CPU占用率异常的装置的结构示意图。
具体实施方式
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。
下面参考附图描述本发明实施例的处理APP的CPU占用率异常的方法、装置及移动终端。
图1是根据本发明一个实施例的处理APP的CPU占用率异常的方法的流程图,如图1所示,该方法包括:
S101,确定当前APP的CPU占用率异常。
具体地,可计算当前APP的CPU占用率,然后判断当前APP的CPU占用率是否位于预定数值范围内,若不位于预定数值范围内,则确定当前APP的CPU占用率异常。
在该实施例中,在判断当前APP的CPU占用率是否位于预定数值范围内之前,还可以包括:获得APP的参数信息,向服务器发送参数信息,并接收服务器根据参数信息查询本地的数据库后返回的预定数值范围。
具体地,移动终端接收服务器返回的当前APP的CPU占用率的预定数值范围,并判断计算的当前APP的CPU占用率是否位于当前APP的CPU的预定数值范围内,若发现当前APP的CPU占用率不位于该预定数值范围内,则确定当前APP的CPU占用率异常。
其中,APP的CPU占用率的预设数值范围是根据APP的参数信息在服务器的本地的数据库中预先保存的APP的CPU占用率的数值范围,上述APP的参数信息可以包括但不限于APP的标识信息、运行环境和运行场景,上述标识信息用于唯一标识APP,该标识信息可为当前APP的包名或者包签名信息,APP的运行环境是指当前APP所在终端的硬件环境和软件环境,APP的运行场景是指APP在一定的运行环境(与硬件环境和软件环境有关)下所完成的功能或操作,例如,下载、上传、前台运行还是后台运行等,一个APP所要完成的功能或者操作越多,该APP的CPU占用率越高,例如,3D游戏的运行环境与2D游戏的运行环境相比,3D游戏的运行环境对应的CPU占用率更高,即3D游戏要消耗更多的CPU资源。
以APP为一款游戏为例,移动终端根据游戏的参数信息计算得到该游戏的CPU占用率为30%,而从服务器返回的该游戏所对应的CPU占用率的数值范围为20%-25%,则移动终端可以判断出该游戏的CPU占用率不位于CPU占用率的数值范围内,则该游戏的CPU占用率异常。
S102,显示杀进程的提示信息,以使用户根据提示信息查杀对应进程。
具体地,在移动终端运行的当前APP的CPU占用率异常后,显示杀进程的提示信息,此时用户可根据提示信息将CPU占用率异常的APP杀掉即关闭该APP的进程,由此,减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统运行的稳定性。
在该实施例中,在用户根据提示信息查杀对应进程之后,未必可以将该进程彻底杀死,为了降低未彻底杀死的进程对移动终端系统运行效率的影响,如图2所示该方法还可以包括:
S103,若仍监控到被查杀的进程的CPU占用率异常,则执行强行停止或禁止自启动操作。
具体地,在用户根据提示信息将CPU占用率异常的APP关闭之后,若该APP具有后台自启动功能,在间隔预设时间例如1分钟后,该APP将自动启动,并继续运行于移动终端的后台进程中。例如,对于安卓(Android)系统的智能手机,APP可利用Android系统的系统广播,触发APP的程序检查对应APP的服务(Service)的运行状态,若检查到对应APP的服务的运行状态已经被关闭,即检查到对应APP已经被杀掉,此时,可更改对应APP的服务的运行状态,重新后台启动该APP,即该APP又重新在移动终端的后台进程中运行。
若此时监控到该APP对应的CPU占用率又出现异常,则可为用户显示包含强行停止或者禁止自启动的提示页面,移动终端可根据用户的选择对当前APP执行强行停止或者禁止自启动操作,另外,也可以根据具体场景自动执行强行停止或者禁止自启动操作。
目前,用户对某些APP执行强行停止后,该APP仍然可能会自动启动。
为了进一步降低CPU占有率异常的APP对移动终端系统运行效率的影响,如图3所示,该实施例还可以包括:
S104,若仍监控到被强行停止或禁止自启动的进程的CPU占用率异常,则显示引导界面,以引导用户卸载对应的进程。
在该实施例中,在引导用户卸载对应的进程的过程中,还可以为用户显示与当前APP的相似APP列表,也就是说,在卸载当前APP的过程中,为用户推送与当前APP同类的其他APP,以APP为QQ音乐为例,在用户卸载QQ音乐过程中,可在推荐列表中向该用户推荐音乐类的其他APP,例如,推荐列表中可显示虾米音乐、网易音乐和酷狗音乐等,另外,推荐列表中还可以显示QQ音乐的更新版本。
在该实施例中,在卸载当前APP之前,还可以获取当前APP中保存的用户数据,并保存对应的用户数据,以APP为QQ音乐为例,可将用户收藏的歌曲或者用户喜欢的歌曲的相关数据进行保存。
若用户从相似APP列表中选择某一个的相似APP,移动终端将接收用户的选择,并根据用户的选择从服务器下载对应的相似APP,并安装该相似APP,并且在安装相似APP后, 显示一个提示用户是否需要导入用户数据的提示框,若用户需要导入用户数据,则在安装后的相似APP中导入用户数据,例如,在卸载QQ音乐的过程中,用户选择推荐列表中的网易音乐,移动终端将在安装网易音乐后,显示一个如图4所示的提示框,在用户点击确定之后,移动终端将把用户在使用QQ音乐中产生的用户数据导入至网易音乐中,比如可将用户收藏的歌曲或者用户喜欢的歌曲的相关数据导入至网易音乐中,由此,使得用户在更换APP后仍然可以继续使用原来的用户数据,而不需要用户重新手动添加,为用户节省了很多操作,更人性化和智能化,从而方便用户继续使用原来的服务。
综上所述,本发明实施例可以针对APP后台CPU占用率异常的次数和场景采取不同的做法,为用户提供多种可以处理APP后台CPU占用率异常的方式,提供更加人性化的处理方式,为解决CPU占用率异常提供了多种处理方案。
上述处理APP的CPU占用率异常的方法实施例,确定APP的CPU占用率异常后,显示杀进程的提示信息,以使用户可以根据提示信息查杀对应进程,由此,可减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统的运行效率。
为了实现上述实施例,本发明还提出一种处理APP的CPU占用率异常的装置。
图5是根据本发明一个实施例的处理APP的CPU占用率异常的装置的结构示意图,如图5所示,该装置包括:确定模块51和显示模块52,其中:
确定模块51用于确定当前APP的CPU占用率异常;显示模块52用于显示杀进程的提示信息,以使用户根据上述提示信息查杀对应进程。
上述确定模块51具体用于:计算上述当前APP的CPU占用率,判断上述当前APP的CPU占用率是否位于预定数值范围内,若不位于上述预定数值范围内,则确定当前APP的CPU占用率异常。
另外,上述装置还可以包括获取模块50,该获取模块50用于在上述确定模块51判断上述当前APP的CPU占用率是否位于预定数值范围内之前,获得上述APP的参数信息,向服务器发送上述参数信息,并接收上述服务器根据上述参数信息查询本地的数据库后返回的上述预定数值范围。
其中,APP的CPU占用率的预设数值范围是根据APP的参数信息在服务器的本地的数据库中预先保存的APP的CPU占用率的数值范围,上述APP的参数信息可以包括但不限于APP的标识信息、运行环境和运行场景,上述标识信息用于唯一标识APP,该标识信息可为当前APP的包名或者包签名信息,APP的运行环境是指当前APP所在终端的硬件环境和软件环境,APP的运行场景是指APP在一定的运行环境(与硬件环境和软件环境有关)下所完成的功能或操作,一个APP所要完成的功能或者操作越多,该APP的CPU占用率越高,例如,3D游戏的运行环境与2D游戏的运行环境相比,3D游戏的运行环境对应的CPU占用 率要高,即3D要消耗更多的CPU资源。
在用户根据提示信息查杀对应进程之后,未必可以将该进程彻底杀死,为了降低未彻底杀死的进程对移动终端系统运行效率的影响,如图6所示,上述装置还可以包括第一处理模块53,该第一处理模块53用于在上述显示模块51显示杀进程的提示信息之后,若仍监控到被查杀的进程的CPU占用率异常,则执行强行停止或禁止自启动操作。
若第一处理模块53监控到该APP对应的CPU占用率又出现异常,则可为用户显示包含强行停止或者禁止自启动的提示页面,移动终端可根据用户的选择对当前APP执行强行停止或者禁止自启动操作,另外,也可以根据具体场景自动执行强行停止或者禁止自启动操作。
目前,用户对某些APP执行强行停止后,该APP仍然可能会自动启动,为了进一步降低CPU占有率异常的APP对移动终端系统运行效率的影响,上述装置还可以包括第二处理模块54,该第二处理模块54用于在上述第一处理模块53执行强行停止或禁止自启动操作之后,若仍监控到被强行停止或禁止自启动的进程的CPU占用率异常,则显示引导界面,以引导用户卸载对应的进程。
上述显示模块52还可以用于显示当前APP的相似APP列表,以向用户推荐相似APP。
另外,上述装置还可以包括获取保存模块55,该获取保存模块55,用于获取当前APP中保存的用户数据,并保存上述用户数据。
为了方便用户在更换APP还可以继续使用原来的服务,上述装置还可以包括导入模块56,该导入模块56用于在上述获取保存模块55保存上述用户数据之后,接收并安装用户从上述相似APP列表中选择的相似APP,并在安装后的相似APP中导入上述用户数据。
通过导入模块56将用户数据导入用户新安装的相似APP中,可使用户继续使用原来的用户数据,而不需要用户重新手动添加,为用户节省了很多操作,更人性化和智能化,从而方便用户继续使用原来的服务。
另外,上述显示模块52还可以用于:在上述导入模块56接收并安装用户从上述相似APP列表中选择的相似APP之后,在上述导入模块56在安装后的相似APP中导入上述用户数据之前,显示提示框,以提示上述用户是否需要导入上述用户数据。
包含获取模块50、确定模块51、显示模块52、第一处理模块53、第二处理模块54、获取保存模块55和导入模块56的处理APP的CPU占用率异常的装置的处理过程可参见图1、图2或者图3,此处不赘述。
上述处理APP的CPU占用率异常的装置实施例,通过确定模块确定APP的CPU占用率异常,通过显示模块显示杀进程的提示信息,以使用户可以根据提示信息查杀对应进程,由此,可减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统的 运行效率。
为了实现上述实施例,本发明还提出一种移动终端,该移动终端包括壳体、处理器、存储器、电路板和电源电路,其中,上述电路板安置在上述壳体围成的空间内部,上述处理器和上述存储器设置在上述电路板上;上述电源电路,用于为上述移动终端的各个电路或器件供电;上述存储器用于存储可执行程序代码;上述处理器通过读取上述存储器中存储的可执行程序代码来运行与上述可执行程序代码对应的程序,以用于执行以下步骤:
S101’,确定当前APP的CPU占用率异常。
具体地,可计算当前APP的CPU占用率,然后判断当前APP的CPU占用率是否位于预定数值范围内,若不位于预定数值范围内,则确定当前APP的CPU占用率异常。
在该实施例中,在判断当前APP的CPU占用率是否位于预定数值范围内之前,还可以包括:获得APP的参数信息,向服务器发送参数信息,并接收服务器根据参数信息查询本地的数据库后返回的预定数值范围。
具体地,移动终端接收服务器返回的当前APP的CPU占用率的预定数值范围,并判断计算的当前APP的CPU占用率是否位于当前APP的CPU的预定数值范围内,若发现当前APP的CPU占用率不位于该预定数值范围内,则确定当前APP的CPU占用率异常。
其中,APP的CPU占用率的预设数值范围是根据APP的参数信息在服务器的本地的数据库中预先保存的APP的CPU占用率的数值范围,上述APP的参数信息可以包括但不限于APP的标识信息、运行环境和运行场景,上述标识信息用于唯一标识APP,该标识信息可为当前APP的包名或者包签名信息,APP的运行环境是指当前APP所在移动终端的硬件环境和软件环境,APP的运行场景是指APP在一定的运行环境(与硬件环境和软件环境有关)下所完成的功能或操作,例如,下载、上传、前台运行还是后台运行等,一个APP所要完成的功能或者操作越多,该APP的CPU占用率越高,例如,3D游戏的运行环境与2D游戏的运行环境相比,3D游戏的运行环境对应的CPU占用率更高,即3D游戏要消耗更多的CPU资源。
以APP为一款游戏为例,移动终端根据游戏的参数信息计算得到该游戏的CPU占用率为30%,而从服务器返回的该游戏所对应的CPU占用率的数值范围为20%-25%,则移动终端可以判断出该游戏的CPU占用率不位于CPU占用率的数值范围内,则该游戏的CPU占用率异常。
S102’,显示杀进程的提示信息,以使用户根据提示信息查杀对应进程。
具体地,在移动终端运行的当前APP的CPU占用率异常后,显示杀进程的提示信息,此时用户可根据提示信息将CPU占用率异常的APP杀掉,由此,减少CPU占用率异常的 APP对移动终端系统运行效率的影响,提高移动终端系统运行的稳定性。
在用户根据提示信息查杀对应进程之后,未必可以将该进程彻底杀死,为了降低未彻底杀死的进程对移动终端系统运行效率的影响,处理器还用于执行步骤S103’。
S103’,若仍监控到被查杀的进程的CPU占用率异常,则执行强行停止或禁止自启动操作。
具体地,在用户根据提示信息将CPU占用率异常的APP关闭之后,若该APP具有后台自启动功能,在间隔预设时间例如1分钟后,该APP将自动启动,并继续运行于移动终端的后台进程中。例如,对于安卓(Android)系统的智能手机,APP可利用Android系统的系统广播,触发APP的程序检查对应APP的服务(Service)的运行状态,若检查到对应APP的服务的运行状态已经被关闭,即检查到对应APP已经被杀掉,此时,可更改对应APP的服务的运行状态,重新后台启动该APP,即该APP又重新在移动终端的后台进程中运行。
若此时监控到该APP对应的CPU占用率又出现异常,则可为用户显示包含强行停止或者禁止自启动的提示页面,移动终端可根据用户的选择对当前APP执行强行停止或者禁止自启动操作,另外,也可以根据具体场景自动执行强行停止或者禁止自启动操作。
目前,用户对某些APP执行强行停止后,该APP仍然可能会自动启动。
为了进一步降低CPU占有率异常的APP对移动终端系统运行效率的影响,处理器还用于执行步骤S104’。
S104’,若仍监控到被强行停止或禁止自启动的进程的CPU占用率异常,则显示引导界面,以引导用户卸载对应的进程。
在该实施例中,在引导用户卸载对应的进程的过程中,还可以为用户显示与当前APP的相似APP列表,也就是说,在卸载当前APP的过程中,为用户推送与当前APP同类的其他APP,以APP为QQ音乐为例,在用户卸载QQ音乐过程中,可在推荐列表中向该用户推荐音乐类的其他APP,例如,推荐列表中可显示虾米音乐、网易音乐和酷狗音乐等,另外,推荐列表中还可以显示QQ音乐的更新版本。
在该实施例中,在卸载当前APP之前,还可以获取当前APP中保存的用户数据,并保存对应的用户数据,以APP为QQ音乐为例,可将用户收藏的歌曲或者用户喜欢的歌曲的相关数据进行保存。
若用户从相似APP列表中选择某一个的相似APP,移动终端将接收用户的选择,并根据用户的选择从服务器下载对应的相似APP,并安装该相似APP,并且在安装相似APP后,显示一个提示用户是否需要导入用户数据的提示框,若用户需要导入用户数据,则在安装后的相似APP中导入用户数据,例如,在卸载QQ音乐的过程中,用户选择推荐列表中的网易音乐,移动终端将在安装网易音乐后,显示一个如图4所示的提示框,在用户点击确定之 后,移动终端将把用户在使用QQ音乐中产生的用户数据导入至网易音乐中,比如可将用户收藏的歌曲或者用户喜欢的歌曲的相关数据导入至网易音乐中,由此,使得用户在更换APP后仍然可以继续使用原来的用户数据,而不需要用户重新手动添加,为用户节省了很多操作,更人性化和智能化,从而方便用户继续使用原来的服务。
综上所述,本发明实施例可以针对APP后台CPU占用率异常的次数和场景采取不同的做法,为用户提供多种可以处理APP后台CPU占用率异常的方式,提供更加人性化的处理方式,为解决CPU占用率异常提供了多种处理方案。
上述移动终端实施例,确定APP的CPU占用率异常后,显示杀进程的提示信息,以使用户可以根据提示信息查杀对应进程,由此,可减少CPU占用率异常的APP对移动终端系统运行效率的影响,提高移动终端系统的运行效率。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电 子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (21)

  1. 一种处理APP的CPU占用率异常的方法,其特征在于,包括:
    确定当前APP的CPU占用率异常;
    显示杀进程的提示信息,以使用户根据所述提示信息查杀对应进程。
  2. 根据权利要求1所述的方法,其特征在于,在所述显示杀进程的提示信息之后,还包括:
    若仍监控到被查杀的进程的CPU占用率异常,则执行强行停止或禁止自启动操作。
  3. 根据权利要求2所述的方法,其特征在于,在所述执行强行停止或禁止自启动操作之后,还包括:
    若仍监控到被强行停止或禁止自启动的进程的CPU占用率异常,则显示引导界面,以引导用户卸载对应的进程。
  4. 根据权利要求3所述的方法,其特征在于,还包括:
    显示当前APP的相似APP列表,以向所述用户推荐相似APP。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:
    获取当前APP中保存的用户数据,并保存所述用户数据。
  6. 根据权利要求5所述的方法,其特征在于,在所述保存所述用户数据之后,还包括:
    接收并安装用户从所述相似APP列表中选择的相似APP,并在安装后的相似APP中导入所述用户数据。
  7. 根据权利要求6所述的方法,其特征在于,在所述接收并安装用户从所述相似APP列表中选择的相似APP之后,在所述在安装后的相似APP中导入所述用户数据之前,还包括:
    显示提示框,以提示所述用户是否需要导入所述用户数据。
  8. 根据权利要求1-7任一权利要求所述的方法,其特征在于,所述确定当前APP的CPU占用率异常,包括:
    计算所述当前APP的CPU占用率,判断所述当前APP的CPU占用率是否位于预定数值范围内,若不位于所述预定数值范围内,则确定当前APP的CPU占用率异常。
  9. 根据权利要求8所述的方法,其特征在于,在所述判断所述当前APP的CPU占用率是否位于预定数值范围内之前,还包括:
    获得所述APP的参数信息,向服务器发送所述参数信息,并接收所述服务器根据所述参数信息查询本地的数据库后返回的所述预定数值范围。
  10. 根据权利要求8所述的方法,其特征在于,所述APP的参数信息包括所述APP的 标识信息、运行环境和运行场景。
  11. 一种处理APP的CPU占用率异常的装置,其特征在于,包括:
    确定模块,用于确定当前APP的CPU占用率异常;
    显示模块,用于显示杀进程的提示信息,以使用户根据所述提示信息查杀对应进程。
  12. 根据权利要求11所述的装置,其特征在于,还包括:
    第一处理模块,用于在所述显示模块显示杀进程的提示信息之后,若仍监控到被查杀的进程的CPU占用率异常,则执行强行停止或禁止自启动操作。
  13. 根据权利要求12所述的装置,其特征在于,还包括:
    第二处理模块,用于在所述第一处理模块执行强行停止或禁止自启动操作之后,若仍监控到被强行停止或禁止自启动的进程的CPU占用率异常,则显示引导界面,以引导用户卸载对应的进程。
  14. 根据权利要求13所述的装置,其特征在于,所述显示模块,还用于:显示当前APP的相似APP列表,以向所述用户推荐相似APP。
  15. 根据权利要求11-14任一项所述的装置,其特征在于,还包括:
    获取保存模块,用于获取当前APP中保存的用户数据,并保存所述用户数据。
  16. 根据权利要求15所述的装置,其特征在于,还包括:
    导入模块,用于在所述获取保存模块保存所述用户数据之后,接收并安装用户从所述相似APP列表中选择的相似APP,并在安装后的相似APP中导入所述用户数据。
  17. 根据权利要求16所述的装置,其特征在于,所述显示模块,还用于:
    在所述导入模块接收并安装用户从所述相似APP列表中选择的相似APP之后,在所述导入模块在安装后的相似APP中导入所述用户数据之前,显示提示框,以提示所述用户是否需要导入所述用户数据。
  18. 根据权利要求11-17任一权利要求所述的装置,其特征在于,所述确定模块,具体用于:
    计算所述当前APP的CPU占用率,判断所述当前APP的CPU占用率是否位于预定数值范围内,若不位于所述预定数值范围内,则确定当前APP的CPU占用率异常。
  19. 根据权利要求18所述的装置,其特征在于,还包括:
    获取模块,用于在所述确定模块判断所述当前APP的CPU占用率是否位于预定数值范围内之前,获得所述APP的参数信息,向服务器发送所述参数信息,并接收所述服务器根据所述参数信息查询本地的数据库后返回的所述预定数值范围。
  20. 根据权利要求18所述的装置,其特征在于,所述APP的参数信息包括所述APP的标识信息、运行环境和运行场景。
  21. 一种移动终端,所述移动终端包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:
    确定当前APP的CPU占用率异常;
    显示杀进程的提示信息,以使用户根据所述提示信息查杀对应进程。
PCT/CN2015/082114 2014-06-30 2015-06-23 处理app的cpu占用率异常的方法、装置及移动终端 WO2016000544A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/322,990 US10409441B2 (en) 2014-06-30 2015-06-23 Method of processing application CPU usage rate anomaly, and device and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410309657.6A CN105335134A (zh) 2014-06-30 2014-06-30 处理app的cpu占用率异常的方法、装置及移动终端
CN201410309657.6 2014-06-30

Publications (1)

Publication Number Publication Date
WO2016000544A1 true WO2016000544A1 (zh) 2016-01-07

Family

ID=55018428

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082114 WO2016000544A1 (zh) 2014-06-30 2015-06-23 处理app的cpu占用率异常的方法、装置及移动终端

Country Status (3)

Country Link
US (1) US10409441B2 (zh)
CN (1) CN105335134A (zh)
WO (1) WO2016000544A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893223A (zh) * 2016-04-29 2016-08-24 乐视控股(北京)有限公司 异常显示方法及装置
CN107784227A (zh) * 2017-11-21 2018-03-09 深圳市沃特沃德股份有限公司 车载系统的应用保护方法和装置
CN108197000A (zh) * 2018-01-10 2018-06-22 武汉斗鱼网络科技有限公司 应用程序启动日志保存方法、存储介质、电子设备及系统

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180013608A (ko) 2016-07-29 2018-02-07 삼성전자주식회사 전자 장치의 전력 소모 감소를 위한 방법 및 장치
CN106648730A (zh) * 2016-09-26 2017-05-10 北京小米移动软件有限公司 异常应用的处理方法和装置
CN107577507A (zh) * 2017-08-09 2018-01-12 广州视源电子科技股份有限公司 一种应用删除方法及装置
CN109614282B (zh) * 2018-09-28 2022-06-03 东软集团股份有限公司 确定应用的系统资源使用信息的方法和装置
CN109508265A (zh) * 2018-11-02 2019-03-22 郑州云海信息技术有限公司 一种判断cpu运行异常的方法、装置、终端及存储介质
CN109597645B (zh) * 2018-12-11 2022-02-01 平安科技(深圳)有限公司 一种属性参数修改方法和相关装置
CN109669781A (zh) * 2018-12-29 2019-04-23 联想(北京)有限公司 数据处理方法和系统
CN111026538B (zh) * 2019-12-26 2023-04-14 杭州蓦然认知科技有限公司 一种app生态系统建立、使用方法、装置
CN116974434A (zh) * 2022-04-22 2023-10-31 华为技术有限公司 显示方法及电子设备
CN116484373B (zh) * 2023-05-08 2024-02-23 合芯科技(苏州)有限公司 异常进程查杀方法、系统、装置、计算机设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060128231A (ko) * 2005-06-09 2006-12-14 에스케이 텔레콤주식회사 중앙처리장치의 사용률 산출 방법
US20100058457A1 (en) * 2003-10-03 2010-03-04 Verizon Services Corp. Methodology, Measurements and Analysis of Performance and Scalability of Stateful Border Gateways
CN102810059A (zh) * 2011-06-01 2012-12-05 鸿富锦精密工业(深圳)有限公司 计算机假死机现象处理系统及方法
CN102946486A (zh) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 一种基于手机的后台应用自动清理方法及手机

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7047448B2 (en) * 2002-11-21 2006-05-16 Bitfone Corporation Software self-repair toolkit for electronic devices
DE102005050587A1 (de) * 2005-10-21 2007-05-03 Siemens Ag Verfahren zum Weiterleiten von Signalisierungsdaten in einer Netzübergangseinheit und in einer Steuereinheit sowie zugehörige Einheiten
CN101408861A (zh) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 应用程序实时监控系统及方法
JP2010198155A (ja) * 2009-02-24 2010-09-09 Fujitsu Ten Ltd プログラム更新装置、プログラム更新方法、及び情報処理装置
US20120137369A1 (en) * 2010-11-29 2012-05-31 Infosec Co., Ltd. Mobile terminal with security functionality and method of implementing the same
CN102306118A (zh) * 2011-08-31 2012-01-04 中兴通讯股份有限公司 Android终端应用程序功耗监控的方法和装置
US9141914B2 (en) * 2011-10-31 2015-09-22 Hewlett-Packard Development Company, L.P. System and method for ranking anomalies
WO2014172567A1 (en) * 2013-04-17 2014-10-23 Systech Corporation Gateway device for machine-to-machine communication with dual cellular interfaces
CN104166542B (zh) * 2013-05-17 2018-01-05 腾讯科技(深圳)有限公司 检测应用耗电的方法和装置
US9628356B2 (en) * 2013-10-10 2017-04-18 Ixia Methods, systems, and computer readable media for providing user interfaces for specification of system under test (SUT) and network tap topology and for presenting topology specific test results
CN103595758B (zh) * 2013-10-11 2017-03-08 北京奇虎科技有限公司 推荐软件的方法及装置
CN103530193A (zh) * 2013-11-01 2014-01-22 北京网秦天下科技有限公司 用于调节应用进程的方法和设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100058457A1 (en) * 2003-10-03 2010-03-04 Verizon Services Corp. Methodology, Measurements and Analysis of Performance and Scalability of Stateful Border Gateways
KR20060128231A (ko) * 2005-06-09 2006-12-14 에스케이 텔레콤주식회사 중앙처리장치의 사용률 산출 방법
CN102810059A (zh) * 2011-06-01 2012-12-05 鸿富锦精密工业(深圳)有限公司 计算机假死机现象处理系统及方法
CN102946486A (zh) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 一种基于手机的后台应用自动清理方法及手机

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893223A (zh) * 2016-04-29 2016-08-24 乐视控股(北京)有限公司 异常显示方法及装置
CN107784227A (zh) * 2017-11-21 2018-03-09 深圳市沃特沃德股份有限公司 车载系统的应用保护方法和装置
CN108197000A (zh) * 2018-01-10 2018-06-22 武汉斗鱼网络科技有限公司 应用程序启动日志保存方法、存储介质、电子设备及系统
CN108197000B (zh) * 2018-01-10 2021-04-09 武汉斗鱼网络科技有限公司 应用程序启动日志保存方法、存储介质、电子设备及系统

Also Published As

Publication number Publication date
CN105335134A (zh) 2016-02-17
US20170192619A1 (en) 2017-07-06
US10409441B2 (en) 2019-09-10

Similar Documents

Publication Publication Date Title
WO2016000544A1 (zh) 处理app的cpu占用率异常的方法、装置及移动终端
CN107729083B (zh) 一种加载驱动程序的方法及嵌入式设备
CN108898230B (zh) 一种设备管理方法及管理服务器
US9183072B1 (en) Error troubleshooting using a correlated knowledge base
TWI622933B (zh) Client update method and device
US9552199B2 (en) Method and apparatus of prompting an update of an application
US9396015B2 (en) Flexible device templates for connected consumer devices
WO2016050129A1 (zh) 应用程序的处理方法、装置及终端
WO2017020781A1 (zh) 省电处理方法、装置、移动终端和云端服务器
CN104317649A (zh) 终端应用程序app的处理方法、装置及终端
WO2017032265A1 (zh) 一种应用推送方法、装置及服务设备
CN105468674A (zh) 窗口拦截方法、装置和终端设备
WO2017049893A1 (zh) 一种应用程序的测试方法、测试装置及移动终端
WO2018103217A1 (zh) 一种升级应用的方法、服务器和用户设备
CN111464351B (zh) 一种智能家居设备配网方法、装置、终端设备及存储介质
CN110113391B (zh) 一种客户端上线方法、装置及一种客户端运行方法、装置
TW201814546A (zh) 設備的組件加載方法、裝置以及物聯網系統
CN108121561B (zh) 应用程序修复方法、装置和系统
CN103885798A (zh) 一种数据处理方法及电子设备
CN105335192A (zh) 一种信息处理方法及电子设备
US9361209B2 (en) Capturing domain validations and domain element initializations
US10242315B2 (en) Finite state machine forming
CN111475148A (zh) 第三方依赖库隔离方法及装置、电子设备、存储介质
AU2013206622B2 (en) Download management method and device based on Android browser
US20180059648A1 (en) Techniques for network charting and configuration in a welding or cutting system

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: 15814574

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15322990

Country of ref document: US

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 09.08.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15814574

Country of ref document: EP

Kind code of ref document: A1