WO2016000543A1 - Method, device and mobile terminal for detecting abnormal cpu occupancy rate of app - Google Patents

Method, device and mobile terminal for detecting abnormal cpu occupancy rate of app Download PDF

Info

Publication number
WO2016000543A1
WO2016000543A1 PCT/CN2015/082112 CN2015082112W WO2016000543A1 WO 2016000543 A1 WO2016000543 A1 WO 2016000543A1 CN 2015082112 W CN2015082112 W CN 2015082112W WO 2016000543 A1 WO2016000543 A1 WO 2016000543A1
Authority
WO
WIPO (PCT)
Prior art keywords
app
cpu usage
abnormal
parameter information
query
Prior art date
Application number
PCT/CN2015/082112
Other languages
French (fr)
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
Priority to CN201410309270.0A priority Critical patent/CN105204970B/en
Priority to CN201410309270.0 priority
Application filed by 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Publication of WO2016000543A1 publication Critical patent/WO2016000543A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/28Error detection; Error correction; Monitoring by checking the correct order of processing

Abstract

The present invention sets forth a method, device and mobile terminal for detecting abnormal CPU occupancy rate of an APP; wherein, the method comprising: obtaining parameter information of the current running APP, and sending to a server a query request carrying the parameter information so that the server obtains the query result on the basis of the query request; receiving the query result returned by the server, and determining whether the CPU occupancy rate of the corresponding APP is abnormal on the basis of the query result; and displaying prompt information when the CPU occupancy rate of the corresponding APP is abnormal. The method, device and mobile terminal for detecting abnormal CPU occupancy rate of the APP in the embodiments of the present invention can accurately determine whether the CPU occupancy rate of each APP in the terminal is abnormal; and when the abnormality occurs, the user can implement some relevant processes on the APP with abnormal CPU occupancy rate on the basis of the displayed prompt information so as to reduce the effect of the APP with abnormal CPU occupancy rate on the terminal system, and then the running efficiency of the terminal system may be improved.

Description

