CN107515811B - Method and device for acquiring power consumption of application program - Google Patents

Method and device for acquiring power consumption of application program Download PDF

Info

Publication number
CN107515811B
CN107515811B CN201710774727.9A CN201710774727A CN107515811B CN 107515811 B CN107515811 B CN 107515811B CN 201710774727 A CN201710774727 A CN 201710774727A CN 107515811 B CN107515811 B CN 107515811B
Authority
CN
China
Prior art keywords
power consumption
application program
description information
service
auxiliary service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710774727.9A
Other languages
Chinese (zh)
Other versions
CN107515811A (en
Inventor
丁祎
郭世超
李涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qilin Hesheng Network Technology Inc
Original Assignee
Qilin Hesheng Network Technology Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qilin Hesheng Network Technology Inc filed Critical Qilin Hesheng Network Technology Inc
Priority to CN201710774727.9A priority Critical patent/CN107515811B/en
Publication of CN107515811A publication Critical patent/CN107515811A/en
Application granted granted Critical
Publication of CN107515811B publication Critical patent/CN107515811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • G06F11/3062Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a method and a device for acquiring power consumption of an application program, wherein the method comprises the following steps: receiving confirmation information of the auxiliary service sent by a user; sending a power consumption acquisition request through an auxiliary service, wherein the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises power consumption description information corresponding to each application program; receiving electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by the auxiliary service through calling the system service and determining by the system service; and determining the power consumption corresponding to each application program according to the power description information. The power consumption description information acquired by the power consumption management program is determined by the system service, and the power consumption corresponding to each application program in the power consumption description information determined by the system service can be regarded as the actual power consumption corresponding to each application program, so that the accuracy of the determined power consumption of the application program is high.

Description

Method and device for acquiring power consumption of application program
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for obtaining power consumption of an application.
Background
With the rapid development of science and technology, various intelligent terminals, such as smart phones, ipads, etc., have appeared. The intelligent terminals bring great convenience to the daily life of users and become an essential part of the daily life of people. As more and more users use smart terminals, power consumption of the smart terminals has become one of the issues that people pay more attention to.
Generally, power consumption of an application program in a smart terminal is a main cause of power consumption of the smart terminal. In order to save power consumption of the intelligent terminal, in the prior art, a power consumption management program may obtain power consumption of an application program in the intelligent terminal, and the power consumption management program manages the application program according to the obtained power consumption, so as to achieve the purpose of saving power consumption of the intelligent terminal.
When the power consumption management program acquires the power consumption of the intelligent terminal application program, firstly, the use information of a battery in the intelligent terminal can be acquired; next, the power consumption of the application is calculated from the usage information of the battery, so that the power consumption management program can manage the application according to the acquired power consumption, for example, the application with higher power consumption can be shut down.
However, in practical applications, the power consumption of the application program acquired by the power consumption management program in the above manner is different from the actual power consumption of the application program, so that the accuracy of the acquired power consumption of the application program is low.
Disclosure of Invention
The embodiment of the application provides a method and a device for acquiring power consumption of an application program, and the method and the device are used for solving the problem that the accuracy of the power consumption of the application program acquired by a power consumption management program is low.
The embodiment of the application provides a method for acquiring power consumption of an application program, which comprises the following steps:
Receiving confirmation information sent by a user for an auxiliary service, wherein the confirmation information represents that the user allows the power consumption of the application program to be acquired through the auxiliary service;
Sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program;
Receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by calling system service by the auxiliary service and determining by the system service;
And determining the power consumption corresponding to each application program according to the power description information.
The embodiment of the application provides a device for obtaining power consumption of an application program, including:
A receiving unit that receives confirmation information for an auxiliary service sent by a user, the confirmation information indicating that the user allows acquisition of power consumption of the application program by the auxiliary service;
The sending unit is used for sending a power consumption obtaining request through the auxiliary service, the power consumption obtaining request is used for requesting to obtain the real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for obtaining power description information in real time, and the power description information comprises the description information of the power consumption corresponding to each application program;
The receiving unit is used for receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by calling system service by the auxiliary service and determining by the system service;
And the determining unit is used for determining the power consumption corresponding to each application program according to the power description information.
An embodiment of the present application provides an electronic device, including:
A processor; and
A memory arranged to store computer executable instructions that, when executed, cause the processor to:
Receiving confirmation information sent by a user for an auxiliary service, wherein the confirmation information represents that the user allows the power consumption of the application program to be acquired through the auxiliary service;
Sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program;
Receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by calling system service by the auxiliary service and determining by the system service;
And determining the power consumption corresponding to each application program according to the power description information.
Embodiments of the present application provide a computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to:
Receiving confirmation information sent by a user for an auxiliary service, wherein the confirmation information represents that the user allows the power consumption of the application program to be acquired through the auxiliary service;
Sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program;
Receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by calling system service by the auxiliary service and determining by the system service;
And determining the power consumption corresponding to each application program according to the power description information.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
According to the technical scheme provided by the embodiment of the application, when the power consumption corresponding to each application program in the intelligent terminal needs to be acquired, the power consumption management program can acquire the power consumption description information through the auxiliary service, and determine the power consumption corresponding to each application program according to the power consumption description information, wherein the power consumption description information comprises the description information of the power consumption corresponding to each application program, and the power consumption description information is acquired by calling the system service through the auxiliary service and determining the system service. In this way, since the power consumption description information acquired by the power consumption management program is determined by the system service, the power consumption corresponding to each application program in the power consumption description information determined by the system service can be regarded as the actual power consumption corresponding to each application program, and therefore, the accuracy of the power consumption of the application program determined by the power consumption management program according to the acquired power consumption description information is high.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart illustrating a method for obtaining power consumption of an application according to an embodiment of the present disclosure;
Fig. 2 is a flowchart illustrating another method for obtaining power consumption of an application according to an embodiment of the present disclosure;
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
Fig. 4 is a schematic structural diagram of an apparatus for acquiring power consumption of an application according to an embodiment of the present disclosure.
Detailed Description
In the prior art, when obtaining the power consumption of the application program by obtaining the battery information of the intelligent terminal, the power consumption management program may generally obtain the battery information of the intelligent terminal by calling a dedicated interface provided by an operating system of the intelligent terminal, and after obtaining the battery information, calculate the power consumption of the application program according to the battery information.
However, in practical applications, when the power consumption management program obtains the power consumption of the application program by the above method, at least the following problems exist:
(1) Because the versions of the operating systems of the intelligent terminals are different or the models of the intelligent terminals are different, the compatibility problem exists between the power consumption management program and the operating systems of the intelligent terminals, and the compatibility problem is mainly embodied in that the power consumption management program cannot call a special interface provided by the operating systems of the intelligent terminals to acquire battery information of the intelligent terminals, or the power consumption management program cannot acquire accurate battery information after calling the special interface, so that the accuracy of the power consumption of the application program calculated according to the battery information is lower because the power consumption management program cannot acquire the accurate battery information;
(2) When the power consumption management program calculates the power consumption information of the application program according to the battery information of the intelligent terminal, the calculation process is complex, and thus, a certain difference often exists between the calculated power consumption of the application program and the actual power consumption of the application program, that is, although the calculated power consumption of the application program is closer to the power consumption of the application program, the calculated power consumption of the application program is not the actual power consumption of the application program, so that the accuracy of the power consumption of the application program obtained by the power consumption management program is low.
Therefore, in the prior art, the accuracy of the power consumption of the application acquired by the power consumption management program is low.
Generally, for an intelligent terminal, a system service corresponding to an operating system of the intelligent terminal may determine to obtain a system power consumption amount, a hardware power consumption amount, and a software (including each application program installed in the intelligent terminal) power consumption amount of the intelligent terminal according to information such as hardware of the intelligent terminal, and may display the determined power consumption amounts in the intelligent terminal in a form of a power consumption management interface, so as to facilitate viewing by a user. The power consumption displayed in the power consumption management interface is determined by the system service corresponding to the operating system of the intelligent terminal according to the information of the hardware and the like of the intelligent terminal, so that the power consumption displayed in the power consumption management interface can be regarded as the real power consumption of the system, the hardware and the software of the intelligent terminal, namely, compared with the power consumption of the application program determined by a calculation mode in the prior art, the accuracy of the power consumption of the application program displayed in the power consumption management interface is higher.
In view of this, embodiments of the present disclosure provide a method and an apparatus for obtaining power consumption of an application, where the method can obtain power consumption of an application included in a power consumption management interface of an intelligent terminal, and thus, compared with the prior art, accuracy of the obtained power consumption of the application is higher.
In order to achieve the purpose of the present application, an embodiment of the present application provides a method and an apparatus for obtaining power consumption of an application, where the method includes: receiving confirmation information sent by a user for an auxiliary service, wherein the confirmation information represents that the user allows the power consumption of the application program to be acquired through the auxiliary service; sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program; receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by calling system service by the auxiliary service and determining by the system service; and determining the power consumption corresponding to each application program according to the power description information.
Compared with the prior art, the technical scheme provided by the embodiment of the application has at least the following beneficial effects:
(1) The power consumption management program can obtain the power consumption of the application program through the auxiliary service, so that the power consumption of the application program can be obtained without calling a special interface provided by an intelligent terminal operating system, namely, without depending on the special interface of the intelligent terminal operating system, the power consumption of the application program is more stable when the power consumption of the application program is obtained, and the power consumption management program is not limited by the operating system of the intelligent terminal or the model of the intelligent terminal;
(2) The power consumption management program can directly extract the description information of the power consumption of the application program from the power description information by analyzing the acquired power description information, and further directly determine the power consumption of the application program without calculation, so that a large amount of calculation resources can be saved;
(3) The power consumption of the application program acquired by the power consumption management program is determined by the system service corresponding to the operating system of the intelligent terminal according to the information of the hardware and the like of the intelligent terminal, and can be regarded as the actual power consumption of the application program, so that the accuracy of the acquired power consumption of the application program is high.
The technical solutions of the present application will be described clearly and completely below with reference to the specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solution provided in the embodiment of the present application may be used for a power consumption management program to obtain power consumption corresponding to each application program installed in an intelligent terminal, where the intelligent terminal includes but is not limited to: the power consumption management program can be installed in the intelligent terminal and is used for managing each application program according to the power consumption corresponding to each application program, and further achieving the purpose of managing the power consumption of the intelligent terminal.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for obtaining power consumption of an application according to an embodiment of the present disclosure. The method is as follows.
Step 102: and receiving confirmation information sent by the user to the auxiliary service.
Wherein the confirmation information indicates that the user is allowed to obtain power consumption of the application through the auxiliary service.
In this embodiment of the application, the auxiliary service may be configured to provide a service for acquiring power description information in real time, where the power description information may include power consumption description information corresponding to each application in the intelligent terminal.
The auxiliary service may be determined according to an auxiliary class usage (accessibility service) provided by a system service corresponding to an operating system of the intelligent terminal. In particular, the auxiliary service may be created by inheriting the auxiliary class usage. Wherein, the operating system of the intelligent terminal includes but is not limited to: and (4) an android operating system.
It should be noted that, for the operating system of the intelligent terminal, as long as the operating system passes the CTS test, the auxiliary service can be created in theory by the above method. The embodiment of the present application does not limit the specific version number of the operating system.
After the auxiliary service is created based on the method described above, the function of the auxiliary service, that is, the service that the auxiliary service can provide, may be further set. In this embodiment of the application, the auxiliary service may be configured to monitor a power consumption management interface, so as to obtain the power description information included in the power consumption management interface in real time, that is, the auxiliary service may be configured to provide a service for obtaining the power description information.
In this embodiment of the application, the power consumption management interface may include the power description information, the power description information may include description information of power consumption corresponding to each application installed in the intelligent terminal, and may further include description information of system power consumption of the intelligent terminal and description information of hardware power consumption in the intelligent terminal, where the power consumption of each application, the power consumption of the system, and the power consumption of the hardware corresponding to the power description information may be determined by a system service of the intelligent terminal according to actual hardware information, and may be regarded as each application, the system of the intelligent terminal, and the actual power consumption of the hardware.
After the function of the auxiliary service is set, the auxiliary service may be added to an operating system corresponding to the system service, so that the auxiliary service may obtain the electric quantity description information through the system service.
After obtaining the auxiliary service by the method described above, the user may install a power consumption management program for managing power consumption of each application in the smart terminal.
After the power consumption management program is installed, the power consumption management program may prompt a user whether to determine to start a service provided by the auxiliary service, at this time, the user may determine to start the auxiliary service and may regard as sending the confirmation information to the power consumption management program, where the determination information may be used to indicate that the user allows the power consumption management program to obtain, through the auxiliary service, the power consumption corresponding to each application program in the intelligent terminal.
After the user sends the confirmation information, the power consumption management program can receive the confirmation information, so that when the power consumption management program needs to acquire the power consumption corresponding to each application program in the intelligent terminal, the power consumption management program can acquire the power description information through the auxiliary service, and further acquire the power consumption corresponding to each application program.
Based on the content described in step 102, the power consumption management program may execute step 104 after receiving the confirmation information.
Step 104: sending a power consumption acquisition request through the auxiliary service.
In step 104, when the user allows the user to obtain the power consumption of the application program through the auxiliary service and needs to obtain the power consumption corresponding to each application program in the intelligent terminal, the power consumption management program may send a power consumption obtaining request to an operating system through the auxiliary service to request to obtain the power consumption corresponding to each application program.
In this embodiment of the application, the power consumption management program may determine that the power consumption corresponding to each of the application programs needs to be acquired in several cases, including:
In the first case: when a user clicks to enter the power consumption management interface of the intelligent terminal by using the intelligent terminal, the power consumption management program can be regarded as needing to acquire the power consumption corresponding to each application program;
In the second case: when a user clicks to enter the power consumption management program of the intelligent terminal by using the intelligent terminal, the power consumption management program can be regarded as needing to acquire the power consumption corresponding to each application program;
In the third case: during the process of using the smart terminal by the user (for example, the user uses the smart terminal to watch a video, play a game, and the like), it may be considered that the power consumption management program needs to obtain the power consumption corresponding to each application program.
Certainly, in practical applications, the power consumption management program may monitor the power consumption amount corresponding to each application program in the intelligent terminal in real time when the intelligent terminal is in a power-on state, and in this case, it may be considered that the power consumption management program needs to obtain the power consumption amount corresponding to each application program in real time.
In the embodiment of the present application, the power consumption management program may be configured to transmit the power consumption amount acquisition request through the auxiliary service in any one of the above-described cases.
In step 104, the power consumption management program may execute step 106 after sending the power consumption amount acquisition request through the auxiliary service.
Step 106: and receiving the electric quantity description information returned by the auxiliary service in real time.
Wherein the power description information can be obtained by the auxiliary service by calling a system service and determining by the system service.
In step 106, after the power consumption management program sends the power consumption amount acquisition request to the auxiliary service, the auxiliary service may receive the power consumption amount acquisition request, and at this time, the auxiliary service may acquire the power amount description information in real time according to the power consumption amount acquisition request.
In this embodiment of the application, the auxiliary service may obtain the electric quantity description information in the following manner, including:
The auxiliary service calls the system service according to the power consumption obtaining request, so that the system service determines to obtain the power consumption description information;
And the auxiliary service receives the electric quantity description information and returns the electric quantity description information.
That is, the auxiliary service may invoke the system service in real time after receiving the power consumption amount acquisition request. At this time, the system service may determine that the power description information is obtained.
Specifically, when the system service is called by the auxiliary service, the electricity quantity description information included in the electricity consumption management interface can be determined and obtained in real time according to information such as hardware of the intelligent terminal, and after the electricity quantity description information is determined and obtained, the electricity quantity description information can be returned to the auxiliary service, so that the auxiliary service can obtain the electricity quantity description information in real time.
After the auxiliary service acquires the electricity quantity description information, the auxiliary service can directly return the electricity quantity description information to the electricity consumption management program.
The power consumption manager may perform step 108 after receiving the description information returned by the auxiliary service according to the method described above.
Step 108: and determining the power consumption corresponding to each application program according to the power description information.
In step 108, after receiving the electricity quantity description information returned by the auxiliary service, the electricity consumption management program may determine to obtain the electricity consumption corresponding to each application program in the intelligent terminal according to the electricity quantity description information.
Specifically, the determining, by the power consumption management program according to the power description information, the power consumption corresponding to each application program may include:
Analyzing the power description information, and respectively extracting the description information of the power consumption corresponding to each application program from the power description information;
And determining the power consumption corresponding to each application program according to the description information of the power consumption corresponding to each application program.
In the embodiment of the present application, based on the above-mentioned description, the power consumption description information may include description information of power consumption of each application in the smart terminal, and may also include description information of system power consumption of the smart terminal, description information of hardware power consumption in the smart terminal, and the like, so that, after receiving the power consumption description information, the power consumption management program may analyze the power consumption description information, extract description information of power consumption corresponding to each application from the power consumption description information, and further determine to obtain power consumption corresponding to each application.
When the power consumption management program extracts the description information of the power consumption corresponding to each application program from the power description information, the power consumption management program may extract the description information of the power consumption corresponding to each application program according to the identification information of each application program, or may extract the description information of the power consumption of all application programs included in the power description information, and then respectively determine the description information of the power consumption corresponding to each application program, which is not specifically limited in the embodiment of the present application.
After the power consumption management program extracts the description information of the power consumption corresponding to each application program, the power consumption management program can further determine to obtain the power consumption corresponding to each application program, so that the purpose of obtaining the power consumption of each application program through the auxiliary service is achieved.
The following is a part of the power description information acquired by the power consumption management program from the smartphone through the auxiliary service:
Android operating system 49%
Android System 13%
The standby time of the equipment is 8%
The standby of the battery is 7%
Screen% 7
Baobeijia-Yuan Dong 5%
12306 4%
Investment is 2%.
When the power consumption management program analyzes the power description information, the power consumption management program can directly integrate the data without performing complex calculation and analysis, and can accurately obtain the power consumption corresponding to each application program. For example, the power consumption amount of the application program "12306" can be directly obtained from the above description information to be 4%.
Compared with the prior art, the power consumption of the application program determined by the system service corresponding to the operating system of the intelligent terminal according to the information such as hardware can be acquired through the auxiliary service, and the power consumption can be regarded as the actual power consumption of the application program, so that the accuracy of the power consumption of the application program acquired by the embodiment of the application program is high. In addition, since the operating systems passing the CTS test can all be created to obtain the auxiliary service, the embodiment of the present application can obtain the power consumption of the application program with higher accuracy without obtaining root authority and relying on the operating system of the intelligent terminal.
In another embodiment provided by the present application, after the power consumption management program obtains the power consumption amount corresponding to each application program, the method further includes:
Judging whether the power consumption of each application program is normal or not according to the power consumption corresponding to each application program;
And respectively managing each application program according to the judgment result.
In this embodiment, after obtaining the power consumption amount corresponding to each application program, the power consumption management program may manage each application program according to the power consumption amount. Specifically, one or more applications having higher power consumption may be selected, and whether the power consumption of the applications is normal or not may be determined according to the power consumption of the selected applications, so as to manage the selected applications.
The power consumption management program judges whether the power consumption of each application program is normal or not according to the power consumption corresponding to each application program, and the judgment comprises the following steps:
For each of the applications, performing the following operations:
Acquiring the use information of the application program;
Judging whether the use information of the application program is matched with the power consumption of the application program;
If so, determining that the power consumption of the application program is normal;
And if not, determining that the power consumption of the application program is abnormal.
For each application program, when acquiring the usage information of the application program, the power consumption management program may acquire the usage information of the application program in a recent period of time (which period of time may be specifically determined according to actual needs), for example, whether the application program has been started within a recent hour, whether the application program is running in the background, or the like.
In this embodiment, the purpose of the power consumption management program acquiring the use information of the application program may be to determine the use condition of the application program. The power consumption management program may match the usage information with the acquired power consumption of the application program after acquiring the usage information of the application program.
In the real-time example of the application, the usage information may be matched with the obtained power consumption of the application, and the usage information of the application may be compared with the power consumption of the application to determine whether the power consumption of the application is normal, that is, whether the power consumption of the application is reasonable. If the usage information of the application program is matched with the power consumption of the application program, the power consumption of the application program can be considered to be normal, and otherwise, the power consumption of the application program can be considered to be abnormal.
For example, it is determined that the application a has moved back to the background operation according to the usage information of the application a, but the acquired power consumption of the application a is high, and therefore, it may be determined that the power consumption of the application a is unreasonable, that is, the power consumption of the application a is abnormal.
After judging whether the power consumption of the application program is normal or not, the power consumption management program manages the application program according to a judgment result, and the method comprises the following steps:
When determining that the power consumption of the application program is abnormal, automatically executing the operation of closing the application program, or prompting the information of the abnormal power consumption of the application program so as to facilitate a user to determine whether to close the application program.
In the embodiment of the application, when the power consumption management program determines that the power consumption of the application program is abnormal, if the power consumption management program obtains the root authority of the application program, the application program can be automatically closed, so that the power consumption of the intelligent terminal can be saved. In addition, a prompt may be provided to the user to determine whether to close the application.
If the root authority of the application program is not obtained by the power consumption management program, the information of abnormal power consumption of the application program can be prompted to a user, and therefore the user can determine whether to close the application program or not, and power consumption of the intelligent terminal is saved.
In practical applications, it may be determined which manner to shut down the application program with abnormal power consumption according to practical situations, and is not specifically limited herein.
In this embodiment, when the power consumption management program determines that the power consumption of the application program is normal, it may be described that the power consumption of the application program is reasonable, and at this time, the shutdown operation may not be performed on the application program.
Taking the above-mentioned electric quantity description information obtained from the smartphone as an example, it can be determined that the electric power consumption of "baby best-gardener" and "12306" is relatively high, and at this time, the electric power consumption management program can obtain the use information of "baby best-gardener" and "12306" within half an hour. At this time, if it is determined that the "baebao-gardener" has been in the background for a period of time and the "12306" is always in the foreground, it may be determined that the power consumption of the "baebao-gardener" is abnormal, and then the power consumption management program may turn off the "baebao-gardener" or prompt the user that the power consumption of the "baebao-gardener" is abnormal, and the user determines whether to turn off the application program. In addition, since the power consumption of "12306" is normal, then "12306" may be selected not to be turned off.
It should be noted that, since the accuracy of the power consumption of the obtained application program is high, it is more effective to manage the application program according to the power consumption of the application program.
According to the technical scheme provided by the embodiment of the application, when the power consumption corresponding to each application program in the intelligent terminal needs to be acquired, the power consumption management program can acquire the power consumption description information through the auxiliary service, and determine the power consumption corresponding to each application program according to the power consumption description information, wherein the power consumption description information comprises the description information of the power consumption corresponding to each application program, and the power consumption description information is acquired by calling the system service through the auxiliary service and determining the system service. In this way, since the power consumption description information acquired by the power consumption management program is determined by the system service, the power consumption corresponding to each application program in the power consumption description information determined by the system service can be regarded as the actual power consumption corresponding to each application program, and therefore, the accuracy of the power consumption of the application program determined by the power consumption management program according to the acquired power consumption description information is high.
Fig. 2 is a flowchart illustrating another method for obtaining power consumption of an application according to an embodiment of the present disclosure. The embodiment shown in fig. 2 may be implemented by the method described in the embodiment shown in fig. 1.
In this embodiment of the application, an example will be described in which an intelligent terminal is a smart phone, an operating system of the smart phone is an android operating system, and a power consumption management program installed in the smart phone is used to obtain power consumption of an application program installed in the smart phone.
Step 201: and determining to obtain an auxiliary service for providing the service of acquiring the power description information.
The electric quantity description information comprises description information of electric consumption corresponding to each application program in the smart phone, description information of system electric consumption of the smart phone and description information of hardware electric consumption of the smart phone, and is determined by system services corresponding to an android operating system in the smart phone according to actual hardware information and the like of the smart phone and can be regarded as actual electric consumption of each application program, a system of the smart phone and hardware of the smart phone.
in step 201, firstly, a customized auxiliary SERVICE "windowReaderservice" can be created by inheriting an auxiliary class usage "accessitiveService" provided by an android system, secondly, the auxiliary SERVICE is added into an "android Manifest.xml" file and a right to acquire "android.
In this embodiment of the application, the power consumption corresponding to each application program in the smartphone needs to be acquired, so the program name of the application program that needs to be monitored may be "com. In addition, the intention of creating the auxiliary service can be added to the customized xml file, so that the user can conveniently view the xml file, and the xml file is added to a corresponding node in an "android manifest.
Thus, the auxiliary service can be determined to be obtained through the above steps.
Step 202: and the power consumption management program receives confirmation information sent by the user to the auxiliary service.
Wherein the confirmation information indicates that the user allows the power consumption of the application program in the smart phone to be acquired through the auxiliary service.
In practical application, after the power consumption management program is installed in the smart phone successfully, a dialog box can be popped up to prompt a user to start an auxiliary service, so that the power consumption management program can jump to a switch interface of the auxiliary service after the user clicks an agreement, at this time, the user can confirm that the auxiliary service is started, that is, the user can consider that the confirmation information is sent to the power consumption management interface, and the power consumption management program can receive the confirmation information.
Step 203: the power consumption management program sends a power consumption amount acquisition request through the auxiliary service.
In step 203, when the auxiliary service is started and the power consumption of the application program in the smartphone needs to be acquired, the power consumption management service may send a power consumption acquisition request through the auxiliary service, where the power consumption request is used to request to acquire the power consumption corresponding to each application program in the smartphone.
Step 204: and the auxiliary service calls system services corresponding to an android operating system of the smart phone according to the power consumption obtaining request.
Step 205: and the system service sends the electricity quantity description information contained in the electricity consumption management interface to the auxiliary service.
The power description information included in the power consumption management interface may be the same as the power description information described in step 201.
In steps 203 to 205, when the power consumption management program sends the power consumption obtaining request through the auxiliary function service, a defined "onaccestibiteservie (accessitiveevent)" method in the auxiliary service is called back, in which the system service sends the power consumption management interface to the auxiliary service in the form of an accessitiveevent instance. The accessibityevent instance may be regarded as the power description information.
Step 206: and the auxiliary service sends the electricity quantity description information to the electricity consumption management program.
Step 207: and the power consumption management program determines the power consumption corresponding to each application program according to the power consumption description information.
In step 207, the power consumption management program may analyze the power description information, so as to obtain the power consumption corresponding to each application program.
Specifically, according to the obtained accessilinyevent instance, an accessilinylnodeinfo instance contained in the accessilinyevent instance is determined, the accessilinylnodeinfo instance is a data source to be analyzed, and after the accessilinylnodeinfo instance is analyzed, the power consumption contained in the power consumption management interface can be obtained.
generally, the power consumption management interface may be composed of elements such as TextView, cyclereviw, Frame L ayout, L initial L ayou, and L istView, and when these elements are analyzed, these elements may be divided into two types, one type is View and the other type is View group, and then all the elements may be traversed in a recursive manner, and the specific content included in the power consumption management interface (i.e., the power consumption of hardware, a system, and an application program in the smart phone) is obtained by a nodeinfo.
It should be noted that after determining the power consumption of the application program, the power consumption of the application program may be stored according to different application programs, so that when the power consumption management program needs to manage the power consumption of the application program or the smartphone according to the power consumption of the application program, the power consumption of the application program may be obtained.
Step 208: and the power consumption management program manages each application program according to the power consumption corresponding to each application program.
In step 208, the power consumption management program may manage the application program by the method described in the embodiment shown in fig. 1, and the description is not repeated here.
In the embodiment of the application, the power consumption amount, acquired by the power consumption management program, of each application program in the smart phone is determined by the smart phone according to information such as actual hardware of the smart phone, so that the power consumption amount can be regarded as the actual power consumption amount of each application program, and thus, compared with the prior art, the accuracy of the power consumption amount of each application program acquired by the embodiment of the application is higher.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 3, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (peripheral component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 3, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program, and a device for acquiring the power consumption of the application program is formed on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
Receiving confirmation information sent by a user for an auxiliary service, wherein the confirmation information represents that the user allows the power consumption of the application program to be acquired through the auxiliary service;
Sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program;
Receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by calling system service by the auxiliary service and determining by the system service;
And determining the power consumption corresponding to each application program according to the power description information.
The method executed by the apparatus for obtaining power consumption of an application program according to the embodiment shown in fig. 3 of the present application can be applied to a processor, or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method in fig. 1, and implement the functions of the apparatus for obtaining power consumption of an application in the embodiments shown in fig. 1 and fig. 2, which are not described herein again in this embodiment of the present application.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Embodiments of the present application also provide a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to perform the method of the embodiment shown in fig. 1, and are specifically configured to:
Receiving confirmation information sent by a user for an auxiliary service, wherein the confirmation information represents that the user allows the power consumption of the application program to be acquired through the auxiliary service;
Sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program;
Receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by calling system service by the auxiliary service and determining by the system service;
And determining the power consumption corresponding to each application program according to the power description information.
Fig. 4 is a schematic structural diagram of an apparatus for acquiring power consumption of an application according to an embodiment of the present disclosure. The apparatus may include: a receiving unit 41, a transmitting unit 42, and a determining unit 43, wherein:
A receiving unit 41 configured to receive confirmation information of an auxiliary service transmitted by a user, the confirmation information indicating that the user allows the auxiliary service to acquire power consumption of the application;
A sending unit 42, configured to send, through the auxiliary service, a power consumption obtaining request for requesting to obtain real-time power consumption corresponding to each application program, where the auxiliary service is configured to provide a service for obtaining power description information in real time, where the power description information includes description information of power consumption corresponding to each application program;
The receiving unit 41 is configured to receive the electric quantity description information returned by the auxiliary service in real time, where the electric quantity description information is obtained by the auxiliary service by invoking a system service and is determined by the system service;
The determining unit 43 determines the power consumption corresponding to each application program according to the power description information.
In the embodiment of the application, the auxiliary service is determined and obtained according to the auxiliary usage provided by the system service, and after the auxiliary service is created and obtained, the auxiliary service is set to be used for monitoring a power consumption management interface so as to obtain the electric quantity description information contained in the power consumption management interface in real time.
In the embodiment of the present application, the electric quantity description information is determined and obtained in the following manner, including:
The auxiliary service calls the system service according to the power consumption obtaining request, so that the system service determines to obtain the power consumption description information;
And the auxiliary service receives the electric quantity description information and returns the electric quantity description information.
Optionally, the determining unit 43 determines, according to the power description information, power consumption corresponding to each of the applications, including:
Analyzing the power description information, and respectively extracting the description information of the power consumption corresponding to each application program from the power description information;
And determining the power consumption corresponding to each application program according to the description information of the power consumption corresponding to each application program.
In another embodiment provided herein, the apparatus further comprises: an application management unit 44, wherein:
After determining the power consumption amount corresponding to each application program, the application program management unit 44 determines whether the power consumption of each application program is normal according to the power consumption amount corresponding to each application program;
And respectively managing each application program according to the judgment result.
The determining, by the application management unit 44, whether power consumption corresponding to each application is normal according to the power consumption of each application includes:
For each of the applications, performing the following operations:
Acquiring the use information of the application program;
Judging whether the use information of the application program is matched with the power consumption of the application program;
If so, determining that the power consumption of the application program is normal;
And if not, determining that the power consumption of the application program is abnormal.
The application management unit 44 manages the application according to the determination result, and includes:
When determining that the power consumption of the application program is abnormal, automatically executing the operation of closing the application program, or prompting the information of the abnormal power consumption of the application program so as to facilitate a user to determine whether to close the application program.
In short, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Claims (10)

1. A method for obtaining power consumption of an application, comprising:
Receiving confirmation information of an auxiliary service sent by a user, wherein the confirmation information represents that the user allows the auxiliary service to acquire the power consumption of the application program, and the auxiliary service acquires access authority to a system service in advance;
Sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program;
Receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by the auxiliary service by calling the system service and determining by the system service, and the system service determines to obtain the electric quantity description information according to actual hardware information;
And determining the power consumption corresponding to each application program according to the power description information.
2. The method of claim 1,
The auxiliary service is created according to the auxiliary usage provided by the system service, and after the auxiliary service is created, the auxiliary service is set to be used for monitoring a power consumption management interface so as to obtain the electric quantity description information contained in the power consumption management interface in real time.
3. The method of claim 2, wherein the power description information is determined by:
The auxiliary service calls the system service according to the power consumption obtaining request, so that the system service determines to obtain the power consumption description information;
And the auxiliary service receives the electric quantity description information and returns the electric quantity description information.
4. The method of any one of claims 1 to 3, wherein determining the power consumption corresponding to each of the applications according to the power description information comprises:
Analyzing the power description information, and respectively extracting the description information of the power consumption corresponding to each application program from the power description information;
And determining the power consumption corresponding to each application program according to the description information of the power consumption corresponding to each application program.
5. The method of claim 4, wherein after determining the respective power consumption for each of the applications, the method further comprises:
Judging whether the power consumption of each application program is normal or not according to the power consumption corresponding to each application program;
And respectively managing each application program according to the judgment result.
6. The method of claim 5, wherein determining whether power consumption of each of the applications is normal according to the power consumption amount corresponding to each of the applications comprises:
For each of the applications, performing the following operations:
Acquiring the use information of the application program;
Judging whether the use information of the application program is matched with the power consumption of the application program;
If so, determining that the power consumption of the application program is normal;
And if not, determining that the power consumption of the application program is abnormal.
7. The method of claim 6, wherein managing the application based on the determination comprises:
When determining that the power consumption of the application program is abnormal, automatically executing the operation of closing the application program, or prompting the information of the abnormal power consumption of the application program so as to facilitate a user to determine whether to close the application program.
8. An apparatus for obtaining power consumption of an application, comprising:
The system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving confirmation information of auxiliary services sent by a user, the confirmation information represents that the user allows the auxiliary services to acquire the power consumption of the application program, and the auxiliary services acquire the access authority of system services in advance;
The sending unit is used for sending a power consumption obtaining request through the auxiliary service, the power consumption obtaining request is used for requesting to obtain the real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for obtaining power description information in real time, and the power description information comprises the description information of the power consumption corresponding to each application program;
The receiving unit is used for receiving the electric quantity description information returned by the auxiliary service in real time, the electric quantity description information is obtained by calling the system service by the auxiliary service and is determined by the system service, and the system service determines to obtain the electric quantity description information according to actual hardware information;
And the determining unit is used for determining the power consumption corresponding to each application program according to the power description information.
9. An electronic device, comprising:
A processor; and
A memory arranged to store computer executable instructions that, when executed, cause the processor to:
Receiving confirmation information of an auxiliary service sent by a user, wherein the confirmation information represents that the user allows the auxiliary service to acquire the power consumption of an application program, and the auxiliary service acquires access authority to a system service in advance;
Sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program;
Receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by the auxiliary service by calling the system service and determining by the system service, and the system service determines to obtain the electric quantity description information according to actual hardware information;
And determining the power consumption corresponding to each application program according to the power description information.
10. A computer-readable storage medium storing one or more programs that, when executed by an electronic device including a plurality of application programs, cause the electronic device to:
Receiving confirmation information of an auxiliary service sent by a user, wherein the confirmation information represents that the user allows the auxiliary service to acquire the power consumption of the application program, and the auxiliary service acquires access authority to a system service in advance;
Sending a power consumption acquisition request through the auxiliary service, wherein the power consumption acquisition request is used for requesting to acquire real-time power consumption corresponding to each application program, the auxiliary service is used for providing a service for acquiring power description information in real time, and the power description information comprises description information of the power consumption corresponding to each application program;
Receiving the electric quantity description information returned by the auxiliary service in real time; the electric quantity description information is obtained by the auxiliary service by calling the system service and determining by the system service, and the system service determines to obtain the electric quantity description information according to actual hardware information;
And determining the power consumption corresponding to each application program according to the power description information.
CN201710774727.9A 2017-08-31 2017-08-31 Method and device for acquiring power consumption of application program Active CN107515811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710774727.9A CN107515811B (en) 2017-08-31 2017-08-31 Method and device for acquiring power consumption of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710774727.9A CN107515811B (en) 2017-08-31 2017-08-31 Method and device for acquiring power consumption of application program

Publications (2)

Publication Number Publication Date
CN107515811A CN107515811A (en) 2017-12-26
CN107515811B true CN107515811B (en) 2020-07-28

Family

ID=60725042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710774727.9A Active CN107515811B (en) 2017-08-31 2017-08-31 Method and device for acquiring power consumption of application program

Country Status (1)

Country Link
CN (1) CN107515811B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460337A (en) * 2018-09-20 2019-03-12 艾普有限公司 Power consumption quantity monitoring method, device, equipment and its storage medium
CN109801058B (en) * 2019-01-24 2022-06-03 四川长虹电器股份有限公司 Android system-based automatic payment method
CN110134219B (en) * 2019-05-13 2024-03-19 深圳传音通讯有限公司 Application program background power consumption processing method and device
CN113933581B (en) * 2021-12-17 2022-05-13 荣耀终端有限公司 Power consumption testing method of mobile equipment and mobile equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3950453B2 (en) * 2004-03-18 2007-08-01 阪神エレクトリック株式会社 Control method of control device and control device
US9781148B2 (en) * 2008-10-21 2017-10-03 Lookout, Inc. Methods and systems for sharing risk responses between collections of mobile communications devices
CN105100504B (en) * 2014-05-22 2018-04-27 北京奇虎科技有限公司 Equipment application power consumption management method and apparatus
CN105573891B (en) * 2015-12-15 2019-03-08 北京奇虎科技有限公司 A kind of Android application power consumption statistical method and device
CN105373482A (en) * 2015-12-23 2016-03-02 北京金山安全软件有限公司 Method and device for detecting abnormal power consumption of application program and electronic equipment
CN106776229A (en) * 2016-12-30 2017-05-31 河源市美晨联合智能硬件电子研究院 Power consumption of terminal method of testing and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Accessibility service is consuming a lot of battery;Dreamrulez;《https://stackoverflow.com/questions/35252210/accessibility-service-is-consuming-a-lot-of-battery》;20160208;第1-2页 *

Also Published As

Publication number Publication date
CN107515811A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
CN107515811B (en) Method and device for acquiring power consumption of application program
CN109308263B (en) Applet testing method, device and equipment
CN109214632B (en) Risk control method and equipment
CN111104664B (en) Risk identification method of electronic equipment and server
CN109344066B (en) Method, system and terminal for testing browser page
CN110334013B (en) Decision engine testing method and device and electronic equipment
WO2019227650A1 (en) Event tracking data analysis method, terminal apparatus and computer readable storage medium
CN111163067B (en) Safety testing method and device and electronic equipment
CN110751515A (en) Decision-making method and device based on user consumption behaviors, electronic equipment and storage medium
CN108241560B (en) Memory test method and device and electronic equipment
TW202117557A (en) Content display method and apparatus, and electronic device
CN110046235B (en) Knowledge base assessment method, device and equipment
CN109345081B (en) Data acquisition method and device and electronic equipment
CN112954056B (en) Method and device for processing monitoring data, electronic equipment and storage medium
CN110443291B (en) Model training method, device and equipment
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN109542775B (en) Test script generation and execution method and device
CN115052037B (en) Client detection method, device, storage medium and equipment
CN110838929B (en) System error checking method and system error checking device
CN108133123B (en) Application program identification method and system
CN111475148A (en) Third-party dependent library isolation method and device, electronic equipment and storage medium
CN111967769B (en) Risk identification method, apparatus, device and medium
CN109615465B (en) Service order processing method and device and electronic equipment
CN113672660A (en) Data query method, device and equipment
CN110659178A (en) System running state adjusting method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 207A, 2nd floor, No. 2 Information Road, Haidian District, Beijing 100085 (1-8th floor, Building D, 2-2, Beijing Shichuang High-Tech Development Corporation)

Applicant after: QILIN HESHENG NETWORK TECHNOLOGY Inc.

Address before: Room 207A, 2nd floor, No. 2 Information Road, Haidian District, Beijing 100085 (1-8th floor, Building D, 2-2, Beijing Shichuang High-Tech Development Corporation)

Applicant before: QILIN HESHENG NETWORK TECHNOLOGY Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant