CN108874572A - Detection method, device, server and the storage medium of abnormal power consumption - Google Patents
Detection method, device, server and the storage medium of abnormal power consumption Download PDFInfo
- Publication number
- CN108874572A CN108874572A CN201810454465.2A CN201810454465A CN108874572A CN 108874572 A CN108874572 A CN 108874572A CN 201810454465 A CN201810454465 A CN 201810454465A CN 108874572 A CN108874572 A CN 108874572A
- Authority
- CN
- China
- Prior art keywords
- power consumption
- terminal
- state
- app
- screen state
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
Abstract
The disclosure is directed to detection method, device, server and the storage mediums of a kind of abnormal power consumption.This method includes:Log is reported according to the end-error of user feedback, determines power consumption rate of the terminal under dbjective state;The error reporting log includes power consumption information of the terminal under the dbjective state;According to power consumption rate of the terminal under the dbjective state, determining the terminal, whether power consumption is abnormal;When the terminal power consumption exception, according to the error reporting log and power consumption influence factor corresponding with the dbjective state, the reason of the terminal power consumption exception is determined.The disclosure saves manual time and energy, improves efficiency.
Description
Technical field
This disclosure relates to field of computer technology more particularly to a kind of detection method of abnormal power consumption, device, server and
Storage medium.
Background technique
In general, the speed of terminal battery electricity quantity consumption, directly affects user experience.Terminal battery electricity quantity consumption is faster,
User is that the frequency of terminal charge is higher, and user experience is poorer.
In the related technology, in order to obtain terminal abnormal power consumption in time the case where, currently provides user's triggering terminal
The processing of error reporting (bug report) log is reported to server.Specifically, when user thinks that terminal power consumption has exception
When, error reporting log can be reported to server with triggering terminal.It further, can be by the terminal that is obtained from server
Error reporting log, manual analysis determine the problem of terminal whether there is abnormal power consumption.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of detection method of abnormal power consumption, device, service
Device and storage medium.
According to the first aspect of the embodiments of the present disclosure, a kind of detection method of abnormal power consumption is provided, including:
Log is reported according to the end-error of user feedback, determines power consumption rate of the terminal under dbjective state;The mistake
It includes power consumption information of the terminal under the dbjective state that log is accused in wrong report;
According to power consumption rate of the terminal under the dbjective state, determining the terminal, whether power consumption is abnormal;
When the terminal power consumption exception, according to the error reporting log and power consumption corresponding with the dbjective state influence because
Element determines the reason of terminal power consumption exception.
Optionally, when the terminal power consumption is normal, determine that the error reporting log of the user feedback is invalid.
Optionally, which includes screen state and/or the bright screen state of going out.
Optionally, which includes at least one of following:
Application program App holds the number for waking up lock, App holds the duration for waking up lock, time of App Wireless Fidelity scanning
Duration, the operating system that number, App Wireless Fidelity scan hold the number for waking up lock, operating system holds the duration of wake-up lock, grasp
Make the number of system wake-up kernel, the duration of operating system wake-up kernel.
Optionally, the corresponding power consumption influence factor of the bright screen state includes at least one of following:
Application program App's uses duration, the system resource occupancy situation of App.
According to the second aspect of an embodiment of the present disclosure, a kind of detection device of abnormal power consumption is provided, including:
Power consumption rate determining module is configured as reporting log according to the end-error of user feedback, determines that the terminal exists
Power consumption rate under dbjective state;The error reporting log includes power consumption information of the terminal under the dbjective state;
Power consumption exception determining module, is configured as the power consumption rate according to the terminal under the dbjective state, determines the end
Whether power consumption is abnormal at end;
Abnormal cause determining module is configured as when the terminal power consumption exception, according to the error reporting log and with
The corresponding power consumption influence factor of the dbjective state, determines the reason of terminal power consumption exception.
Optionally, the device further includes:Invalid module is configured as when the terminal power consumption is normal, determines that the user is anti-
The error reporting log of feedback is invalid.
Optionally, which includes screen state and/or the bright screen state of going out.
Optionally, which includes at least one of following:
Application program App holds the number for waking up lock, App holds the duration for waking up lock, time of App Wireless Fidelity scanning
Duration, the operating system that number, App Wireless Fidelity scan hold the number for waking up lock, operating system holds the duration of wake-up lock, grasp
Make the number of system wake-up kernel, the duration of operating system wake-up kernel.
Optionally, the corresponding power consumption influence factor of the bright screen state includes at least one of following:
Application program App's uses duration, the system resource occupancy situation of App.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, including:
Processor and memory for storing computer instruction;The processor runs the computer instruction and executes
The above-mentioned described in any item methods of first aspect.
According to the third aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine instruction, the computer instruction realize above-mentioned first aspect described in any item methods when being executed by processor.
Detection method, device, server and the storage medium for the abnormal power consumption that the disclosure provides, by according to user feedback
End-error report log, power consumption rate of the terminal under dbjective state is determined, according to the terminal under the dbjective state
Power consumption rate, determining the terminal, whether power consumption is abnormal, when the terminal power consumption exception, according to the error reporting log and with
The corresponding power consumption influence factor of the dbjective state, determines the reason of terminal power consumption exception, realizes the end according to user feedback
The error reporting log at end, determines the reason of terminal power consumption exception, saves manual time and energy, improve efficiency.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of block diagram of the detection method of abnormal power consumption shown according to an exemplary embodiment;
Fig. 2 is a kind of block diagram of the detection method of the abnormal power consumption shown according to another exemplary embodiment;
Fig. 3 is a kind of block diagram of the detection method of the abnormal power consumption shown according to a further exemplary embodiment;
Fig. 4 is a kind of block diagram of the detection device of abnormal power consumption shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the detection device of the abnormal power consumption shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of the server shown according to a further exemplary embodiment;
Fig. 7 is a kind of block diagram of server 1900 shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of block diagram of the detection method of abnormal power consumption shown according to an exemplary embodiment.The present embodiment mentions
The executing subject of the detection method of the abnormal power consumption of confession can be server.As shown in Figure 1, the method for the present embodiment can wrap
It includes:
In a step 101, log is reported according to the end-error of user feedback, determine consumption of the terminal under dbjective state
Electric speed.
It include power consumption information of the terminal under dbjective state in the error reporting log in this step.Wherein, target-like
Power consumption information under state is specifically as follows under dbjective state one of any information relevant to power consumption or a variety of.For example, wrong
Wrong report is accused can recorde in log:The corresponding remaining capacity of different time points;The time point of dbjective state is switched to, and
Leave the time point of dbjective state;Each application program (Application, App) holds the time point for waking up lock, and release is called out
It wakes up the time point locked;The time point of each App starting Wireless Fidelity (Wireless Fidelity, WiFi) scanning and stopping
The time point of WiFi scanning, operating system hold the time point for waking up lock, and release wakes up the time point of lock;Etc..
It should be noted that the disclosure is not for the concrete mode for the end-error report log for obtaining user feedback
It limits.Optionally, it can receive the error reporting log for reporting instruction to send that terminal is inputted according to user;Alternatively, can be with
The error reporting log of other servers transmission is received, which, which can be, is reported by terminal according to what user inputted
Instruction is sent to other servers.Specifically, can be inputted to terminal when user thinks terminal power consumption exception and report instruction,
So that terminal reports its error reporting log.
In a step 102, the power consumption rate according to the terminal under the dbjective state, determining the terminal, whether power consumption is different
Often.
In this step, optionally, when the terminal is greater than or equal to the dbjective state pair in the power consumption rate of the dbjective state
When the default power consumption rate answered, terminal power consumption exception can be determined;When the terminal is less than in the power consumption rate of the dbjective state
Or when being equal to the corresponding default power consumption rate of the dbjective state, it can determine that the terminal power consumption is normal.It is further alternative, it can be with
According to multiple terminals of acquisition respective power consumption time and power consumption under the dbjective state is got ready, determine that the dbjective state is corresponding
Default power consumption rate.
In step 103, when the terminal power consumption exception, according to the error reporting log and corresponding with the dbjective state
Power consumption influence factor, determine the reason of terminal power consumption exception.
In this step, due to including the terminal in error reporting log under the dbjective state, relevant to power consumption
One of information of anticipating is a variety of, therefore the reason of power consumption exception can be further analyzed according to error reporting log.Also,
Terminal is considered under different conditions, and the factor for influencing its power consumption may be different, therefore, according to error reporting log and can combine
The corresponding power consumption influence factor of the dbjective state, determines the reason of terminal power consumption exception.
The detection method of exception power consumption provided in this embodiment, by reporting log according to the end-error of user feedback,
It determines power consumption rate of the terminal under dbjective state, according to power consumption rate of the terminal under the dbjective state, determines the end
Whether power consumption is abnormal at end, when the terminal power consumption exception, according to the error reporting log and consumption corresponding with the dbjective state
Electric influence factor determines the reason of terminal power consumption exception, realizes the error reporting log according to the terminal of user feedback, really
The reason for determining terminal power consumption exception, saves manual time and energy, improves efficiency.
Fig. 2 is a kind of block diagram of the detection method of the abnormal power consumption shown according to another exemplary embodiment.The present embodiment
On the basis of embodiment shown in Fig. 1, a kind of concrete implementation mode is essentially described.As shown in Fig. 2, the method for the present embodiment
May include:
In step 201, log is reported according to the end-error of user feedback, determine consumption of the terminal under dbjective state
Electric speed.
In this step, optionally, which may include bright screen state and/or screen state of going out.Wherein, bright screen state
It can specifically refer to the bright state of screen point, screen state of going out can refer to the state that screen extinguishes.
In step 202, the power consumption rate according to the terminal under the dbjective state, determining the terminal, whether power consumption is different
Often.
In this step, optionally, if dbjective state includes bright screen state or screen state of going out, when the terminal is in the target-like
When the power consumption rate of state is greater than or equal to the dbjective state corresponding default power consumption rate, terminal power consumption exception can be determined;
It, can be true when the terminal is when the power consumption rate of the dbjective state is less than or equal to the corresponding default power consumption rate of the dbjective state
The fixed terminal power consumption is normal.
If dbjective state includes bright screen state and screen state of going out, when the terminal is greater than in the power consumption rate of the bright screen state
Or when being equal to the corresponding first default power consumption rate of the bright screen state, it can determine that terminal power consumption under the bright screen state is abnormal;
It, can when the terminal is when this goes out and shields the power consumption rate of state and be greater than or equal to the corresponding second default power consumption rate of the screen state of going out
To determine that terminal power consumption in the case where this goes out screen state is abnormal;It is somebody's turn to do when the terminal is less than or equal in the power consumption rate of the bright screen state
When the corresponding first default power consumption rate of bright screen state, it can determine that terminal power consumption under the bright screen state is normal;When the terminal
When this goes out and shields the power consumption rate of state and be less than or equal to the corresponding second default power consumption rate of the screen state of going out, this can be determined
Terminal power consumption in the case where this goes out screen state is normal.It is further alternative, when terminal is under bright screen state and equal power consumption under screen state of going out
When normal, it is believed that the terminal power consumption is normal;When terminal is under bright screen state or when power consumption exception under screen state of going out, can recognize
For terminal power consumption exception.Wherein, the described first default power consumption rate can be greater than the second default power consumption rate.
In step 203, when the terminal power consumption exception, according to the error reporting log and corresponding with the dbjective state
Power consumption influence factor, determine the reason of terminal power consumption exception.
In this step, optionally, for screen state of going out, corresponding power consumption influence factor includes at least one in following
Kind:Application program App holds the number for waking up lock, App holds the duration for waking up lock, number, the App of the scanning of App Wireless Fidelity
Duration, the operating system of Wireless Fidelity scanning hold the number for waking up lock, operating system holds the duration for waking up lock, operating system
Wake up the number of kernel, the duration of operating system wake-up kernel.Wherein, the wake-up that operating system is held is locked
Kernel Wakelock, Kernerl Wakeup, the wake-up lock that App holds for example can be Partial Wakelock.
Optionally, for bright screen state, corresponding power consumption influence factor includes at least one of following:Application program
App's uses duration, the system resource occupancy situation of App.
Optionally, if dbjective state includes bright screen state and screen state of going out, and the reason of terminal power consumption exception includes terminal
Power consumption is abnormal under bright screen state and screen state of going out, then step 203 can specifically include:According to the error reporting log, it is somebody's turn to do
The bright corresponding power consumption influence factor of screen state and power consumption influence factor corresponding with the screen state of going out, it is comprehensive to determine terminal consumption
The reason of electrical anomaly.For example, determining should according to the error reporting log and power consumption influence factor corresponding with the bright screen state
The reason of terminal power consumption exception under bright screen state;According to the error reporting log and power consumption shadow corresponding with the screen state of going out
The factor of sound, determines the reason of terminal power consumption exception under screen state of going out, to the original of terminal power consumption exception under bright screen state
Cause and terminal reason of power consumption exception under screen state of going out are integrated, and the reason of terminal power consumption exception is obtained.
It optionally, further, can be with following steps 204 after the reason for determining terminal power consumption exception.
In step 204, the reason of terminal power consumption exception is prompted the user with.
In this step, concrete mode the reason of for prompting the user with the terminal abnormal power consumption, the disclosure is not limited
It is fixed, for example, the reason of the terminal abnormal power consumption can be prompted the user with by way of popping up prompt window.By being mentioned to user
The reason of showing the terminal abnormal power consumption, can in order to user understand terminal abnormal power consumption the reason of, improve user experience.
Alternatively, optional, after the reason for determining terminal power consumption exception, server further can also be to terminal abnormal
The reason of power consumption, is counted, is analyzed.
Optionally, method provided in this embodiment can also include the following steps 205.
In step 205, when the terminal power consumption is normal, determine that the error reporting log of the user feedback is invalid.
In this step, since user is usually to deposit the error reporting day of feedback terminal when abnormal in the power consumption for thinking terminal
Will, therefore, when the error reporting log according to user feedback, when determining that terminal power consumption is normal, it is believed that the mistake of user feedback
Wrong report accuses log there is no the value further analyzed, and the error reporting log by determining the user feedback is invalid, can be with
The subsequent data volume for needing to analyze is reduced, convenient for effectively being managed data.Optionally, in the mistake for determining user feedback
After reporting that log is invalid, further, which can be deleted.
The detection method of exception power consumption provided in this embodiment, by reporting log according to the end-error of user feedback,
It determines power consumption rate of the terminal under dbjective state, according to power consumption rate of the terminal under the dbjective state, determines the end
Whether power consumption is abnormal at end, when the terminal power consumption exception, according to the error reporting log and consumption corresponding with the dbjective state
Electric influence factor determines the reason of terminal power consumption exception, realizes the error reporting log according to the terminal of user feedback, really
The reason for determining terminal power consumption exception, saves manual time and energy, improves efficiency.In addition, when the terminal power consumption is normal,
Determine that the error reporting log of the user feedback is invalid, it is possible to reduce it is subsequent to need the data volume analyzed, convenient for data into
Row effectively management.
Fig. 3 is a kind of block diagram of the detection method of the abnormal power consumption shown according to a further exemplary embodiment.The present embodiment
On the basis of Fig. 1 or embodiment illustrated in fig. 2, one kind that dbjective state includes bright screen state He goes out when shielding state is essentially described
Concrete implementation mode.As shown in figure 3, the method for the present embodiment may include:
In step 301, log is reported according to the end-error of user feedback, determine that the terminal is only under screen state of going out
Power consumption is abnormal, and still only power consumption is abnormal under bright screen state, or under go out screen state and bright screen state extremely.
In this step, specifically, can report log according to the end-error of user feedback, determine terminal in screen state of going out
With respective power consumption rate under bright screen state;Further, according to the terminal under go out screen state and bright screen state respective consumption
Electric speed determines that the terminal is that only power consumption is abnormal under screen state of going out, and still only power consumption is abnormal under bright screen state, or is going out
It is abnormal under screen state and bright screen state.When determining the terminal is the only power consumption exception under screen state of going out, step 302 is executed;
When determining the terminal is the only power consumption exception under bright screen state, step 303 is executed;When determine the terminal be go out screen state and
When power consumption is abnormal under bright screen state, step 304 is executed.
In step 302, it according to the error reporting log and power consumption influence factor corresponding with the screen state of going out, determines
The reason of terminal power consumption exception.
In this step, optionally, the corresponding power consumption influence factor of screen state of going out includes at least one of following:Using journey
Sequence App holds the number for waking up lock, App holds the duration for waking up lock, the number of App Wireless Fidelity scanning, App Wireless Fidelity are swept
Duration, the operating system retouched hold the number for waking up lock, operating system holds the duration for waking up lock, operating system wakes up kernel
Number, operating system wake up the duration of kernel.For example, it is assumed that some App holds time for waking up lock in screen state of going out lower 3 hours
Number be greater than 100 times, can determine the terminal power consumption exception reason include the App hold wake up lock number it is higher;In another example
Assuming that the duration that operating system wakes up kernel is greater than 4 hours in screen state of going out lower 6 hours, terminal power consumption exception can be determined
The reason of include operating system wake up kernel duration it is longer;Etc..As can be seen that passing through the above-mentioned corresponding power consumption of screen state of going out
Influence factor can be determined:Terminal power consumption is particularly due to operating system reason extremely, or due to App or two
Person has.
In step 303, it according to the error reporting log and power consumption influence factor corresponding with the bright screen state, determines
The reason of terminal power consumption exception.
In this step, optionally, the corresponding power consumption influence factor of the bright screen state includes at least one of following:Using
Program App's uses duration, the system resource occupancy situation of App.Wherein, the system resource occupancy situation of App is specifically as follows
Central processing unit (Central Processing Unit, CPU) occupation rate of App.For example, in 10 minutes, the CPU of some App
Occupation rate is persistently greater than 70%, can determine terminal power consumption exception reason include the App CPU occupation rate it is higher.In another example
In 5 hours, the use duration of some App is greater than 4 hours, can determine that the reason of terminal power consumption exception includes making for the App
It is longer with duration.
In step 304, it according to the error reporting log and power consumption influence factor corresponding with the screen state of going out, determines
The reason of terminal power consumption exception in the case where this goes out screen state, according to the error reporting log and consumption corresponding with the bright screen state
Electric influence factor, determines the reason of terminal power consumption exception under the bright screen state, and is gone out under screen state according to the terminal at this
With the reason of power consumption exception respective under bright screen state, the reason of terminal power consumption exception is determined.
In this step, about according to the error reporting log and power consumption influence factor corresponding with the screen state of going out, really
Fixed terminal concrete mode of the reason of power consumption exception in the case where this goes out screen state may refer to step 302, and details are not described herein.It closes
According to the error reporting log and power consumption influence factor corresponding with the bright screen state, determine the terminal in the bright screen state
The concrete mode of the reason of lower power consumption exception may refer to step 303, and details are not described herein.Optionally, it can determine that terminal consumes
The reason of electrical anomaly includes:The terminal in the case where this goes out screen state the reason of power consumption exception and the terminal under the bright screen state
The reason of power consumption exception;Alternatively, can be by the reason of terminal power consumption exception in the case where this goes out screen state, and under the bright screen state
The reason of App all referred in the reason of power consumption exception is as terminal abnormal power consumption.For example, it is assumed that terminal is under screen state of going out
The reason of power consumption exception include App_1 hold wake up lock number it is higher, the reason packet of terminal power consumption exception under bright screen state
The reason of use duration for including App_1 is longer, then can determine the terminal abnormal power consumption is App_1.
The detection method of exception power consumption provided in this embodiment, reports log according to the end-error of user feedback, determines
The terminal is that only power consumption is abnormal under screen state of going out, and still only power consumption is abnormal under bright screen state, or in the screen state and bright of going out
It is abnormal under screen state;When determining the terminal is the only power consumption exception under screen state of going out, according to the error reporting log and
Power consumption influence factor corresponding with the screen state of going out, determines the reason of terminal power consumption exception;When determining that the terminal is only bright
Under screen state when power consumption exception, according to the error reporting log and power consumption influence factor corresponding with the bright screen state, determine
The reason of terminal power consumption exception;When determining the terminal is that power consumption is abnormal under go out screen state and bright screen state, according to this
Error reporting log and power consumption influence factor corresponding with the screen state of going out determine that terminal power consumption in the case where this goes out screen state is different
Normal reason determines the terminal at this according to the error reporting log and power consumption influence factor corresponding with the bright screen state
The reason of power consumption exception under bright screen state, and respective power consumption is abnormal according to the terminal in the case where this goes out screen state and under bright screen state
The reason of, determine the reason of terminal power consumption exception, dbjective state include bright screen state and go out screen state on the basis of, realize
According to the error reporting log of the terminal of user feedback, determines the reason of terminal power consumption exception, save manual time and essence
Power improves efficiency.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device
Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of block diagram of the detection device of abnormal power consumption shown according to an exemplary embodiment.The device can be with
Pass through being implemented in combination with as some or all of of server for software, hardware or both.Referring to Fig. 4, which includes:Consumption
Electric speed determination module 401, power consumption exception determining module 402 and abnormal cause determining module 403.Wherein,
Power consumption rate determining module 401 is configured as reporting log according to the end-error of user feedback, determines the terminal
Power consumption rate under dbjective state;The error reporting log includes power consumption information of the terminal under the dbjective state;
Power consumption exception determining module 402 is configured as the power consumption rate according to the terminal under the dbjective state, and determining should
Whether power consumption is abnormal for terminal;
Abnormal cause determining module 403 is configured as when the terminal power consumption exception, according to the error reporting log and
Power consumption influence factor corresponding with the dbjective state, determines the reason of terminal power consumption exception.
Optionally, which includes screen state and/or the bright screen state of going out.
Optionally, which includes at least one of following:
Application program App holds the number for waking up lock, App holds the duration for waking up lock, time of App Wireless Fidelity scanning
Duration, the operating system that number, App Wireless Fidelity scan hold the number for waking up lock, operating system holds the duration of wake-up lock, grasp
Make the number of system wake-up kernel, the duration of operating system wake-up kernel.
Optionally, the corresponding power consumption influence factor of the bright screen state includes at least one of following:
Application program App's uses duration, the system resource occupancy situation of App.
In conclusion the detection device for the abnormal power consumption that the embodiment of the present disclosure provides, passes through power consumption rate determining module root
Log is reported according to the end-error of user feedback, determines power consumption rate of the terminal under dbjective state, the extremely determining mould of power consumption
Power consumption rate of the root tuber according to the terminal under the dbjective state, determining the terminal, whether power consumption is abnormal, abnormal cause determining module
When the terminal power consumption exception, according to the error reporting log and power consumption influence factor corresponding with the dbjective state, determine
The reason of terminal power consumption exception realizes the error reporting log according to the terminal of user feedback, determines terminal power consumption exception
The reason of, manual time and energy are saved, efficiency is improved.
Fig. 5 is a kind of block diagram of the detection device of the abnormal power consumption shown according to another exemplary embodiment.Reference Fig. 5,
On the basis of device block diagram shown in Fig. 4, optionally, which can also include:Invalid module 404 is configured as working as and be somebody's turn to do
When terminal power consumption is normal, determine that the error reporting log of the user feedback is invalid.
In conclusion the detection device for the abnormal power consumption that the embodiment of the present disclosure provides, by when the terminal power consumption is normal,
Determine that the error reporting log of the user feedback is invalid, it is possible to reduce it is subsequent to need the data volume analyzed, convenient for data into
Row effectively management.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 is a kind of block diagram of the server shown according to a further exemplary embodiment, as shown in fig. 6, the server can
To include:Processor 601 and memory 602 for storing computer instruction.
Wherein, processor 601 runs the computer instruction and executes following methods:
Log is reported according to the end-error of user feedback, determines power consumption rate of the terminal under dbjective state;The mistake
It includes power consumption information of the terminal under the dbjective state that log is accused in wrong report;
According to power consumption rate of the terminal under the dbjective state, determining the terminal, whether power consumption is abnormal;
When the terminal power consumption exception, according to the error reporting log and power consumption corresponding with the dbjective state influence because
Element determines the reason of terminal power consumption exception.
Optionally, when the terminal power consumption is normal, determine that the error reporting log of the user feedback is invalid.
Optionally, which includes screen state and/or the bright screen state of going out.
Optionally, which includes at least one of following:
Application program App holds the number for waking up lock, App holds the duration for waking up lock, time of App Wireless Fidelity scanning
Duration, the operating system that number, App Wireless Fidelity scan hold the number for waking up lock, operating system holds the duration of wake-up lock, grasp
Make the number of system wake-up kernel, the duration of operating system wake-up kernel.
Optionally, the corresponding power consumption influence factor of the bright screen state includes at least one of following:
Application program App's uses duration, the system resource occupancy situation of App.
Fig. 7 is a kind of block diagram of server 1900 shown according to an exemplary embodiment.Referring to Fig. 7, server 1900
It further comprise one or more processors and memory represented by a memory 1932 including processing component 1922
Resource, can be by the instruction of the execution of processing component 1922, such as application program for storing.The application stored in memory 1932
Program may include it is one or more each correspond to one group of instruction module.In addition, processing component 1922 is matched
It is set to and executes instruction, to execute the above method.
Server 1900 can also include the power management that a power supply module 1926 is configured as execute server 1900,
One wired or wireless network interface 1950 is configured as server 1900 being connected to network and an input and output (I/O)
Interface 1958.Server 1900 can be operated based on the operating system for being stored in memory 1932, such as Windows
ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1932 of instruction, above-metioned instruction can be executed by the processing component 1922 of server 1900 to complete above-mentioned side
Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic
Band, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of server 1900
When device executes, so that server 1900 is able to carry out a kind of detection method of abnormal power consumption, this method includes:
Log is reported according to the end-error of user feedback, determines power consumption rate of the terminal under dbjective state;The mistake
It includes power consumption information of the terminal under the dbjective state that log is accused in wrong report;
According to power consumption rate of the terminal under the dbjective state, determining the terminal, whether power consumption is abnormal;
When the terminal power consumption exception, according to the error reporting log and power consumption corresponding with the dbjective state influence because
Element determines the reason of terminal power consumption exception.
Optionally, when the terminal power consumption is normal, determine that the error reporting log of the user feedback is invalid.
Optionally, which includes screen state and/or the bright screen state of going out.
Optionally, which includes at least one of following:
Application program App holds the number for waking up lock, App holds the duration for waking up lock, time of App Wireless Fidelity scanning
Duration, the operating system that number, App Wireless Fidelity scan hold the number for waking up lock, operating system holds the duration of wake-up lock, grasp
Make the number of system wake-up kernel, the duration of operating system wake-up kernel.
Optionally, the corresponding power consumption influence factor of the bright screen state includes at least one of following:
Application program App's uses duration, the system resource occupancy situation of App.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are wanted by right
Book is asked to point out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims
System.
Claims (12)
1. a kind of detection method of exception power consumption, which is characterized in that including:
Log is reported according to the end-error of user feedback, determines power consumption rate of the terminal under dbjective state;The mistake
It includes power consumption information of the terminal under the dbjective state that log is accused in wrong report;
According to power consumption rate of the terminal under the dbjective state, determining the terminal, whether power consumption is abnormal;
When the terminal power consumption exception, influenced according to the error reporting log and power consumption corresponding with the dbjective state
Factor determines the reason of the terminal power consumption exception.
2. the method according to claim 1, wherein the method also includes:
When the terminal power consumption is normal, determine that the error reporting log of the user feedback is invalid.
3. method according to claim 1 or 2, which is characterized in that the dbjective state includes go out screen state and/or bright screen
State.
4. according to the method described in claim 3, it is characterized in that, under the corresponding power consumption influence factor of the screen state of going out includes
At least one of state:
Application program App holds the number for waking up lock, App holds the duration for waking up lock, number, the App of the scanning of App Wireless Fidelity
Duration, the operating system of Wireless Fidelity scanning hold the number for waking up lock, operating system holds the duration for waking up lock, operating system
Wake up the number of kernel, the duration of operating system wake-up kernel.
5. according to the method described in claim 3, it is characterized in that, under the corresponding power consumption influence factor of the bright screen state includes
At least one of state:
Application program App's uses duration, the system resource occupancy situation of App.
6. a kind of detection device of exception power consumption, which is characterized in that including:
Power consumption rate determining module is configured as reporting log according to the end-error of user feedback, determines the terminal in mesh
Power consumption rate under mark state;The error reporting log includes power consumption information of the terminal under the dbjective state;
Power consumption exception determining module, is configured as the power consumption rate according to the terminal under the dbjective state, determine described in
Whether power consumption is abnormal for terminal;
Abnormal cause determining module is configured as when the terminal power consumption exception, according to the error reporting log and with
The corresponding power consumption influence factor of the dbjective state, determines the reason of the terminal power consumption exception.
7. device according to claim 6, which is characterized in that described device further includes:Invalid module is configured as working as
When the terminal power consumption is normal, determine that the error reporting log of the user feedback is invalid.
8. device according to claim 6 or 7, which is characterized in that the dbjective state includes go out screen state and/or bright screen
State.
9. device according to claim 8, which is characterized in that under the corresponding power consumption influence factor of the screen state of going out includes
At least one of state:
Application program App holds the number for waking up lock, App holds the duration for waking up lock, number, the App of the scanning of App Wireless Fidelity
Duration, the operating system of Wireless Fidelity scanning hold the number for waking up lock, operating system holds the duration for waking up lock, operating system
Wake up the number of kernel, the duration of operating system wake-up kernel.
10. device according to claim 8, which is characterized in that the corresponding power consumption influence factor of the bright screen state includes
It is at least one of following:
Application program App's uses duration, the system resource occupancy situation of App.
11. a kind of server, which is characterized in that including:
Processor and memory for storing computer instruction;The processor runs the computer instruction perform claim
It is required that the described in any item methods of 1-5.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction
Claim 1-5 described in any item methods are realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810454465.2A CN108874572A (en) | 2018-05-14 | 2018-05-14 | Detection method, device, server and the storage medium of abnormal power consumption |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810454465.2A CN108874572A (en) | 2018-05-14 | 2018-05-14 | Detection method, device, server and the storage medium of abnormal power consumption |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108874572A true CN108874572A (en) | 2018-11-23 |
Family
ID=64333341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810454465.2A Pending CN108874572A (en) | 2018-05-14 | 2018-05-14 | Detection method, device, server and the storage medium of abnormal power consumption |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108874572A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104361465A (en) * | 2014-11-25 | 2015-02-18 | 深圳市中兴移动通信有限公司 | Log analysis method and device |
US20150128111A1 (en) * | 2013-08-26 | 2015-05-07 | Tencent Technology (Shenzhen) Company Limited | Devices and Methods for Acquiring Abnormal Information |
CN105373482A (en) * | 2015-12-23 | 2016-03-02 | 北京金山安全软件有限公司 | Method and device for detecting abnormal power consumption of application program and electronic equipment |
CN105700656A (en) * | 2014-11-26 | 2016-06-22 | 深圳富泰宏精密工业有限公司 | Standby abnormal power consumption detection system and method |
CN107027160A (en) * | 2017-05-08 | 2017-08-08 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
CN107145425A (en) * | 2017-05-08 | 2017-09-08 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
CN107168851A (en) * | 2017-05-08 | 2017-09-15 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
CN107291603A (en) * | 2017-06-22 | 2017-10-24 | 广东欧珀移动通信有限公司 | Power consumption daily record analytic method, device, mobile terminal and readable storage medium storing program for executing |
-
2018
- 2018-05-14 CN CN201810454465.2A patent/CN108874572A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150128111A1 (en) * | 2013-08-26 | 2015-05-07 | Tencent Technology (Shenzhen) Company Limited | Devices and Methods for Acquiring Abnormal Information |
CN104361465A (en) * | 2014-11-25 | 2015-02-18 | 深圳市中兴移动通信有限公司 | Log analysis method and device |
CN105700656A (en) * | 2014-11-26 | 2016-06-22 | 深圳富泰宏精密工业有限公司 | Standby abnormal power consumption detection system and method |
CN105373482A (en) * | 2015-12-23 | 2016-03-02 | 北京金山安全软件有限公司 | Method and device for detecting abnormal power consumption of application program and electronic equipment |
CN107027160A (en) * | 2017-05-08 | 2017-08-08 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
CN107145425A (en) * | 2017-05-08 | 2017-09-08 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
CN107168851A (en) * | 2017-05-08 | 2017-09-15 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
CN107291603A (en) * | 2017-06-22 | 2017-10-24 | 广东欧珀移动通信有限公司 | Power consumption daily record analytic method, device, mobile terminal and readable storage medium storing program for executing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255653B (en) | Product testing method and terminal thereof | |
US9940187B2 (en) | Nexus determination in a computing device | |
CN112311617A (en) | Configured data monitoring and alarming method and system | |
Zhang et al. | A comparison of energy bugs for smartphone platforms | |
CN109921915B (en) | Method and device for testing wake-up function of real-time clock module and electronic equipment | |
US8832839B2 (en) | Assessing system performance impact of security attacks | |
CN108572906A (en) | ANR method for real-time monitoring, device, terminal and storage medium | |
CN112000566B (en) | Method and device for generating test cases | |
CN112702219B (en) | Internet of things network monitoring method, device, equipment and storage medium | |
CN108345453A (en) | Code generating method, code generator and readable storage medium storing program for executing | |
TWI557551B (en) | Electronic apparatus and wake-up method thereof | |
CN109195149A (en) | NAN scanning adjusting method and relevant device | |
CN112583617B (en) | Fault determination method, server, control terminal and storage medium | |
CN108874572A (en) | Detection method, device, server and the storage medium of abnormal power consumption | |
CN116578359A (en) | Micro-service state adjustment method, device, equipment and storage medium | |
CN108494589B (en) | Management method and system of distributed Nginx server | |
CN114650211B (en) | Fault repairing method, device, electronic equipment and computer readable storage medium | |
CN115437865A (en) | Method, device, equipment and medium for testing abnormal power failure of hard disk | |
CN115080412A (en) | Software update quality evaluation method, device, equipment and computer storage medium | |
CN115311764A (en) | Door lock safety evaluation method and related equipment | |
CN105764086B (en) | A kind of terminal duration performance detection method and system | |
CN113452533B (en) | Charging self-inspection and self-healing method and device, computer equipment and storage medium | |
CN114706371A (en) | Complete vehicle network non-dormancy diagnosis method and device, electronic equipment and storage medium | |
CN114637685A (en) | Performance test method, device, equipment and medium of application program in bank system | |
CN107357703A (en) | A kind of terminal applies power consumption detection method and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |
|
RJ01 | Rejection of invention patent application after publication |