检测APP的CPU占用率异常的方法、装置及移动终端Method, device and mobile terminal for detecting abnormal CPU usage of APP
相关申请的交叉引用Cross-reference to related applications
本申请要求于2014年6月30日提交中国专利局、申请号为201410309270.0、发明名称为“检测APP的CPU占用率异常的方法、装置及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on June 30, 2014, the Chinese Patent Office, the application number is 201410309270.0, and the invention is entitled "Method, device and mobile terminal for detecting abnormal CPU usage of APP". This is incorporated herein by reference.
技术领域Technical field
本发明涉及移动通信技术领域,尤其涉及一种检测APP的CPU占用率异常的方法、装置及移动终端。The present invention relates to the field of mobile communications technologies, and in particular, to a method, an apparatus, and a mobile terminal for detecting abnormal CPU usage of an APP.
背景技术Background technique
随着移动通信技术的发展,移动终端(例如智能手机)的功能越来越强大,智能手机中通常会安装各种功能的应用程序(APP,Application),每个APP在运行时均会消耗一定的中央处理器(CPU,Central Processing Unit)资源。With the development of mobile communication technologies, the functions of mobile terminals (such as smart phones) are becoming more and more powerful. In the smart phones, applications (APP, Application) of various functions are usually installed, and each APP consumes a certain amount of time during operation. Central Processing Unit (CPU) resources.
目前,移动终端可为用户提供当前系统中正在运行的每个APP的CPU占用率,然而现有的相关技术中仅是给出了每个APP的CPU占用率情况,并未对每个APP的CPU占用率是否存在异常进行判断,用户无法获知当前系统中正在运行的APP的CPU占用率是否异常,CPU占用率异常的APP会影响移动终端的运行效率。At present, the mobile terminal can provide the user with the CPU usage of each APP currently running in the current system. However, the related related art only gives the CPU usage of each APP, and does not apply to each APP. If the CPU usage is abnormal, the user cannot know whether the CPU usage of the APP running in the current system is abnormal. The APP with abnormal CPU usage will affect the operating efficiency of the mobile terminal.
因此,目前急需一种可以准确判断APP占用率是否异常的方法。Therefore, there is an urgent need for a method for accurately determining whether the APP occupancy rate is abnormal.
发明内容Summary of the invention
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本发明的第一个目的在于提出一种检测APP的CPU占用率异常的方法,该方法可可以准确确定终端中每个APP的CPU占用率是否异常,并在异常时,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对终端系统的影响,进而可提高终端系统运行的效率。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 detecting an abnormality of the CPU usage of an APP. The method can accurately determine whether the CPU usage of each APP in the terminal is abnormal, and when abnormal, the user can The displayed information is related to the APP with abnormal CPU usage, which reduces the impact of the APP with abnormal CPU usage on the terminal system, thereby improving the efficiency of the terminal system.
本发明的第二个目的在于提出一种检测APP的CPU占用率异常的方法。A second object of the present invention is to provide a method for detecting an abnormal CPU usage of an APP.
本发明的第三个目的在于提出一种检测APP的CPU占用率异常的装置。 A third object of the present invention is to provide an apparatus for detecting an abnormality in CPU usage of an APP.
本发明的第四个目的在于提出一种检测APP的CPU占用率异常的装置。A fourth object of the present invention is to provide an apparatus for detecting an abnormality in CPU usage of an APP.
本发明的第五个目的在于提出一种移动终端。A fifth object of the present invention is to provide a mobile terminal.
为了实现上述目的,本发明第一方面实施例提出了一种检测APP的CPU占用率异常的方法,包括:获得当前运行APP的参数信息,并向服务器发送携带所述参数信息的查询请求,以使所述服务器根据所述查询请求获得查询结果;接收所述服务器返回的所述查询结果,并根据所述查询结果确定对应APP的CPU占用率是否异常;以及在对应APP的CPU占用率异常时,显示提示信息。In order to achieve the above object, a first aspect of the present invention provides a method for detecting an abnormality of an CPU usage of an APP, including: obtaining parameter information of a currently running APP, and sending a query request carrying the parameter information to a server, to And causing the server to obtain the query result according to the query request; receiving the query result returned by the server, and determining, according to the query result, whether the CPU usage of the corresponding APP is abnormal; and when the CPU usage of the corresponding APP is abnormal. , displays a message.
本发明实施例的检测APP的CPU占用率异常的方法,获得当前运行APP的参数信息,并向服务器发送携带参数信息的查询请求,以及根据服务器返回的查询结果确定对应APP的CPU占有率是否异常,并在APP的CPU占有率异常时,显示提示信息,由此,可以准确确定终端中每个APP的CPU占用率是否异常,并在异常时,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对终端系统的影响,提高终端系统运行的效率。The method for detecting the abnormal CPU usage of the APP in the embodiment of the present invention obtains the parameter information of the currently running APP, and sends a query request carrying the parameter information to the server, and determines whether the CPU occupancy rate of the corresponding APP is abnormal according to the query result returned by the server. And when the CPU occupancy of the APP is abnormal, the prompt information is displayed, so that it is possible to accurately determine whether the CPU usage of each APP in the terminal is abnormal, and when the abnormality occurs, the user may use the prompt information of the CPU to be abnormal. The APP performs related processing to reduce the impact of the APP with abnormal CPU usage on the terminal system and improve the efficiency of the operation of the terminal system.
为了实现上述目的,本发明第二方面实施例提出了一种检测APP的CPU占用率异常的方法,包括:接收终端发送的携带APP的参数信息的查询请求;根据所述查询请求获得查询结果;以及向所述终端返回所述查询结果,以使所述终端根据所述查询结果确定对应APP的CPU占用率是否异常。In order to achieve the above object, a second aspect of the present invention provides a method for detecting an abnormality of an CPU usage of an APP, including: receiving a query request for carrying parameter information of an APP sent by a terminal; and obtaining a query result according to the query request; And returning the query result to the terminal, so that the terminal determines whether the CPU usage of the corresponding APP is abnormal according to the query result.
本发明实施例的检测APP的CPU占用率异常的方法,接收终端发送的携带APP的参数信息的查询请求,并根据查询请求获得查询结果,并将查询结果返回至终端,以使终端根据查询结果可准确确定对应APP的CPU占用率是否异常,并在异常时,显示APP的CPU占用率异常的提示信息,此时,用户可根据提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对终端系统的影响,提高终端系统运行的效率。The method for detecting abnormal CPU usage of the APP in the embodiment of the present invention receives a query request for carrying the parameter information of the APP sent by the terminal, and obtains a query result according to the query request, and returns the query result to the terminal, so that the terminal according to the query result The CPU usage of the corresponding APP is abnormal, and the abnormality of the CPU usage of the APP is displayed. In this case, the user can process the APP with abnormal CPU usage according to the prompt information to reduce CPU usage. The impact of abnormal APP on the terminal system improves the efficiency of the operation of the terminal system.
为了实现上述目的,本发明第三方面实施例提出了一种检测APP的CPU占用率异常的装置,包括:获得模块,用于获得当前运行APP的参数信息,并向服务器发送携带所述参数信息的查询请求,以使所述服务器根据所述查询请求获得查询结果;确定模块,用于接收所述服务器返回的所述查询结果,并根据所述查询结果确定对应APP的CPU占用率是否异常;以及显示模块,用于在对应APP的CPU占用率异常时,显示提示信息。In order to achieve the above object, the third aspect of the present invention provides an apparatus for detecting an abnormality of an CPU usage of an APP, including: an obtaining module, configured to obtain parameter information of a currently running APP, and send the parameter information to the server. The query request, so that the server obtains the query result according to the query request; the determining module is configured to receive the query result returned by the server, and determine, according to the query result, whether the CPU usage of the corresponding APP is abnormal; And a display module, configured to display a prompt message when the CPU usage of the corresponding APP is abnormal.
本发明实施例的检测APP的CPU占用率异常的装置,通过获得模块获得当前运行APP的参数信息,并向服务器发送携带参数信息的查询请求,确定模块根据服务器返回的查询结果确定对应APP的CPU占有率是否异常,以及显示模块在APP的CPU占有率是否异常时,显示提示信息,由此,可以准确确定终端中每个APP的CPU占用率是否异常,并在异常时,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异 常的APP对终端系统的影响,提高终端系统运行的效率。The device for detecting the abnormal CPU usage of the APP in the embodiment of the present invention obtains the parameter information of the currently running APP by obtaining the module, and sends a query request carrying the parameter information to the server, and the determining module determines the CPU of the corresponding APP according to the query result returned by the server. Whether the occupancy rate is abnormal, and the display module displays the prompt information when the CPU occupancy rate of the APP is abnormal. Therefore, it can be accurately determined whether the CPU usage of each APP in the terminal is abnormal, and when abnormal, the user can display according to the abnormality. The prompt information is related to the APP with abnormal CPU usage, which reduces the CPU usage. The impact of regular APP on the terminal system improves the efficiency of the operation of the terminal system.
为了实现上述目的,本发明第四方面实施例提出了一种检测APP的CPU占用率异常的装置,包括:接收模块,用于接收终端发送的携带APP的参数信息的查询请求;获得模块,用于根据所述查询请求获得查询结果;以及返回模块,用于向所述终端返回所述查询结果,以使所述终端根据所述查询结果确定对应APP的CPU占用率是否异常。In order to achieve the above object, the fourth aspect of the present invention provides an apparatus for detecting an abnormality of an CPU usage of an APP, including: a receiving module, configured to receive a query request for carrying parameter information of an APP sent by a terminal; The query result is obtained according to the query request; and the returning module is configured to return the query result to the terminal, so that the terminal determines whether the CPU usage of the corresponding APP is abnormal according to the query result.
本发明实施例的检测APP的CPU占用率异常的装置,通过接收模块接收终端发送的携带APP的参数信息的查询请求,获得模块根据参数信息获得查询结果,以及返回模块63将查询结果返回给终端,以使终端根据查询结果确定对应APP的CPU占用率是否异常,并在终端确定对应APP的CPU占用率异常是,显示对应APP的CPU占用率异常的提示信息,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对终端系统的影响,提高终端系统运行的效率。The device for detecting abnormal CPU usage of the APP in the embodiment of the present invention receives the query request of the parameter information carrying the APP sent by the terminal, the obtaining module obtains the query result according to the parameter information, and the returning module 63 returns the query result to the terminal. Therefore, the terminal determines whether the CPU usage of the corresponding APP is abnormal according to the query result, and determines that the CPU usage of the corresponding APP is abnormal, and displays the prompt information of the abnormal CPU usage of the APP, and the user may display the prompt information according to the prompt information. The APP with abnormal CPU usage performs related processing to reduce the impact of the APP with abnormal CPU usage on the terminal system and improve the efficiency of the operation of the terminal system.
为了实现上述目的,本发明第五方面实施例提出了一种移动终端,该移动终端包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:获得当前运行APP的参数信息,并向服务器发送携带所述参数信息的查询请求,以使所述服务器根据所述查询请求获得查询结果;接收所述服务器返回的所述查询结果,并根据所述查询结果确定对应APP的CPU占用率是否异常;以及在对应APP的CPU占用率异常时,显示提示信息。In order to achieve the above object, a fifth aspect of the present invention provides a mobile terminal, which includes a housing, a processor, a memory, a circuit board, and a power supply circuit, wherein the circuit board is disposed in the housing Inside the space, 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; and the memory is used to store executable program code The processor runs a program corresponding to the executable program code by reading executable program code stored in the memory, for performing the following steps: obtaining parameter information of a currently running APP, and sending the parameter information to the server The query request carrying the parameter information, so that the server obtains the query result according to the query request; receiving the query result returned by the server, and determining whether the CPU usage of the corresponding APP is abnormal according to the query result; And when the CPU usage of the corresponding APP is abnormal, a prompt message is displayed.
本发明实施例的移动终端,获得当前运行APP的参数信息,并向服务器发送携带参数信息的查询请求,以及根据服务器返回的查询结果确定对应APP的CPU占有率是否异常,并在APP的CPU占有率异常时,显示提示信息,由此,可以准确确定移动终端中每个APP的CPU占用率是否异常,并在异常时,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对移动终端系统的影响,提高移动终端系统运行的效率。The mobile terminal of the embodiment of the present invention obtains the parameter information of the current running APP, and sends a query request carrying the parameter information to the server, and determines whether the CPU occupancy rate of the corresponding APP is abnormal according to the query result returned by the server, and is occupied by the CPU of the APP. When the rate is abnormal, the prompt information is displayed. Therefore, it is possible to accurately determine whether the CPU usage of each APP in the mobile terminal is abnormal, and when abnormal, the user may perform related processing on the APP with abnormal CPU usage according to the displayed prompt information. The effect of the APP with abnormal CPU usage on the mobile terminal system is reduced, and the efficiency of the operation of the mobile terminal system is improved.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。The additional aspects and advantages of the invention will be set forth in part in the description which follows.
附图说明DRAWINGS
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中, The above and/or additional aspects and advantages of the present invention will become apparent and readily understood from
图1是根据本发明一个实施例的检测APP的CPU占用率异常的方法的流程图。FIG. 1 is a flowchart of a method for detecting an abnormality of CPU usage of an APP according to an embodiment of the present invention.
图2是根据本发明另一个实施例的检测APP的CPU占用率异常的方法的流程图。FIG. 2 is a flowchart of a method for detecting an abnormality of CPU usage of an APP according to another embodiment of the present invention.
图3是根据本发明又一个实施例的检测APP的CPU占用率异常的方法的流程图。FIG. 3 is a flowchart of a method for detecting an abnormality of CPU usage of an APP according to still another embodiment of the present invention.
图4是根据本发明再一个实施例的检测APP的CPU占用率异常的方法的流程图。FIG. 4 is a flowchart of a method for detecting an abnormality of CPU usage of an APP according to still another embodiment of the present invention.
图5是根据本发明一个实施例的检测APP的CPU占用率异常的装置。FIG. 5 is a diagram of detecting an abnormality of CPU usage of an APP according to an embodiment of the present invention.
图6是根据本发明另一个实施例的检测APP的CPU占用率异常的装置。FIG. 6 is a diagram of an apparatus for detecting an abnormality of CPU usage of an APP according to another embodiment of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
在本发明的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。在本发明的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present invention, it should be noted that the terms "connected" and "connected" are to be understood broadly, and may be, for example, a fixed connection, a detachable connection, or an integral, unless otherwise explicitly defined and defined. Ground connection; it can be mechanical connection or electrical connection; it can be directly connected or indirectly connected through an intermediate medium. The specific meaning of the above terms in the present invention can be understood in a specific case by those skilled in the art. Further, in the description of the present invention, the meaning of "a plurality" is two or more unless otherwise specified.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
下面参考附图描述根据本发明实施例的语音提示方法及装置。A voice prompting method and apparatus according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
图1是根据本发明一个实施例的检测APP的CPU占用率异常的方法的流程图。FIG. 1 is a flowchart of a method for detecting an abnormality of CPU usage of an APP according to an embodiment of the present invention.
S101,获得当前运行APP的参数信息,并向服务器发送携带参数信息的查询请求,以使服务器根据查询请求获得查询结果。S101. Obtain parameter information of the currently running APP, and send a query request carrying the parameter information to the server, so that the server obtains the query result according to the query request.
其中,上述APP的参数信息可以包括但不限于APP的标识信息、运行环境和运行场景,上述标识信息用于唯一标识APP,该标识信息可为当前APP的包名或者包签名信息,APP的运行环境是指当前APP所在终端的硬件环境和软件环境,APP的运行环境是指当前APP所在终端的硬件环境和软件环境,APP的运行场景是指APP在一定的运行环境(与硬件环境和软件环境有关)下所完成的功能或操作,例如,下载、上传、前台运行还是后台运行等,一个APP所要完成的功能或者操作越多,该APP的CPU占用率越高,例如,3D游戏的运 行环境与2D游戏的运行环境相比,3D游戏的运行环境对应的CPU占用率更高,即3D游戏要消耗更多的CPU资源。The parameter information of the APP may include, but is not limited to, the identifier information of the APP, 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 packet signature information of the current APP, and the running of the APP. The environment refers to the hardware environment and software environment of the terminal where the APP is located. The running environment of the APP refers to the hardware environment and software environment of the terminal where the APP is located. The running scenario of the APP refers to the operating environment of the APP (with the hardware environment and software environment). Related functions or operations, such as downloading, uploading, foreground running, or background running, etc. The more functions or operations an APP has to complete, the higher the CPU usage of the APP, for example, the operation of 3D games. Compared with the running environment of 2D games, the operating environment of the 3D game corresponds to a higher CPU usage, that is, the 3D game consumes more CPU resources.
S102,接收服务器返回的查询结果,并根据查询结果确定对应APP的CPU占用率是否异常。S102: Receive a query result returned by the server, and determine, according to the query result, whether the CPU usage of the corresponding APP is abnormal.
在该实施例中,终端可通过两种方式确定APP的占用率是否异常,第一种方式主要由服务器来确定APP的占用率是否异常,终端通过接收服务器返回的查询结果,即可确定APP的占用率是否异常;第二种方式主要由终端根据服务器返回的包含APP的CPU占用率的数值范围的查询结果来确定APP的占用率是否异常,下面将分别对这两种方式的实现细节进行描述。In this embodiment, the terminal can determine whether the occupancy rate of the APP is abnormal in two ways. The first mode is mainly determined by the server whether the occupancy rate of the APP is abnormal, and the terminal can determine the APP by receiving the query result returned by the server. Whether the occupancy rate is abnormal or not; the second method mainly determines whether the occupancy rate of the APP is abnormal according to the query result of the value range of the CPU usage rate of the APP returned by the server, and the implementation details of the two modes are respectively described below. .
第一种方式:终端将包含参数信息的查询请求发送给服务器,服务器接收终端发送的携带APP的参数信息的查询请求,并根据查询请求计算对应APP的CPU占用率,以及判断计算的APP的CPU占用率是否位于根据查询请求中的参数信息从数据库中获取的对应APP的CPU占用率的数值范围内,若位于对应的数值范围内,则获得对应APP的CPU占用率正常的检测结果,若不位于对应的数值范围内,则获得对应APP的CPU占用率异常的检测结果,以及将获得的检测结果作为查询结果返回至终端,终端通过接收的检测结果即可直接判断出APP的占有率是否异常。The first method is: the terminal sends a query request containing the parameter information to the server, and the server receives the query request of the parameter information of the APP sent by the terminal, and calculates the CPU usage rate of the corresponding APP according to the query request, and determines the CPU of the calculated APP. If the occupancy rate is within the range of the CPU usage of the corresponding APP obtained from the database according to the parameter information in the query request, if it is within the corresponding value range, the detection result of the normal CPU usage of the APP is obtained, if not If the value of the APP is abnormal, the detection result of the abnormal CPU usage of the APP is obtained, and the obtained detection result is returned to the terminal as a query result, and the terminal can directly determine whether the occupancy rate of the APP is abnormal by receiving the detection result. .
应当理解的是,上述数据库中保存有APP的标识信息、参数信息和对应的CPU占用率的数值范围,并且不同运行环境和运行场景的同一个APP的CPU占用率的数值范围是不同的,例如,APP为一款游戏,该游戏处于后台运行时,CPU占用率的数值范围为20%-30%,当该游戏处于前台运行时,该游戏对应的CPU占用率的数值范围为40%-50%。It should be understood that the above database contains the value range of the identification information, the parameter information, and the corresponding CPU usage of the APP, and the numerical ranges of the CPU usage of the same APP in different running environments and running scenarios are different, for example, APP is a game. When the game is running in the background, the CPU usage value ranges from 20% to 30%. When the game is in the foreground, the CPU usage of the game ranges from 40% to 50%. %.
具体地,在服务器计算对应APP的CPU占用率时,可计算APP在预设时间内的CPU占用率的平均值,然后判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内,因CPU占用率的平均值可以表明预设时间内的APP占用CPU的总体水平,因此,可使对APP的CPU占用率是否异常的判断更加直观和准确。Specifically, when the server calculates the CPU usage of the corresponding APP, the average value of the CPU usage of the APP in the preset time may be calculated, and then the average value of the CPU usage of the calculated APP is determined to be located in the CPU usage of the corresponding APP. The average value of the CPU usage indicates that the APP takes up the overall level of the CPU in the preset time. Therefore, the judgment of whether the CPU usage of the APP is abnormal is more intuitive and accurate.
第二种方式:终端将包含参数信息的查询请求发送给服务器,服务器接收终端发送的携带APP的参数信息的查询请求,并根据参数信息查询本地数据库获得对应APP的CPU占用率的数值范围,并将对应APP的CPU占用率的数值范围作为查询结果返回至终端,终端接收服务器返回的包含对应APP的CPU占用率的数值范围的检测结果,并根据计算APP的CPU占用率,并判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于,则确定对应APP的CPU占用率正常,若不位于,则确定对应APP的CPU占用率异常。The second method: the terminal sends a query request containing the parameter information to the server, and the server receives the query request of the parameter information of the APP sent by the terminal, and queries the local database according to the parameter information to obtain a numerical value range of the CPU usage of the corresponding APP, and The value range of the CPU usage of the corresponding APP is returned to the terminal as a query result, and the terminal receives the detection result of the value range of the CPU usage of the corresponding APP returned by the server, and calculates the calculated APP according to the CPU occupancy rate of the APP. If the CPU usage is within the range of the CPU usage of the corresponding APP, if it is located, the CPU usage of the corresponding APP is normal. If not, the CPU usage of the corresponding APP is abnormal.
同样地,在终端计算对应APP的CPU占用率时,也可计算APP在预设时间内的CPU 占用率的平均值,然后判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内。例如,终端计算得出某个APP在预设时间例如5分钟内的CPU的占有率的平均值为35%,而终端从服务器返回的该APP的CPU占有率的数值范围为20%-30%,则终端判断出该APP的CPU的占有率的平均值没有位于该APP可以正常工作的CPU占有率的数值范围内,由此终端可以判断出该APP的CPU占有率异常。Similarly, when the terminal calculates the CPU usage of the corresponding APP, the CPU of the APP within the preset time can also be calculated. The average of the occupancy rates is then determined whether the average value of the CPU usage of the calculated APP is within the value range of the CPU usage of the corresponding APP. For example, the terminal calculates that the average value of the CPU occupancy rate of a certain APP in a preset time, for example, 5 minutes is 35%, and the CPU occupancy rate of the APP returned from the server ranges from 20% to 30%. Then, the terminal determines that the average value of the CPU occupancy rate of the APP is not within the numerical range of the CPU occupancy rate at which the APP can work normally, so that the terminal can determine that the CPU occupancy rate of the APP is abnormal.
S103,在对应APP的CPU占用率异常时,显示提示信息。S103: When the CPU usage of the corresponding APP is abnormal, the prompt information is displayed.
具体地,在终端根据返回的查询结果确定对应APP的CPU占用率异常时,终端上显示对应APP的CPU占用率异常的提示信息,此时,用户可根据提示信息对CPU占用率异常的APP进行相关处理,由此,可减少CPU占用率异常的APP对终端系统的影响,提高终端系统运行的效率。Specifically, when the terminal determines that the CPU usage of the corresponding APP is abnormal according to the returned query result, the terminal displays the prompt information of the abnormal CPU usage of the APP, and the user may perform the APP with abnormal CPU usage according to the prompt information. The related processing can reduce the influence of the APP with abnormal CPU usage on the terminal system and improve the efficiency of the operation of the terminal system.
上述检测APP的CPU占用率异常的方法实施例,获得当前运行APP的参数信息,并向服务器发送携带参数信息的查询请求,以及根据服务器返回的查询结果确定对应APP的CPU占有率是否异常,并在APP的CPU占有率异常时,显示提示信息,由此,可以准确确定终端中每个APP的CPU占用率是否异常,并在异常时,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对终端系统的影响,提高终端系统运行的效率。The foregoing method for detecting an abnormality of the CPU usage of the APP obtains parameter information of the current running APP, and sends a query request carrying the parameter information to the server, and determines whether the CPU occupancy rate of the corresponding APP is abnormal according to the query result returned by the server, and When the CPU usage of the APP is abnormal, the prompt information is displayed. Therefore, it is possible to accurately determine whether the CPU usage of each APP in the terminal is abnormal, and when abnormal, the user can use the APP with abnormal CPU usage according to the displayed prompt information. Perform related processing to reduce the impact of the APP with abnormal CPU usage on the terminal system and improve the efficiency of the operation of the terminal system.
图2是根据本发明另一个实施例的检测APP的CPU占用率异常的方法的流程图,该实施例以服务器端进行描述,如图2所示,该方法包括:FIG. 2 is a flowchart of a method for detecting an abnormality of CPU usage of an APP according to another embodiment of the present invention. The embodiment is described by a server. As shown in FIG. 2, the method includes:
S201,接收终端发送的携带APP的参数信息的查询请求。S201. Receive a query request for carrying parameter information of the APP sent by the terminal.
其中,上述APP的参数信息可以包括APP的标识信息、运行环境和运行场景,上述标识信息用于唯一标识APP,标识信息可为当前APP的包名或者包签名信息,APP的运行环境是指当前APP所在终端的硬件环境和软件环境,APP的运行场景是指APP在一定的运行环境(与硬件环境和软件环境有关)下所完成的功能或操作,一个APP所要完成的功能或者操作越多,该APP的CPU占用率越高,例如,3D游戏的运行环境与2D游戏的运行环境相比,3D游戏的运行环境对应的CPU占用率要高,即3D要消耗更多的CPU资源。The parameter information of the APP may include an identifier of the APP, an operating environment, and an operation 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, where the operating environment of the APP refers to the current The hardware environment and software environment of the terminal where the 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). The more functions or operations that an APP has to 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, and the CPU usage of the 3D game running environment is high, that is, 3D consumes more CPU resources.
S202,根据查询请求获得查询结果。S202. Acquire a query result according to the query request.
在该实施例中,服务器可采用两种不同的方式处理查询请求,第一种方式是直接根据查询请求获得终端中对应APP的CPU占用率是否异常的查询结果,第二种方式是根据查询请求获得对应APP的CPU占用率的数值范围的查询结果,下面对两种方式的实现细节进行介绍。In this embodiment, the server can process the query request in two different manners. The first method is to obtain the query result of whether the CPU usage of the corresponding APP in the terminal is abnormal according to the query request, and the second method is based on the query request. The query result of the numerical range of the CPU usage of the APP is obtained. The implementation details of the two modes are described below.
第一种方式:服务器从查询请求中获得参数信息,并根据参数信息计算对应APP的CPU 占用率,同时根据参数信息查询本地数据库获得对应APP的CPU占用率的数值范围,然后判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于该数值范围内,则获得对应APP的CPU占用率正常的检测结果,若不位于该数值范围内,则获得对应APP的CPU占用率异常的检测结果。The first way: the server obtains the parameter information from the query request, and calculates the CPU of the corresponding APP according to the parameter information. The occupancy rate is obtained by querying the local database according to the parameter information to obtain a numerical range of the CPU usage of the corresponding APP, and then determining whether the calculated CPU usage of the APP is within the numerical range of the CPU usage of the corresponding APP. The detection result of the CPU usage of the corresponding APP is obtained. If the value is not within the value range, the detection result of the abnormal CPU usage of the APP is obtained.
具体地,在服务器计算对应APP的CPU占用率时,可计算APP在预设时间内的CPU占用率的平均值,然后判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内,因CPU占用率的平均值可以表明预设时间内的APP占用CPU的总体水平,因此,可使对APP的CPU占用率是否异常的判断更加直观和准确。Specifically, when the server calculates the CPU usage of the corresponding APP, the average value of the CPU usage of the APP in the preset time may be calculated, and then the average value of the CPU usage of the calculated APP is determined to be located in the CPU usage of the corresponding APP. The average value of the CPU usage indicates that the APP takes up the overall level of the CPU in the preset time. Therefore, the judgment of whether the CPU usage of the APP is abnormal is more intuitive and accurate.
另外,为了使可以从数据库中获得对应APP的CPU占用率的数值范围,在该实施例中,在根据参数信息查询本地数据库获得对应APP的CPU占用率的数值范围之前,还需在本地建立包含APP的标识信息、参数信息和对应的CPU占用率的数值范围的数据库,并且不同运行环境和运行场景的同一个APP的在数据库中保存的CPU占用率的数值范围是不同的。In addition, in order to obtain a numerical range of the CPU usage of the corresponding APP from the database, in this embodiment, before the local database is obtained according to the parameter information, and the value range of the CPU usage of the corresponding APP is obtained, the local content needs to be established locally. A database of the identification information of the APP, the parameter information, and the numerical range of the corresponding CPU usage, and the numerical range of the CPU usage saved in the database of the same APP of different running environments and running scenarios is different.
需要说明的是,本发明实施例中根据不同的运行环境和运行场景为每个APP设置不同的CPU占用率的数值范围是为了有效提高判断APP的CPU占用率异常的准确性,从而降低异常误报率。It should be noted that, in the embodiment of the present invention, the value range of different CPU usage is set for each APP according to different operating environments and running scenarios, so as to effectively improve the accuracy of determining the abnormal CPU usage of the APP, thereby reducing abnormal errors. Report rate.
第二种方式,服务器从查询请求中获得参数信息,根据参数信息查询本地数据库获得对应APP的CPU占用率的数值范围,并将对应APP的CPU占用率的数值范围作为检测结果。In the second mode, the server obtains the parameter information from the query request, and queries the local database according to the parameter information to obtain a numerical range of the CPU usage of the corresponding APP, and uses the value range of the CPU usage of the corresponding APP as the detection result.
S203,向终端返回查询结果,以使终端根据查询结果确定对应APP的CPU占用率是否异常。S203. The query result is returned to the terminal, so that the terminal determines whether the CPU usage of the corresponding APP is abnormal according to the query result.
在该实施例中,服务器向终端返回查询结果,终端接收服务器返回的查询结果,并根据查询结果确定对应APP的CPU占用率是否异常,具体而言,当终端接收的查询结果中携带有对应APP的CPU占用率是否异常的检测结果时,终端根据查询结果即可确定。In this embodiment, the server returns a query result to the terminal, and the terminal receives the query result returned by the server, and determines whether the CPU usage of the corresponding APP is abnormal according to the query result. Specifically, the query result received by the terminal carries the corresponding APP. When the CPU usage is abnormal, the terminal can determine the result based on the query result.
当终端接收的查询结果中携带有对应APP的CPU占用率的数值范围时,终端将判断根据参数信息计算而来的对应APP的CPU占用率是否位于从服务器接收的对应APP的CPU占用率的数值范围内,若位于该数值范围内,则确定对应APP的CPU占用率正常,若不位于该数值范围内,则确定对应APP的CPU占用率异常,例如,终端计算得出某个APP的CPU的占有率为35%,而终端从服务器返回的该APP的CPU占有率的数值范围为20%-30%,终端判断出该APP的CPU的占有率为35%没有位于该APP可以正常工作的CPU占有率的数值范围20%-30%内,由此终端可以判断出该APP的CPU占有率异常,并在终端上显示该APP的CPU占有率异常的提示信息,以使用户根据提示信息对CPU占有率存在异常的APP进行处理。When the query result received by the terminal carries the value range of the CPU usage of the APP, the terminal determines whether the CPU usage of the corresponding APP calculated according to the parameter information is located in the CPU usage rate of the corresponding APP received from the server. If the value is within the range, the CPU usage of the corresponding APP is normal. If the value is not within the range, the CPU usage of the corresponding APP is abnormal. For example, the terminal calculates the CPU of an APP. The occupancy rate is 35%, and the value of the CPU occupancy rate of the APP returned from the server ranges from 20% to 30%, and the terminal determines that the CPU occupancy rate of the APP is 35%. The CPU is not located in the APP. If the value of the occupancy is in the range of 20%-30%, the terminal can determine that the CPU occupancy of the APP is abnormal, and display the prompt information of the abnormal CPU occupancy of the APP on the terminal, so that the user can use the prompt information to the CPU. The APP with an abnormality in the occupancy rate is processed.
上述检测APP的CPU占用率异常的方法实施例,接收终端发送的携带APP的参数信息 的查询请求,并根据查询请求获得查询结果,并将查询结果返回至终端,以使终端根据查询结果可准确确定对应APP的CPU占用率是否异常,并在异常时,显示APP的CPU占用率异常的提示信息,此时,用户可根据提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对终端系统的影响,提高终端系统运行的效率。The method for detecting an abnormality of the CPU usage of the APP is as follows: receiving the parameter information of the APP sent by the terminal The query request, and obtain the query result according to the query request, and return the query result to the terminal, so that the terminal can accurately determine whether the CPU usage of the corresponding APP is abnormal according to the query result, and when the abnormality occurs, the CPU usage of the APP is abnormal. At this time, the user can perform related processing on the APP with abnormal CPU usage according to the prompt information, thereby reducing the influence of the APP with abnormal CPU usage on the terminal system, and improving the efficiency of the operation of the terminal system.
图3是根据本发明又一个实施例的检测APP的CPU占用率异常的方法的流程图,该实施例确定对应APP的CPU占用率是否异常的操作主要是由服务器来完成的,如图3所示,该方法包括:FIG. 3 is a flowchart of a method for detecting abnormal CPU usage of an APP according to another embodiment of the present invention. The operation of determining whether the CPU usage of the APP is abnormal is mainly performed by a server, as shown in FIG. 3 Show that the method includes:
S301,终端获得当前运行APP的参数信息,其中,APP的参数信息包括APP的标识信息、运行环境和运行场景。S301: The terminal obtains parameter information of the current running APP, where the parameter information of the APP includes the identification information of the APP, the running environment, and the running scenario.
具体地,终端获得当前正在运行APP的标识信息、APP所在终端的硬件环境与软件环境以及该APP的前台运行还是后台运行的相关信息。Specifically, the terminal obtains the identifier information of the currently running APP, the hardware environment and the software environment of the terminal where the APP is located, and related information of whether the foreground operation of the APP or the background operation.
S302,终端向服务器发送携带有当前正在运行APP的参数信息的查询请求。S302. The terminal sends, to the server, a query request that carries parameter information of the currently running APP.
S303,服务器接收查询请求,并从查询请求中获得对应APP的参数信息,根据参数信息计算对应APP的CPU占用率,同时根据参数信息查询本地数据库获得对应APP的CPU占用率的数值范围。S303: The server receives the query request, and obtains the parameter information of the corresponding APP from the query request, calculates the CPU usage rate of the corresponding APP according to the parameter information, and queries the local database according to the parameter information to obtain a numerical range of the CPU usage of the corresponding APP.
具体地,服务器根据参数信息计算预设时间内对应APP的CPU占用率的平均值。例如,服务器可计算APP在5分钟内的CPU占用率的平均值,由此可以获得APP预设时间内占用CPU的总体水平,进而可以更加准确地确定APP的CPU占用率是否存在异常。Specifically, the server calculates an average value of the CPU usage of the corresponding APP in the preset time according to the parameter information. For example, the server can calculate the average value of the CPU usage of the APP within 5 minutes, thereby obtaining the overall level of CPU occupation in the preset time of the APP, and thus more accurately determining whether the CPU usage of the APP is abnormal.
S304,服务器根据计算的APP的CPU占用率和对应APP的CPU占用率的数值范围获得对应APP的CPU占用率是否异常的检测结果。S304. The server obtains, according to the calculated value range of the CPU usage of the APP and the CPU usage of the corresponding APP, whether the CPU usage of the APP is abnormal.
具体地,服务器判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内,若位于该数值范围内,则获得对应APP的CPU占用率正常的检测结果,若不位于该数值范围内,则获得对应APP的CPU占用率异常的检测结果。Specifically, the server determines whether the average value of the CPU usage of the calculated APP is within a value range of the CPU usage of the corresponding APP, and if the value is within the value range, the detection result of the CPU usage of the corresponding APP is normal, if not If the value is within the range, the detection result of the abnormal CPU usage of the APP is obtained.
S305,服务器向终端返回当前正在运行APP的查询结果。S305. The server returns a query result of the currently running APP to the terminal.
具体地,服务器将对应的检测结果作为查询结果返回至终端。Specifically, the server returns the corresponding detection result as a query result to the terminal.
S306,终端接收服务器返回的查询结果,根据查询确定对应APP的CPU占用率是否异常,并在对应APP的CPU占用率异常时,显示提示信息。S306: The terminal receives the query result returned by the server, determines whether the CPU usage of the corresponding APP is abnormal according to the query, and displays the prompt information when the CPU usage of the corresponding APP is abnormal.
具体地,终端通过接收的查询结果可直接确定APP的CPU占用率是否异常,并在终端上显示APP的CPU占用率是否异常的提示信息,以使用户根据提示信息对CPU占有率异常的APP进行处理,减少CPU占用率异常的APP对终端的影响,进而可提高终端系统的运行效率。 Specifically, the terminal can directly determine whether the CPU usage of the APP is abnormal, and display the prompt information of whether the CPU usage of the APP is abnormal on the terminal, so that the user performs the APP with abnormal CPU occupancy according to the prompt information. The solution reduces the impact of the APP with abnormal CPU usage on the terminal, thereby improving the operating efficiency of the terminal system.
上述检测APP的CPU占用率异常的方法实施例,终端将包含正在运行APP参数信息的查询请求发送至服务器,服务器根据参数信息计算对应APP的CPU占用率,并根据计算的CPU占用率是和从数据库中获得对应APP的CPU占用率的数值范围生成查询结果,并将查询结果返回至终端,以使终端根据查询结果可以直接确定对应APP的CPU占用率是否异常,方便了用户了解终端中每个APP的CPU占用率的情况,并在APP的CPU占用率异常时,显示提示信息,以使用户根据提示信息对CPU占用率异常的APP进行处理,减少CPU占用率异常的APP对终端的影响,进而提高终端系统的运行效率。The method for detecting an abnormality of the CPU usage of the APP is as follows: the terminal sends a query request that includes the running APP parameter information to the server, and the server calculates the CPU usage of the corresponding APP according to the parameter information, and the CPU usage is calculated according to the calculated CPU usage rate. The value range of the CPU usage of the corresponding APP is generated in the database to generate a query result, and the query result is returned to the terminal, so that the terminal can directly determine whether the CPU usage of the corresponding APP is abnormal according to the query result, so that the user can understand each terminal in the terminal. When the CPU usage of the APP is abnormal, and the CPU usage of the APP is abnormal, the prompt information is displayed, so that the user can process the APP with abnormal CPU usage according to the prompt information, thereby reducing the impact of the APP with abnormal CPU usage on the terminal. Thereby improving the operating efficiency of the terminal system.
图4是根据本发明再一个实施例的检测APP的CPU占用率异常的方法的流程图,该实施例确定对应APP的CPU占用率是否异常的操作主要是由终端来完成的,如图4所示,该方法包括:FIG. 4 is a flowchart of a method for detecting an abnormality of CPU usage of an APP according to still another embodiment of the present invention. The operation of determining whether the CPU usage of the corresponding APP is abnormal is mainly performed by the terminal, as shown in FIG. 4 Show that the method includes:
S401,终端获得当前运行APP的参数信息,其中,APP的参数信息包括APP的标识信息、运行环境和运行场景。S401: The terminal obtains parameter information of the current running APP, where the parameter information of the APP includes the identification information of the APP, the running environment, and the running scenario.
具体地,终端获得当前正在运行APP的标识信息、APP所在终端的硬件环境与软件环境以及该APP的前台运行还是后台运行的相关信息。Specifically, the terminal obtains the identifier information of the currently running APP, the hardware environment and the software environment of the terminal where the APP is located, and related information of whether the foreground operation of the APP or the background operation.
S402,终端向服务器发送携带有当前正在运行APP的参数信息的查询请求。S402. The terminal sends, to the server, a query request that carries parameter information of the currently running APP.
具体地,在终端获得当前正在运行APP的参数信息后,在向服务器发送携带有参数信息的查询请求的同时,还可根据参数信息计算计算预设时间内该APP的CPU占用率的平均值。例如,终端可计算APP在5分钟内的CPU占用率的平均值,由此可以获得APP预设时间内占用CPU的总体水平,进而可以更加准确地确定APP的CPU占用率是否存在异常。Specifically, after the terminal obtains the parameter information of the currently running APP, the device sends the query request carrying the parameter information to the server, and calculates and calculates the average value of the CPU usage of the APP within the preset time according to the parameter information. For example, the terminal can calculate the average value of the CPU usage of the APP within 5 minutes, thereby obtaining the overall level of CPU occupation in the preset time of the APP, and thus more accurately determining whether the CPU usage of the APP is abnormal.
S403,服务器接收查询请求,并从查询请求中获得对应APP的参数信息,并根据参数信息查询本地数据库获得对应APP的CPU占用率的数值范围。S403. The server receives the query request, and obtains parameter information of the corresponding APP from the query request, and queries the local database according to the parameter information to obtain a numerical range of the CPU usage of the corresponding APP.
S404,服务器将包含对应APP的CPU占用率的数值范围的查询结果发送给终端。S404. The server sends a query result that includes a value range corresponding to the CPU usage of the APP to the terminal.
S405,终端接收服务器返回的携带对应APP的CPU占用率的数值范围的查询结果,并判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于该数值范围内,则确定对应APP的CPU占用率正常,若不位于该数值范围内,则确定对应APP的CPU占用率异常。S405: The terminal receives a query result that is returned by the server and carries a value range of the CPU usage of the corresponding APP, and determines whether the calculated CPU usage of the APP is within a value range of the CPU usage of the corresponding APP. The CPU usage of the corresponding APP is normal. If the value is not within the value range, the CPU usage of the corresponding APP is abnormal.
S406,当APP的CPU占用率异常时,在终端上显示APP的CPU占用率异常的提示信息,以使用户根据提示信息对CPU占用率异常的APP进行处理。S406: When the CPU usage of the APP is abnormal, the prompt information of the abnormal CPU usage of the APP is displayed on the terminal, so that the user processes the APP with abnormal CPU usage according to the prompt information.
上述检测APP的CPU占用率异常的方法实施例,终端获得当前正在运行APP的参数信息,并将包含参数信息的查询请求发送至服务器,服务器根据参数信息获得对应APP的CPU占用率的数值范围,并将包含对应APP的CPU占用率的数值范围的查询结果返回至终端, 终端通过判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,以确定APP的CPU占用率是否异常,并在终端上显示对应APP的CPU占用率是否异常的提示信息,由此,使得用户可根据提示信息对CPU占用率异常的APP进行处理,减少CPU占用率异常的APP对终端的影响,进而提高终端系统的运行效率。The method for detecting an abnormality of the CPU usage of the APP is as follows: the terminal obtains the parameter information of the currently running APP, and sends a query request including the parameter information to the server, and the server obtains a numerical range of the CPU usage of the corresponding APP according to the parameter information. And returning the query result including the value range of the CPU usage of the corresponding APP to the terminal, The terminal determines whether the CPU usage of the APP is within the value range of the CPU usage of the APP, and determines whether the CPU usage of the APP is abnormal, and displays, on the terminal, whether the CPU usage of the APP is abnormal. Therefore, the user can process the APP with abnormal CPU usage according to the prompt information, thereby reducing the impact of the APP with abnormal CPU usage on the terminal, thereby improving the operating efficiency of the terminal system.
为了实现上述实施例,本发明还提出一种检测APP的CPU占用率异常的装置。In order to implement the above embodiments, the present invention also provides an apparatus for detecting an abnormal CPU usage of an APP.
图5是根据本发明一个实施例的检测APP的CPU占用率异常的装置。该检测APP的CPU占用率异常的装置位于终端中,如图5所示,该装置包括:获得模块51、确定模块52和显示模块53,其中:FIG. 5 is a diagram of detecting an abnormality of CPU usage of an APP according to an embodiment of the present invention. The device for detecting abnormal CPU usage of the APP is located in the terminal. As shown in FIG. 5, the device includes: an obtaining module 51, a determining module 52, and a display module 53, wherein:
获得模块51用于获得当前运行APP的参数信息,并向服务器发送携带上述参数信息的查询请求,以使上述服务器根据上述查询请求获得查询结果;以及确定模块52用于接收上述服务器返回的上述查询结果,并根据上述查询结果确定对应APP的CPU占用率是否异常;以及显示模块83用于在对应APP的CPU占用率异常时,显示提示信息。The obtaining module 51 is configured to obtain parameter information of the currently running APP, and send a query request carrying the parameter information to the server, so that the server obtains the query result according to the query request; and the determining module 52 is configured to receive the query returned by the server. As a result, it is determined whether the CPU usage of the corresponding APP is abnormal according to the query result, and the display module 83 is configured to display the prompt information when the CPU usage of the corresponding APP is abnormal.
其中,上述APP的参数信息可以包括但不限于APP的标识信息、运行环境和运行场景,上述标识信息用于唯一标识APP,该标识信息可为当前APP的包名或者包签名信息,APP的运行环境是指获得当前APP所在移动终端的硬件环境和软件环境,APP的运行场景是指当前APP所在终端的前台场景或者后台场景。The parameter information of the APP may include, but is not limited to, the identifier information of the APP, 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 packet signature information of the current APP, and the running of the APP. The environment refers to the hardware environment and the software environment of the mobile terminal where the current APP is located. The running scenario of the APP refers to the foreground scene or the background scene of the terminal where the current APP is located.
上述确定模块52从服务器接收的查询结果可以为对应APP的CPU占用率是否异常的检测结果,也可以为对应应APP的CPU占用率的数值范围,当上述查询结果为对应APP的CPU占用率是否异常的检测结果时,上述检测结果为上述服务器根据上述参数信息计算对应APP的CPU占用率,并根据计算的对应APP的CPU占用率是否位于从本地数据库中获取的对应APP的CPU占用率的数值范围内而获得的。The result of the query received by the determining module 52 from the server may be a detection result of whether the CPU usage of the APP is abnormal, or may be a value range corresponding to the CPU usage of the APP. When the query result is the CPU usage of the corresponding APP. The abnormal detection result is that the server calculates the CPU usage of the corresponding APP according to the parameter information, and determines whether the CPU usage of the corresponding APP is located in the CPU usage of the corresponding APP obtained from the local database. Obtained within the scope.
当上述查询结果为对应APP的CPU占用率的数值范围时,上述确定模块52,具体用于:计算APP的CPU占用率,并判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于,则确定对应APP的CPU占用率正常,若不位于,则确定对应APP的CPU占用率异常。其中,上述APP的CPU占用率的数值范围为上述服务器根据对应APP的参数信息查询本地数据库获得的,上述数据库中保存保存有APP的标识信息、参数信息和对应的CPU占用率的数值范围,并且不同运行环境和运行场景的同一个APP的CPU占用率的数值范围是不同的,例如,APP为一款游戏,该游戏处于后台运行时,CPU占用率的数值范围为20%-30%,当该游戏处于前台运行时,该游戏对应的CPU占用率的数值范围为40%-50%。When the result of the query is a value range of the CPU usage of the APP, the determining module 52 is specifically configured to: calculate the CPU usage of the APP, and determine whether the CPU usage of the calculated APP is located in the CPU usage of the corresponding APP. If the value is within the range, the CPU usage of the corresponding APP is normal. If not, the CPU usage of the corresponding APP is abnormal. The value range of the CPU usage of the APP is obtained by the server querying the local database according to the parameter information of the corresponding APP, and the value range of the identifier information, the parameter information, and the corresponding CPU usage of the APP is saved in the database, and The value range of the CPU usage of the same APP in different running environments and running scenarios is different. For example, the APP is a game. When the game is running in the background, the CPU usage ranges from 20% to 30%. When the game is running in the foreground, the CPU usage of the game ranges from 40% to 50%.
具体地,上述确定模块52可计算预设时间内对应APP的CPU占用率的平均值,计算 APP的CPU占用率的平均值,并判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内。Specifically, the determining module 52 may calculate an average value of the CPU usage of the corresponding APP in a preset time, and calculate The average value of the CPU usage of the APP, and whether the average value of the calculated CPU usage of the APP is within the value range of the CPU usage of the corresponding APP.
包含获得模块51、确定模块52和显示模块53的检测APP的CPU占用率异常的装置检测APP的CPU占用率异常的过程可参见图1、图3或者图4,此处不赘述。The process of detecting the abnormal CPU usage of the APP by the device that obtains the abnormality of the CPU of the detection module of the obtaining module 51, the determining module 52, and the display module 53 can be referred to FIG. 1, FIG. 3 or FIG. 4, and details are not described herein.
上述检测APP的CPU占用率异常的装置实施例,通过获得模块获得当前运行APP的参数信息,并向服务器发送携带参数信息的查询请求,确定模块根据服务器返回的查询结果确定对应APP的CPU占有率是否异常,以及显示模块在APP的CPU占有率是否异常时,显示提示信息,由此,可以准确确定终端中每个APP的CPU占用率是否异常,并在异常时,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对终端系统的影响,提高终端系统运行的效率。The device for detecting abnormal CPU usage of the APP is configured to obtain parameter information of the currently running APP by obtaining the module, and send a query request carrying the parameter information to the server, and the determining module determines the CPU occupation rate of the corresponding APP according to the query result returned by the server. If the abnormality is displayed, and the display module displays the prompt information when the CPU occupancy of the APP is abnormal, the CPU usage of each APP in the terminal is abnormally determined, and when the abnormality occurs, the user can display the prompt information according to the display. The APP with abnormal CPU usage is processed to reduce the impact of the APP with abnormal CPU usage on the terminal system and improve the efficiency of the terminal system.
为了实现上述实施例,本发明还提出一种检测APP的CPU占用率异常的装置。In order to implement the above embodiments, the present invention also provides an apparatus for detecting an abnormal CPU usage of an APP.
图6是根据本发明另一个实施例的检测APP的CPU占用率异常的装置。该检测APP的CPU占用率异常的装置位于服务器中,如图6所示,该装置包括接收模块61、获得模块62和返回模块63,其中:FIG. 6 is a diagram of an apparatus for detecting an abnormality of CPU usage of an APP according to another embodiment of the present invention. The device for detecting abnormal CPU usage of the APP is located in the server. As shown in FIG. 6, the device includes a receiving module 61, an obtaining module 62, and a returning module 63, where:
接收模块61用于接收终端发送的携带APP的参数信息的查询请求;获得模块62用于根据上述查询请求获得查询结果;以及返以使上述终端根据上述查询结果确定对应APP的CPU占用率是否异常。回模块63用于向上述终端返回上述查询结果,The receiving module 61 is configured to receive a query request for the parameter information of the APP that is sent by the terminal, where the obtaining module 62 is configured to obtain the query result according to the query request, and to enable the terminal to determine whether the CPU usage of the corresponding APP is abnormal according to the query result. . The returning module 63 is configured to return the foregoing query result to the terminal.
其中,上述APP的参数信息可以包括但不限于APP的标识信息、运行环境和运行场景,上述标识信息用于唯一标识APP,该标识信息可为当前APP的包名或者包签名信息,APP的运行环境是指获得当前APP所在移动终端的硬件环境和软件环境,APP的运行场景是指当前APP所在终端的前台场景或者后台场景。The parameter information of the APP may include, but is not limited to, the identifier information of the APP, 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 packet signature information of the current APP, and the running of the APP. The environment refers to the hardware environment and the software environment of the mobile terminal where the current APP is located. The running scenario of the APP refers to the foreground scene or the background scene of the terminal where the current APP is located.
上述获得模块62可以包括:第一获得单元621和判断单元622,其中,第一获得单元621用于从上述查询请求中获得上述参数信息,并根据上述参数信息计算对应APP的CPU占用率,同时根据上述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围;判断单元622用于判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于,则获得对应APP的CPU占用率正常的检测结果,若不位于,则获得对应APP的CPU占用率异常的检测结果。The obtaining module 62 may include: a first obtaining unit 621 and a determining unit 622, wherein the first obtaining unit 621 is configured to obtain the parameter information from the query request, and calculate a CPU usage of the corresponding APP according to the parameter information, and simultaneously Querying the local database according to the parameter information to obtain a numerical value range of the CPU usage of the corresponding APP; the determining unit 622 is configured to determine whether the CPU usage of the calculated APP is within a numerical range of the CPU usage of the corresponding APP, and if located, obtain a corresponding If the CPU usage of the APP is normal, the detection result of the abnormal CPU usage of the APP is obtained.
具体而言,上述第一获得单元621具体用于:根据上述参数信息计算对应APP的CPU占用率的平均值;上述判断单元622具体用于:判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内。Specifically, the first obtaining unit 621 is specifically configured to: calculate an average value of the CPU usage of the corresponding APP according to the parameter information; and the determining unit 622 is specifically configured to: determine whether the average value of the CPU usage of the calculated APP is located. Corresponds to the value range of the CPU usage of the APP.
另外,上述获得模块62还可以包括第二获得单元623,该第二获得单元623用于从上述 查询请求中获得上述参数信息,根据上述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围,并将对应APP的CPU占用率的数值范围作为上述检测结果。In addition, the above obtaining module 62 may further include a second obtaining unit 623 for using the above The parameter information is obtained in the query request, and the local database is obtained according to the parameter information to obtain a numerical range of the CPU usage of the corresponding APP, and the value range of the CPU usage of the corresponding APP is used as the detection result.
在获得模块62获得对应APP的CPU占用率是否为异常或者CPU占用率的数值范围的检测结果后,当返回模块63将对应APP的CPU占用率是否为异常述检测结果作为查询结果返回至终端,终端接收服务器返回的查询结果,并根据查询结果直接确定出对应APP的CPU占用率是否为异常,并在对应APP的CPU占用率异常时,在终端上显示对应APP的CPU占用率异常的提示信息,用户将根据提示信息对CPU占用率异常的APP进行处理,减少CPU占用率异常的APP对终端系统的影响,提高终端系统的稳定性。After the obtaining module 62 obtains the detection result of whether the CPU usage of the APP is abnormal or the value range of the CPU usage, the returning module 63 returns the CPU usage of the corresponding APP to the terminal as the query result. The terminal receives the query result returned by the server, and directly determines whether the CPU usage of the corresponding APP is abnormal according to the query result, and displays the prompt information of the abnormal CPU usage of the APP on the terminal when the CPU usage of the corresponding APP is abnormal. The user will process the APP with abnormal CPU usage according to the prompt information, reduce the impact of the APP with abnormal CPU usage on the terminal system, and improve the stability of the terminal system.
当返回模块63将对应APP的CPU占用率的数值范围返回终端,终端判断计算的对应APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内,若位于,则若位于,则确定对应APP的CPU占用率正常,若不位于,则确定对应APP的CPU占用率异常,并在确定对应APP的CPU占用率异常时,显示对应APP的CPU占用率异常的提示信息,以使用户可根据提示信息对CPU占用率异常的APP进行处理。When the returning module 63 returns the value range of the CPU usage of the corresponding APP to the terminal, the terminal determines whether the calculated average value of the CPU usage of the corresponding APP is within the value range of the CPU usage of the corresponding APP, and if located, if it is located, If the CPU usage of the corresponding APP is abnormal, if the CPU usage of the corresponding APP is abnormal, and the CPU usage of the corresponding APP is abnormal, the information about the abnormal CPU usage of the APP is displayed. The user can process the APP with abnormal CPU usage according to the prompt information.
另外,上述装置还可以包括建立模块64,该建立模块64用于在上述获得模块62根据上述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围之前,在本地建立上述数据库,其中,上述数据库中保存有APP的标识信息、参数信息和对应的CPU占用率的数值范围,并且不同运行环境和运行场景的同一个APP的在数据库中保存的CPU占用率的数值范围是不同的。In addition, the foregoing apparatus may further include an establishing module 64, where the establishing module 64 is configured to locally establish the foregoing database before the obtaining module 62 queries the local database according to the parameter information to obtain a numerical value range of the CPU usage of the corresponding APP. The value range of the identification information, the parameter information, and the corresponding CPU usage of the APP is stored in the database, and the value range of the CPU usage saved in the database of the same APP in different running environments and running scenarios is different.
包括接收模块61、获得模块62和返回模块63的检测APP的CPU占用率异常的装置检测APP的CPU占用率异常的过程可参见图2、图3或者图4,此处不赘述。The process of detecting the abnormal CPU usage of the APP by the device that detects the abnormal CPU usage of the APP of the receiving module 61, the obtaining module 62, and the returning module 63 can be referred to FIG. 2, FIG. 3 or FIG. 4, and details are not described herein.
上述检测APP的CPU占用率异常的装置实施例,通过接收模块接收终端发送的携带APP的参数信息的查询请求,获得模块根据参数信息获得查询结果,以及返回模块63将查询结果返回给终端,以使终端根据查询结果确定对应APP的CPU占用率是否异常,并在终端确定对应APP的CPU占用率异常是,显示对应APP的CPU占用率异常的提示信息,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对终端系统的影响,提高终端系统运行的效率。The apparatus for detecting abnormal CPU usage of the APP is configured to receive a query request for carrying the parameter information of the APP sent by the terminal, the obtaining module obtains the query result according to the parameter information, and the returning module 63 returns the query result to the terminal, The terminal determines whether the CPU usage of the corresponding APP is abnormal according to the query result, and determines that the CPU usage of the corresponding APP is abnormal, and displays the prompt information that the CPU usage of the corresponding APP is abnormal, and the user can occupy the CPU according to the displayed prompt information. The APP with abnormal rate performs related processing to reduce the impact of the APP with abnormal CPU usage on the terminal system and improve the efficiency of the operation of the terminal system.
为了实现上述实施例,本发明还提出一种移动终端,该移动终端包括壳体、处理器、存储器、电路板和电源电路,其中,上述电路板安置在上述壳体围成的空间内部,上述处理器和上述存储器设置在上述电路板上;上述电源电路,用于为上述移动终端的各个电路或器件供电;上述存储器用于存储可执行程序代码;上述处理器通过读取上述存储器中存储的可执行程序代码来运行与上述可执行程序代码对应的程序,以用于执行以下步骤:In order to achieve the above embodiment, 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:
S101’,获得当前运行APP的参数信息,并向服务器发送携带参数信息的查询请求, 以使服务器根据查询请求获得查询结果。S101', obtaining parameter information of the currently running APP, and sending a query request carrying the parameter information to the server, So that the server can get the query result according to the query request.
其中,上述APP的参数信息可以包括但不限于APP的标识信息、运行环境和运行场景,上述标识信息用于唯一标识APP,该标识信息可为当前APP的包名或者包签名信息,APP的运行环境是指当前APP所在移动终端的硬件环境和软件环境,APP的运行环境是指当前APP所在移动终端的硬件环境和软件环境,APP的运行场景是指APP在一定的运行环境(与硬件环境和软件环境有关)下所完成的功能或操作,例如,下载、上传、前台运行还是后台运行等,一个APP所要完成的功能或者操作越多,该APP的CPU占用率越高,例如,3D游戏的运行环境与2D游戏的运行环境相比,3D游戏的运行环境对应的CPU占用率更高,即3D游戏要消耗更多的CPU资源。The parameter information of the APP may include, but is not limited to, the identifier information of the APP, 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 packet signature information of the current APP, and the running of the APP. The environment refers to the hardware environment and software environment of the mobile terminal where the APP is located. The running environment of the APP refers to the hardware environment and software environment of the mobile terminal where the APP is located. The running scenario of the APP refers to the operating environment of the APP (with the hardware environment and The software environment is related to the functions or operations performed, such as downloading, uploading, foreground running, or background running. The more functions or operations an APP has to complete, the higher the CPU usage of the APP, for example, the 3D game. Compared with the running environment of 2D games, the operating environment of the 3D game corresponds to a higher CPU usage, that is, the 3D game consumes more CPU resources.
S102’,接收服务器返回的查询结果,并根据查询结果确定对应APP的CPU占用率是否异常。S102', receiving a query result returned by the server, and determining, according to the query result, whether the CPU usage of the corresponding APP is abnormal.
在该实施例中,可通过两种方式确定APP的占用率是否异常,第一种方式主要由服务器来确定APP的占用率是否异常,移动终端通过接收服务器返回的查询结果,即可确定APP的占用率是否异常;第二种方式主要由处理器根据服务器返回的包含APP的CPU占用率的数值范围的查询结果来确定APP的占用率是否异常,下面将分别对这两种方式的实现细节进行描述。In this embodiment, whether the occupancy rate of the APP is abnormal is determined in two ways. The first mode is mainly determined by the server whether the occupancy rate of the APP is abnormal, and the mobile terminal can determine the APP by receiving the query result returned by the server. Whether the occupancy rate is abnormal or not; the second method mainly determines whether the occupancy rate of the APP is abnormal according to the query result of the value range of the CPU usage rate of the APP returned by the server, and the implementation details of the two modes are respectively performed below. description.
第一种方式:移动终端将包含参数信息的查询请求发送给服务器,服务器接收移动终端发送的携带APP的参数信息的查询请求,并根据查询请求计算对应APP的CPU占用率,以及判断计算的APP的CPU占用率是否位于根据查询请求中的参数信息从数据库中获取的对应APP的CPU占用率的数值范围内,若位于对应的数值范围内,则获得对应APP的CPU占用率正常的检测结果,若不位于对应的数值范围内,则获得对应APP的CPU占用率异常的检测结果,以及将获得的检测结果作为查询结果返回至移动终端,移动终端通过接收的检测结果即可直接判断出APP的占有率是否异常。The first method is: the mobile terminal sends a query request including the parameter information to the server, and the server receives the query request of the parameter information of the APP sent by the mobile terminal, and calculates the CPU usage rate of the corresponding APP according to the query request, and determines the calculated APP. If the CPU usage is within the range of the CPU usage of the corresponding APP obtained from the database according to the parameter information in the query request, if it is within the corresponding numerical range, the detection result of the normal CPU usage of the APP is obtained. If the value is not within the corresponding value range, the detection result of the abnormal CPU usage of the APP is obtained, and the obtained detection result is returned to the mobile terminal as the query result, and the mobile terminal can directly determine the APP by receiving the detection result. Whether the occupancy rate is abnormal.
应当理解的是,上述数据库中保存有APP的标识信息、参数信息和对应的CPU占用率的数值范围,并且不同运行环境和运行场景的同一个APP的CPU占用率的数值范围是不同的,例如,APP为一款游戏,该游戏处于后台运行时,CPU占用率的数值范围为20%-30%,当该游戏处于前台运行时,该游戏对应的CPU占用率的数值范围为40%-50%。It should be understood that the above database contains the value range of the identification information, the parameter information, and the corresponding CPU usage of the APP, and the numerical ranges of the CPU usage of the same APP in different running environments and running scenarios are different, for example, APP is a game. When the game is running in the background, the CPU usage value ranges from 20% to 30%. When the game is in the foreground, the CPU usage of the game ranges from 40% to 50%. %.
具体地,在服务器计算对应APP的CPU占用率时,可计算APP在预设时间内的CPU占用率的平均值,然后判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内,因CPU占用率的平均值可以表明预设时间内的APP占用CPU的总体水平,因此,可使对APP的CPU占用率是否异常的判断更加直观和准确。 Specifically, when the server calculates the CPU usage of the corresponding APP, the average value of the CPU usage of the APP in the preset time may be calculated, and then the average value of the CPU usage of the calculated APP is determined to be located in the CPU usage of the corresponding APP. The average value of the CPU usage indicates that the APP takes up the overall level of the CPU in the preset time. Therefore, the judgment of whether the CPU usage of the APP is abnormal is more intuitive and accurate.
第二种方式:移动终端将包含参数信息的查询请求发送给服务器,服务器接收移动终端发送的携带APP的参数信息的查询请求,并根据参数信息查询本地数据库获得对应APP的CPU占用率的数值范围,并将对应APP的CPU占用率的数值范围作为查询结果返回至移动终端,移动终端接收服务器返回的包含对应APP的CPU占用率的数值范围的检测结果,并根据计算APP的CPU占用率,并判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于,则确定对应APP的CPU占用率正常,若不位于,则确定对应APP的CPU占用率异常。The second method: the mobile terminal sends a query request containing the parameter information to the server, and the server receives the query request of the parameter information of the APP sent by the mobile terminal, and queries the local database according to the parameter information to obtain a numerical value range of the CPU usage of the corresponding APP. And returning the value range of the CPU usage of the corresponding APP as a query result to the mobile terminal, and the mobile terminal receives the detection result of the value range of the CPU usage rate of the corresponding APP returned by the server, and calculates the CPU usage rate of the APP according to the calculation result, and The CPU usage of the corresponding APP is determined to be within the range of the CPU usage of the corresponding APP. If it is located, it is determined that the CPU usage of the corresponding APP is normal. If not, the CPU usage of the corresponding APP is abnormal.
同样地,在移动终端计算对应APP的CPU占用率时,也可计算APP在预设时间内的CPU占用率的平均值,然后判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内。例如,移动终端计算得出某个APP在预设时间例如5分钟内的CPU的占有率的平均值为35%,而移动终端从服务器返回的该APP的CPU占有率的数值范围为20%-30%,则移动终端判断出该APP的CPU的占有率的平均值没有位于该APP可以正常工作的CPU占有率的数值范围内,由此移动终端可以判断出该APP的CPU占有率异常。Similarly, when the mobile terminal calculates the CPU usage of the corresponding APP, the average value of the CPU usage of the APP in the preset time may also be calculated, and then it is determined whether the average value of the calculated CPU usage of the APP is located in the CPU of the corresponding APP. The value of the occupancy range. For example, the mobile terminal calculates that the average value of the CPU occupancy rate of a certain APP in a preset time, for example, 5 minutes is 35%, and the value of the CPU occupancy rate of the APP returned by the mobile terminal from the server is 20% - 30%, the mobile terminal determines that the average value of the CPU occupancy rate of the APP is not within the numerical range of the CPU occupancy rate at which the APP can work normally, and thus the mobile terminal can determine that the CPU occupancy rate of the APP is abnormal.
S103’,在对应APP的CPU占用率异常时,显示提示信息。S103', when the CPU usage of the corresponding APP is abnormal, the prompt information is displayed.
具体地,在移动终端根据返回的查询结果确定对应APP的CPU占用率异常时,移动终端上显示对应APP的CPU占用率异常的提示信息,此时,用户可根据提示信息对CPU占用率异常的APP进行相关处理,由此,可减少CPU占用率异常的APP对移动终端系统的影响,提高移动终端系统运行的效率。Specifically, when the mobile terminal determines that the CPU usage of the corresponding APP is abnormal according to the returned query result, the mobile terminal displays the prompt information of the abnormal CPU usage of the APP, and the user may use the prompt information to abnormally occupy the CPU. The APP performs related processing, thereby reducing the impact of the APP with abnormal CPU usage on the mobile terminal system, and improving the efficiency of the operation of the mobile terminal system.
上述移动终端实施例,获得当前运行APP的参数信息,并向服务器发送携带参数信息的查询请求,以及根据服务器返回的查询结果确定对应APP的CPU占有率是否异常,并在APP的CPU占有率异常时,显示提示信息,由此,可以准确确定终端中每个APP的CPU占用率是否异常,并在异常时,用户可根据显示的提示信息对CPU占用率异常的APP进行相关处理,减少CPU占用率异常的APP对移动终端系统的影响,提高移动终端系统运行的效率。The mobile terminal embodiment obtains the parameter information of the current running APP, and sends a query request carrying the parameter information to the server, and determines whether the CPU occupancy rate of the corresponding APP is abnormal according to the query result returned by the server, and the CPU occupation rate of the APP is abnormal. When the prompt information is displayed, it is possible to accurately determine whether the CPU usage of each APP in the terminal is abnormal, and when the abnormality occurs, the user can perform related processing on the APP with abnormal CPU usage according to the displayed prompt information, thereby reducing CPU usage. The impact of an abnormal APP on the mobile terminal system improves the efficiency of the operation of the mobile terminal system.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" and the like means a specific feature described in connection with the embodiment or example. A structure, material or feature is included in at least one embodiment or example of the invention. In the present specification, the schematic representation of the above terms is not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, various embodiments or examples described in the specification, as well as features of various embodiments or examples, may be combined and combined.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者 隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。Moreover, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or Implicitly indicates the number of technical features indicated. Thus, features defining "first" or "second" may include at least one of the features, either explicitly or implicitly. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless specifically defined otherwise.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a particular logical function or process. And the scope of the preferred embodiments of the invention includes additional implementations, in which the functions may be performed in a substantially simultaneous manner or in an opposite order depending on the functions involved, in the order shown or discussed. It will be understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer readable medium, Used in conjunction with, or in conjunction with, an instruction execution system, apparatus, or device (eg, a computer-based system, a system including a processor, or other system that can fetch instructions and execute instructions from an instruction execution system, apparatus, or device) Or use with equipment. For the purposes of this specification, 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. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) having one or more wires, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM). In addition, 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.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that portions of the invention may be implemented in hardware, software, firmware or a combination thereof. In the above-described embodiments, multiple steps or methods may be implemented in software or firmware stored in a memory and executed by 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.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art can understand that all or part of the steps carried by the method of implementing the above embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功 能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, 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 module if the software works When the module is implemented in the form of a module and sold or used as a stand-alone product, it can 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. Although the embodiments of the present invention have been shown and described, it is understood that the above-described embodiments are illustrative and are not to be construed as limiting the scope of the invention. The embodiments are subject to variations, modifications, substitutions and variations.

Claims (29)

  1. 一种检测APP的CPU占用率异常的方法,其特征在于,包括:A method for detecting an abnormal CPU usage of an APP, comprising:
    获得当前运行APP的参数信息,并向服务器发送携带所述参数信息的查询请求,以使所述服务器根据所述查询请求获得查询结果;Obtaining parameter information of the current running APP, and sending a query request carrying the parameter information to the server, so that the server obtains the query result according to the query request;
    接收所述服务器返回的所述查询结果,并根据所述查询结果确定对应APP的CPU占用率是否异常;以及Receiving the query result returned by the server, and determining, according to the query result, whether the CPU usage of the corresponding APP is abnormal;
    当对应APP的CPU占用率异常时,显示提示信息。When the CPU usage of the corresponding APP is abnormal, a prompt message is displayed.
  2. 根据权利要求1所述的方法,其特征在于,所述APP的参数信息包括所述APP的标识信息、运行环境和运行场景。The method according to claim 1, wherein the parameter information of the APP comprises identification information of the APP, an operating environment, and an operating scenario.
  3. 根据权利要求1或2所述的方法,其特征在于,所述查询结果包括对应APP的CPU占用率是否异常的检测结果或者对应APP的CPU占用率的数值范围。The method according to claim 1 or 2, wherein the query result includes a detection result of whether the CPU usage of the APP is abnormal or a numerical range of the CPU usage of the corresponding APP.
  4. 根据权利要求3所述的方法,其特征在于,当所述查询结果为对应APP的CPU占用率是否异常的检测结果时,所述检测结果为所述服务器根据所述参数信息计算对应APP的CPU占用率,并根据计算的对应APP的CPU占用率是否位于从本地数据库中获取的对应APP的CPU占用率的数值范围内而获得的。The method according to claim 3, wherein when the result of the query is a detection result of whether the CPU usage of the APP is abnormal, the detection result is that the server calculates a CPU corresponding to the APP according to the parameter information. The occupancy rate is obtained according to whether the calculated CPU usage of the corresponding APP is within a numerical range of the CPU usage of the corresponding APP obtained from the local database.
  5. 根据权利要求3所述的方法,其特征在于,当所述查询结果为对应APP的CPU占用率的数值范围时,所述根据所述查询结果确定对应APP的CPU占用率是否异常,包括:The method according to claim 3, wherein when the query result is a value range of the CPU usage of the APP, the determining whether the CPU usage of the corresponding APP is abnormal according to the query result includes:
    计算APP的CPU占用率,并判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于,则确定对应APP的CPU占用率正常,若不位于,则确定对应APP的CPU占用率异常。Calculating the CPU usage of the APP, and determining whether the calculated CPU usage of the APP is within the value range of the CPU usage of the corresponding APP. If located, determining that the CPU usage of the corresponding APP is normal. If not, determining the corresponding APP. The CPU usage is abnormal.
  6. 根据权利要求5所述的方法,其特征在于,所述APP的CPU占用率的数值范围为所述服务器根据对应APP的参数信息查询本地数据库获得的。The method according to claim 5, wherein the value range of the CPU usage of the APP is obtained by the server querying the local database according to the parameter information of the corresponding APP.
  7. 根据权利要求4或6所述的方法,其特征在于,所述数据库中保存有APP的标识信息、参数信息和对应的CPU占用率的数值范围。The method according to claim 4 or 6, wherein the database stores identification information of the APP, parameter information, and a numerical range of the corresponding CPU usage.
  8. 根据权利要求5所述的方法,其特征在于,所述计算APP的CPU占用率,并判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,包括:The method according to claim 5, wherein the calculating the CPU usage of the APP, and determining whether the calculated CPU usage of the APP is within a numerical range of the CPU usage of the corresponding APP, including:
    计算APP的CPU占用率的平均值,并判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内。The average value of the CPU usage of the APP is calculated, and it is determined whether the average value of the CPU usage of the calculated APP is within the value range of the CPU usage of the corresponding APP.
  9. 一种检测APP的CPU占用率异常的方法,其特征在于,包括:A method for detecting an abnormal CPU usage of an APP, comprising:
    接收终端发送的携带APP的参数信息的查询请求;Receiving a query request for carrying parameter information of the APP sent by the terminal;
    根据所述查询请求获得查询结果;以及 Obtaining a query result according to the query request;
    向所述终端返回所述查询结果,以使所述终端根据所述查询结果确定对应APP的CPU占用率是否异常。Returning the query result to the terminal, so that the terminal determines whether the CPU usage of the corresponding APP is abnormal according to the query result.
  10. 根据权利要求9所述的方法,其特征在于,所述APP的参数信息包括所述APP的标识信息、运行环境和运行场景。The method according to claim 9, wherein the parameter information of the APP includes identification information, an operating environment, and an operation scenario of the APP.
  11. 根据权利要求9或10所述的方法,其特征在于,所述根据所述查询请求获得查询结果,包括:The method according to claim 9 or 10, wherein the obtaining the query result according to the query request comprises:
    从所述查询请求中获得所述参数信息,并根据所述参数信息计算对应APP的CPU占用率,同时根据所述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围;Obtaining the parameter information from the query request, and calculating a CPU usage rate of the corresponding APP according to the parameter information, and querying the local database according to the parameter information to obtain a numerical value range of the CPU usage of the corresponding APP;
    判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于,则获得对应APP的CPU占用率正常的检测结果,若不位于,则获得对应APP的CPU占用率异常的检测结果。The CPU usage of the APP is determined to be within the range of the CPU usage of the corresponding APP. If it is located, the CPU usage of the corresponding APP is normal. If not, the CPU usage of the corresponding APP is abnormal. Test results.
  12. 根据权利要求10所述的方法,其特征在于,所述根据所述查询请求获得查询结果,包括:The method according to claim 10, wherein the obtaining the query result according to the query request comprises:
    从所述查询请求中获得所述参数信息,根据所述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围,并将对应APP的CPU占用率的数值范围作为所述检测结果。Obtaining the parameter information from the query request, querying the local database according to the parameter information to obtain a numerical range of the CPU usage of the corresponding APP, and using the value range of the CPU usage of the corresponding APP as the detection result.
  13. 根据权利要求11所述的方法,其特征在于,所述根据所述参数信息计算对应APP的CPU占用率,包括:根据所述参数信息计算对应APP的CPU占用率的平均值;The method according to claim 11, wherein the calculating the CPU usage of the corresponding APP according to the parameter information comprises: calculating an average value of the CPU usage of the corresponding APP according to the parameter information;
    所述判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,包括:The determining whether the calculated CPU usage of the APP is within a value range of the CPU usage of the corresponding APP includes:
    判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内。It is determined whether the average value of the CPU usage of the calculated APP is within a value range of the CPU usage of the corresponding APP.
  14. 根据权利要求11或12所述的方法,其特征在于,在所述根据所述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围之前,还包括:The method according to claim 11 or 12, further comprising: before the querying the local database according to the parameter information to obtain a numerical value range of the CPU usage of the corresponding APP, the method further comprising:
    在本地建立所述数据库,其中,所述数据库中保存有APP的标识信息、参数信息和对应的CPU占用率的数值范围。The database is established locally, wherein the database stores identifier information of the APP, parameter information, and a numerical range of the corresponding CPU usage.
  15. 一种检测APP的CPU占用率异常的装置,其特征在于,包括:An apparatus for detecting abnormal CPU usage of an APP, comprising:
    获得模块,用于获得当前运行APP的参数信息,并向服务器发送携带所述参数信息的查询请求,以使所述服务器根据所述查询请求获得查询结果;Obtaining a module, configured to obtain parameter information of the currently running APP, and send a query request carrying the parameter information to the server, so that the server obtains the query result according to the query request;
    确定模块,用于接收所述服务器返回的所述查询结果,并根据所述查询结果确定对应APP的CPU占用率是否异常;以及a determining module, configured to receive the query result returned by the server, and determine, according to the query result, whether the CPU usage of the corresponding APP is abnormal;
    显示模块,用于当对应APP的CPU占用率异常时,显示提示信息。The display module is configured to display a prompt message when the CPU usage of the corresponding APP is abnormal.
  16. 根据权利要求15所述的装置,其特征在于,所述APP的参数信息包括所述APP的 标识信息、运行环境和运行场景。The apparatus according to claim 15, wherein parameter information of said APP includes said APP Identification information, operating environment, and running scenarios.
  17. 根据权利要求15或16所述的装置,其特征在于,所述查询结果包括对应APP的CPU占用率是否异常的检测结果或者对应APP的CPU占用率的数值范围。The device according to claim 15 or 16, wherein the query result includes a detection result of whether the CPU usage of the APP is abnormal or a value range of the CPU usage of the corresponding APP.
  18. 根据权利要求17所述的装置,其特征在于,当所述查询结果为对应APP的CPU占用率是否异常的检测结果时,所述检测结果为所述服务器根据所述参数信息计算对应APP的CPU占用率,并根据计算的对应APP的CPU占用率是否位于从本地数据库中获取的对应APP的CPU占用率的数值范围内而获得的。The device according to claim 17, wherein when the query result is a detection result of whether the CPU usage of the APP is abnormal, the detection result is that the server calculates a CPU corresponding to the APP according to the parameter information. The occupancy rate is obtained according to whether the calculated CPU usage of the corresponding APP is within a numerical range of the CPU usage of the corresponding APP obtained from the local database.
  19. 根据权利要求17所述的装置,其特征在于,当所述查询结果为对应APP的CPU占用率的数值范围时,所述确定模块,具体用于:The device according to claim 17, wherein the determining module is specifically configured to: when the query result is a numerical range of the CPU usage of the APP;
    计算APP的CPU占用率,并判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于,则确定对应APP的CPU占用率正常,若不位于,则确定对应APP的CPU占用率异常。Calculating the CPU usage of the APP, and determining whether the calculated CPU usage of the APP is within the value range of the CPU usage of the corresponding APP. If located, determining that the CPU usage of the corresponding APP is normal. If not, determining the corresponding APP. The CPU usage is abnormal.
  20. 根据权利要求19所述的装置,其特征在于,所述APP的CPU占用率的数值范围为所述服务器根据对应APP的参数信息查询本地数据库获得的。The device according to claim 19, wherein the value range of the CPU usage of the APP is obtained by the server querying the local database according to the parameter information of the corresponding APP.
  21. 根据权利要求18或20所述的装置,其特征在于,所述数据库中保存有APP的标识信息、参数信息和对应的CPU占用率的数值范围。The device according to claim 18 or 20, wherein the database stores identification information of the APP, parameter information, and a numerical range of the corresponding CPU usage.
  22. 根据权利要求19所述的装置,其特征在于,所述确定模块,具体用于:The device according to claim 19, wherein the determining module is specifically configured to:
    计算APP的CPU占用率的平均值,并判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内。The average value of the CPU usage of the APP is calculated, and it is determined whether the average value of the CPU usage of the calculated APP is within the value range of the CPU usage of the corresponding APP.
  23. 一种检测APP的CPU占用率异常的装置,其特征在于,包括:An apparatus for detecting abnormal CPU usage of an APP, comprising:
    接收模块,用于接收终端发送的携带APP的参数信息的查询请求;a receiving module, configured to receive a query request that is sent by the terminal and carries parameter information of the APP;
    获得模块,用于根据所述查询请求获得查询结果;以及Obtaining a module for obtaining a query result according to the query request;
    返回模块,用于向所述终端返回所述查询结果,以使所述终端根据所述查询结果确定对应APP的CPU占用率是否异常。And a returning module, configured to return the query result to the terminal, so that the terminal determines whether the CPU usage of the corresponding APP is abnormal according to the query result.
  24. 根据权利要求23所述的装置,其特征在于,所述APP的参数信息包括所述APP的标识信息、运行环境和运行场景。The device according to claim 23, wherein the parameter information of the APP comprises identification information of the APP, an operating environment, and an operation scenario.
  25. 根据权利要求23或24所述的装置,其特征在于,所述获得模块,包括:The device according to claim 23 or 24, wherein the obtaining module comprises:
    第一获得单元,用于从所述查询请求中获得所述参数信息,并根据所述参数信息计算对应APP的CPU占用率,同时根据所述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围;a first obtaining unit, configured to obtain the parameter information from the query request, and calculate a CPU usage rate of the corresponding APP according to the parameter information, and query a local database according to the parameter information to obtain a CPU usage of the corresponding APP. Range of values;
    判断单元,用于判断计算的APP的CPU占用率是否位于对应APP的CPU占用率的数值范围内,若位于,则获得对应APP的CPU占用率正常的检测结果,若不位于,则获得对 应APP的CPU占用率异常的检测结果。The determining unit is configured to determine whether the CPU usage of the calculated APP is within a value range of the CPU usage of the corresponding APP, and if yes, obtain a detection result that the CPU usage of the corresponding APP is normal, and if not, obtain the pair The detection result of the abnormal CPU usage of the APP.
  26. 根据权利要求24所述的装置,其特征在于,所述获得模块,包括:The device according to claim 24, wherein the obtaining module comprises:
    第二获得单元,用于从所述查询请求中获得所述参数信息,根据所述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围,并将对应APP的CPU占用率的数值范围作为所述检测结果。a second obtaining unit, configured to obtain the parameter information from the query request, query a local database according to the parameter information, obtain a numerical range of CPU usage of the corresponding APP, and use a numerical range of the CPU usage of the corresponding APP as The detection result.
  27. 根据权利要求25所述的装置,其特征在于,所述第一获得单元,具体用于:根据所述参数信息计算对应APP的CPU占用率的平均值;The device according to claim 25, wherein the first obtaining unit is configured to: calculate an average value of CPU usage of the corresponding APP according to the parameter information;
    所述判断单元,具体用于:The determining unit is specifically configured to:
    判断计算的APP的CPU占用率的平均值是否位于对应APP的CPU占用率的数值范围内。It is determined whether the average value of the CPU usage of the calculated APP is within a value range of the CPU usage of the corresponding APP.
  28. 根据权利要求25或26所述的装置,其特征在于,还包括:The device according to claim 25 or 26, further comprising:
    建立模块,用于在所述获得模块根据所述参数信息查询本地数据库获得对应APP的CPU占用率的数值范围之前,在本地建立所述数据库,其中,所述数据库中保存有APP的标识信息、参数信息和对应的CPU占用率的数值范围。a setting module, configured to establish the database locally before the obtaining module obtains a numerical range of the CPU usage of the corresponding APP according to the parameter information, and wherein the database stores the identifier information of the APP, Parameter information and the range of values of the corresponding CPU usage.
  29. 一种移动终端,所述移动终端包括壳体、处理器、存储器、电路板和电源电路,其中,所述电路板安置在所述壳体围成的空间内部,所述处理器和所述存储器设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器用于存储可执行程序代码;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:A mobile terminal includes 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 Provided 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 used to store executable program code; and the processor reads the memory by reading the memory Executable program code to execute a program corresponding to the executable program code for performing the following steps:
    获得当前运行APP的参数信息,并向服务器发送携带所述参数信息的查询请求,以使所述服务器根据所述查询请求获得查询结果;Obtaining parameter information of the current running APP, and sending a query request carrying the parameter information to the server, so that the server obtains the query result according to the query request;
    接收所述服务器返回的所述查询结果,并根据所述查询结果确定对应APP的CPU占用率是否异常;以及Receiving the query result returned by the server, and determining, according to the query result, whether the CPU usage of the corresponding APP is abnormal;
    在对应APP的CPU占用率异常时,显示提示信息。 When the CPU usage of the corresponding APP is abnormal, a prompt message is displayed.
PCT/CN2015/082112 2014-06-30 2015-06-23 Method, device and mobile terminal for detecting abnormal cpu occupancy rate of app WO2016000543A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410309270.0A CN105204970B (en) 2014-06-30 2014-06-30 Detect the method, device and mobile terminal of the CPU usage exception of APP
CN201410309270.0 2014-06-30

Publications (1)

Publication Number Publication Date
WO2016000543A1 true WO2016000543A1 (en) 2016-01-07

Family

ID=54952664

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082112 WO2016000543A1 (en) 2014-06-30 2015-06-23 Method, device and mobile terminal for detecting abnormal cpu occupancy rate of app

Country Status (2)

Country Link
CN (1) CN105204970B (en)
WO (1) WO2016000543A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557402A (en) * 2016-10-31 2017-04-05 努比亚技术有限公司 Mobile terminal and abnormal information processing method
CN109587345A (en) * 2018-12-28 2019-04-05 努比亚技术有限公司 Abnormal Application Hints method, mobile terminal and computer readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132940B (en) * 2016-12-01 2020-10-02 北京金山云网络技术有限公司 Application program data extraction method and device
CN106878262B (en) * 2016-12-19 2021-04-16 新华三技术有限公司 Message detection method and device, and method and device for establishing local threat information library
CN109379211A (en) * 2018-09-11 2019-02-22 网宿科技股份有限公司 A kind of method for monitoring network and device, server and storage medium
CN109491844A (en) * 2018-09-21 2019-03-19 国网技术学院 A kind of computer system identifying exception information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354677A (en) * 2008-09-11 2009-01-28 青岛海信移动通信技术股份有限公司 Method for detecting and restoring application program running state and restoring device thereof
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN101436146A (en) * 2008-12-15 2009-05-20 中兴通讯股份有限公司 Method and system for dynamically regulating priority of remote device management progress
JP2014107801A (en) * 2012-11-29 2014-06-09 Fujitsu Ltd Base station and congestion control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710535B (en) * 2011-03-28 2016-04-27 腾讯科技(深圳)有限公司 A kind of data capture method and equipment
CN102200942B (en) * 2011-06-08 2015-09-02 宇龙计算机通信科技(深圳)有限公司 Based on application behavior monitoring method and the cloud server of cloud computing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408861A (en) * 2007-10-11 2009-04-15 鸿富锦精密工业(深圳)有限公司 Real time monitoring system and method of application program
CN101354677A (en) * 2008-09-11 2009-01-28 青岛海信移动通信技术股份有限公司 Method for detecting and restoring application program running state and restoring device thereof
CN101436146A (en) * 2008-12-15 2009-05-20 中兴通讯股份有限公司 Method and system for dynamically regulating priority of remote device management progress
JP2014107801A (en) * 2012-11-29 2014-06-09 Fujitsu Ltd Base station and congestion control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557402A (en) * 2016-10-31 2017-04-05 努比亚技术有限公司 Mobile terminal and abnormal information processing method
CN106557402B (en) * 2016-10-31 2019-09-06 努比亚技术有限公司 Mobile terminal and exception information processing method
CN109587345A (en) * 2018-12-28 2019-04-05 努比亚技术有限公司 Abnormal Application Hints method, mobile terminal and computer readable storage medium
CN109587345B (en) * 2018-12-28 2021-09-07 努比亚技术有限公司 Abnormal application prompting method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN105204970A (en) 2015-12-30
CN105204970B (en) 2018-06-01

Similar Documents

Publication Publication Date Title
WO2016000543A1 (en) Method, device and mobile terminal for detecting abnormal cpu occupancy rate of app
US8671099B2 (en) Clustering devices in an internet of things (‘IoT’)
WO2017020654A1 (en) Wireless network access method and device
US20160283424A1 (en) Virtual intelligent platform management interface (ipmi) satellite controller and method
WO2017096734A1 (en) Program detection method and device
WO2018103405A1 (en) Method for identifying access point and hotspot, and related product
CN103634294A (en) Information verifying method and device
US20120185624A1 (en) Automated Cabling Process for a Complex Environment
CN104267980A (en) Method, terminal, data server and system for software scoring display
JP2017153096A (en) Method and device for setting cn0 reduction amount
US20160341569A1 (en) Method of calibrating geomagnetic sensor and electronic device adapted thereto
CN106658670B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN104702576A (en) Voice transmission method and device and voice service system
EP2905928A1 (en) Apparatus and method for providing metadata with network traffic
CN110022327B (en) Short message authentication test method and device
CN106712871B (en) Antenna performance optimization method and system
CN112463067A (en) Data protection method and equipment in NVMe-oF scene
CN104427118A (en) Method for recommending contents and mobile terminal
CN109462446B (en) Radio frequency calibration method and device, electronic device and computer readable storage medium
CN108280024B (en) Flow distribution strategy testing method and device and electronic equipment
CN109936586B (en) Communication processing method and device
EP3518513A1 (en) Streaming data acquisition method, device, and system
CN105577722A (en) Credit exchange method and apparatus thereof
EP3544227A1 (en) Power control method, device and electronic equipment in ethernet power supply system
US8515698B2 (en) Digital power meter communication system, method and computer-readable storage medium for storing thereof

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

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 03/05/17)

122 Ep: pct application non-entry in european phase

Ref document number: 15814567

Country of ref document: EP

Kind code of ref document: A1