CN107391348A - Processing method and processing device for the power consumption condition of application program - Google Patents
Processing method and processing device for the power consumption condition of application program Download PDFInfo
- Publication number
- CN107391348A CN107391348A CN201610326398.7A CN201610326398A CN107391348A CN 107391348 A CN107391348 A CN 107391348A CN 201610326398 A CN201610326398 A CN 201610326398A CN 107391348 A CN107391348 A CN 107391348A
- Authority
- CN
- China
- Prior art keywords
- power consumption
- application program
- value
- time period
- preset time
- 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/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring 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/3062—Monitoring 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
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of processing method and processing device of the power consumption condition for application program.Wherein, this method includes:Since when application program switches to background work state by foreground state, or since the predetermined time after application program is switched to background work state by foreground state, determine actual power consumption value of each process in preset time period in application program;According to actual power consumption value of each process in preset time period, the process for whether having power consumption actual value to exceed power consumption early warning value in application program is judged;In the case where having power consumption actual value in judging application program beyond the process of power consumption early warning value, the relevant information of all functions run under the process is generated.The present invention, which is solved in correlation technique caused by due to that quickly can not be positioned to power consumption abnormity point, can not solve the technical problem of corresponding power consumption abnormal problem.
Description
Technical field
The present invention relates to data processing field, in particular to a kind of processing of the power consumption condition for application program
Method and device.
Background technology
With the development of Android technology, the function of Android application is more and more but associated, and power consumption can also be got over
Come bigger.How to define and find power consumption exception, lift the usage experience of user, in the industry cycle not one it is unified
Standard and error-checking method.
Exemplified by moving Android application, it endures the puzzlement of power consumption problem to the fullest extent always.For example, when user feedback power consumption is abnormal
When, application developer quickly can not position to power consumption abnormity point, and then can not solve corresponding power consumption and ask extremely
Topic.
In view of the above-mentioned problems, not yet propose effective solution at present.
The content of the invention
The embodiments of the invention provide a kind of processing method and processing device of the power consumption condition for application program, at least to solve
Certainly in correlation technique due to that quickly can not be positioned to power consumption abnormity point caused by can not solve corresponding power consumption and ask extremely
The technical problem of topic.
One side according to embodiments of the present invention, there is provided a kind of processing method of power consumption condition for application program,
Including:Since when application program switches to background work state by foreground state, or from application program by preceding
The predetermined time that platform working condition is switched to after background work state starts, and determines that each process exists in above-mentioned application program
Actual power consumption value in preset time period;According to above-mentioned each above-mentioned actual power consumption of the process in above-mentioned preset time period
Value, judge the process for whether thering is power consumption actual value to exceed power consumption early warning value in above-mentioned application program;Judging above-mentioned answer
With having power consumption actual value in program in the case of the process of power consumption early warning value, generate run under the process it is all
The relevant information of function.
Another aspect according to embodiments of the present invention, additionally provide a kind of processing dress of power consumption condition for application program
Put, including:Determining unit, for since when application program switches to background work state by foreground state,
Or since the predetermined time after application program is switched to background work state by foreground state, determine above-mentioned answer
With actual power consumption value of each process in preset time period in program;Judging unit, for according to above-mentioned each process
Above-mentioned actual power consumption value in above-mentioned preset time period, judges whether have power consumption actual value to exceed in above-mentioned application program
The process of power consumption early warning value;Generation unit, for there is power consumption actual value to exceed power consumption in above-mentioned application program is judged
In the case of the process of early warning value, the relevant information of all functions run under the process is generated.
In embodiments of the present invention, need to carry out power consumption exception using by the SDK implantation with power consumption exception positioning function
The mode of the application program of detection, by since when application program switches to background work state by foreground state,
Or since the predetermined time after application program is switched to background work state by foreground state, it is determined that using journey
Actual power consumption value of each process in preset time period in sequence;According to actual consumption of each process in preset time period
Electricity value, judge the process for whether thering is power consumption actual value to exceed power consumption early warning value in application program;Judging application program
In have power consumption actual value in the case of the process of power consumption early warning value, generate all functions for being run under the process
Relevant information, the purpose quickly positioned to power consumption abnormity point is reached, it is achieved thereby that timely and accurately solution pair
The technique effect for the power consumption abnormal problem answered, and then solve in correlation technique due to that quickly can not be clicked through extremely to power consumption
Can not solve the technical problem of corresponding power consumption abnormal problem caused by row positioning.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In accompanying drawing
In:
Fig. 1 is a kind of terminal of the processing method of power consumption condition for application program of the embodiment of the present invention
Hardware block diagram;
Fig. 2 is a kind of stream of the processing method of power consumption condition optionally with application program according to embodiments of the present invention
Cheng Tu;
Fig. 3 is a kind of schematic diagram of optional power consumption detecting system according to embodiments of the present invention;
Fig. 4 is a kind of stream of the processing method of power consumption condition optionally with application program according to embodiments of the present invention
Cheng Tu;
Fig. 5 is a kind of showing for the processing unit of power consumption condition optionally with application program according to embodiments of the present invention
It is intended to.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment
The only embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, ability
The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, should all belong to
The scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this
The data that sample uses can exchange in the appropriate case, so as to embodiments of the invention described herein can with except
Here the order beyond those for illustrating or describing is implemented.In addition, term " comprising " and " having " and they
Any deformation, it is intended that cover it is non-exclusive include, for example, containing the process of series of steps or unit, side
Method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear
It is that ground is listed or for the intrinsic other steps of these processes, method, product or equipment or unit.
The technical term of the application design is simply described below below:
SDK (Software Development Kit, referred to as SDK):Typically some softwares
Engineer is that particular software package, software frame, hardware platform, operating system etc. create the exploitation used during application software
The set of instrument.
Thread stacks:It can provide the complete list of all Java threads for being created out can be with according to thread stacks
Obtain the information such as the title of each thread, running status and the function name that is currently running.
Embodiment 1
According to embodiments of the present invention, a kind of method for additionally providing processing method of the power consumption condition for application program is real
Example is applied, it is necessary to explanation, can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of
Computer system in perform, although also, show logical order in flow charts, in some cases,
Can be with the step shown or described by being performed different from order herein.
The embodiment of the method that the embodiment of the present application one is provided can be in mobile terminal, terminal or similar fortune
Calculate and performed in device.Exemplified by running on computer terminals, Fig. 1 is that one kind of the embodiment of the present invention is used to apply journey
The hardware block diagram of the terminal of the processing method of the power consumption condition of sequence.As shown in figure 1, terminal 10
One or more (one is only shown in figure) processors 102 can be included, and (processor 102 can include but is not limited to
Micro-processor MCV or PLD FPGA etc. processing unit), the memory 104 for data storage,
And the transport module 106 for communication function.It will appreciated by the skilled person that the structure shown in Fig. 1
Only illustrate, it does not cause to limit to the structure of above-mentioned electronic installation.For example, terminal 10 may also include ratio
More either less components shown in Fig. 1 have the configuration different from shown in Fig. 1.
Memory 104 can be used for the software program and module of storage application software, such as being used in the embodiment of the present invention
Programmed instruction/module corresponding to the processing method of the power consumption condition of application program, processor 102 are stored in by operation
Software program and module in reservoir 104, so as to perform various function application and data processing, that is, realize above-mentioned
Application program leak detection method.Memory 104 may include high speed random access memory, may also include non-volatile
Memory, such as one or more magnetic storage device, flash memory or other non-volatile solid state memories.One
In a little examples, memory 104 can further comprise that these are long-range relative to the remotely located memory of processor 102
Memory can pass through network connection to terminal 10.The example of above-mentioned network includes but is not limited to internet, enterprise
Industry in-house network, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network instantiation may include
The wireless network that the communication providerses of terminal 10 provide.In an example, transmitting device 106 includes one
Network adapter (Network Interface Controller, NIC), it can pass through base station and other network equipments
It is connected so as to be communicated with internet.In an example, transmitting device 106 can be radio frequency (Radio
Frequency, RF) module, it is used to wirelessly be communicated with internet.
Under above-mentioned running environment, this application provides the processing of the power consumption condition for application program as shown in Figure 2
Method.Fig. 2 is a kind of processing method of power consumption condition optionally with application program according to embodiments of the present invention
Flow chart.As shown in Fig. 2 this method comprises the following steps:
Step S202, since when application program switches to background work state by foreground state, or from application
Program background work state is switched to by foreground state after predetermined time, determine each to enter in application program
Actual power consumption value of the journey in preset time period;
Step S204, according to actual power consumption value of each process in preset time period, judge whether have in application program
Power consumption actual value exceeds the process of power consumption early warning value;
Step S206, in the case where having power consumption actual value in judging application program beyond the process of power consumption early warning value,
Generate the relevant information of all functions run under the process.
It should be noted that the above-mentioned steps of the present invention can be realized by the SDK with power consumption exception positioning function.
If necessary to detect power consumption condition of some specified application in running background, determine if backstage power consumption be present
It is abnormal, then above-mentioned SDK can be implanted into the application program.So, SDK cans use above-mentioned technical proposal,
Detect the backstage power consumption abnormal conditions of the application program.Wherein, SDK has the minimum spy of small volume, power consumption in itself
Point, any complicated function will not be introduced, and during power consumption condition is detected, what SDK was read is all system
The associated documents of electricity are recorded, the new consumption of system will not be caused, therefore SDK is the power consumption detection system of a lightweight
System.
Specifically, opened when beginning to use application program (the hereinafter referred to as SDK application programs) for implanting SDK from user
Begin, the SDK can detect the related system file for the power consumption information that have recorded SDK application programs, and by CPU, call out
Component parameters (the electric current of such as element that the usage time of the parts such as awake lock (wakelock), sensor, supplier provide
Size is equivalent), the power consumption actual value of above-mentioned part is calculated, and contrasted with power consumption early warning value set in advance, Jin Ergen
It is abnormal to determine whether SDK application programs backstage power consumption have occurred according to comparing result.Wherein, it is abnormal when there is backstage power consumption
When, SDK, which can capture record automatically, the correlation log of power consumption information.For example, if SDK has found to apply in the detection
The power consumption index of some process has exceeded corresponding power consumption early warning threshold values in program, then can use Android under the process
The Debug.startMethodTracing () of system and Debug.stopMethodTracing () function two seconds, it is raw
Into a journal file.In this journal file, line corresponding to all threads of this process in two seconds have recorded
The much information such as journey storehouse and sequential.Trigger thread heap corresponding to the thread of power consumption due to being contained in these journal files
The information such as stack and sequential, therefore application developer can be visually known current SDK by above-mentioned correlation log and apply
The quantity and its order of severity of backstage power consumption abnormal problem present in program, and can find out and power consumption occur and ask extremely
The thread stacks of topic, and then can quickly solve power consumption abnormal problem in backstage present in current SDK application programs.And
And crawl power consumption daily record when used Debug.startMethodTracing () and
Debug.stopMethodTracing () method, these methods can record all program operation details in journal file,
Any one suspicious points will not be leaked through, can so help developer to be accurately positioned and the abnormal point of backstage power consumption occur.
In addition, application developer is corresponding to SDK is implanted into during application program, while the application program can be set
Power consumption early warning value (i.e. power consumption threshold value of warning), the parameter such as safe operation time.Because application program is general on backstage
A part of affairs can be normally handled, therefore pre-set the safe operation time, can be referred to during this period of time, should
Normal power consumption is designated as with power consumption of the program within the safe operation time, avoids the occurrence of what testing result did not squared with the fact
Situation.
By the embodiment of the present invention, need to carry out power consumption exception using by the SDK implantation with power consumption exception positioning function
The mode of the application program of detection, by since when application program switches to background work state by foreground state,
Or since the predetermined time after application program is switched to background work state by foreground state, it is determined that using journey
Actual power consumption value of each process in preset time period in sequence;According to actual consumption of each process in preset time period
Electricity value, judge the process for whether thering is power consumption actual value to exceed power consumption early warning value in application program;Judging application program
In have power consumption actual value in the case of the process of power consumption early warning value, generate all functions for being run under the process
Relevant information, the purpose quickly positioned to power consumption abnormity point is reached, it is achieved thereby that timely and accurately solution pair
The technique effect for the power consumption abnormal problem answered, and then solve in correlation technique due to that quickly can not be clicked through extremely to power consumption
Can not solve the technical problem of corresponding power consumption abnormal problem caused by row positioning.In addition, the present invention has positioning rapid
The characteristics of, experiment shows that it can will position and solve the problems, such as that this flow of power consumption needed to consume several days time drop from original
It is low to needing to consume several hours now, decades of times reduces cost for correcting error and human input.Meanwhile the present invention
Embodiment quantifies the power consumption condition of each process in application program by using specific electricity consumption value, can be in order to developer
The power consumption trend of application program is grasped, so as to set accurate power consumption early warning value etc..
Further, it is above-mentioned it is determined that in application program before actual power consumption value of each process in preset time period
Method also includes:
S2, detect whether the electricity interference operation for user's triggering occur;And/or
Whether S4, detection application program have switched to foreground state by background work state.
Wherein, detecting the electricity interference operation for not occurring user's triggering and/or application program not by background work state
In the case of switching to foreground state, perform and determine each reality of the process in preset time period in application program
The step of electricity consumption value.
For example, during user uses application program, situations below can occur:It will just apply and switch to backstage,
The operation (such as user triggers down operation) of corresponding user behavior is carried out, i.e., again by application program by backstage
Working condition switches to foreground state;Or switch to from the background and have passed through safe operation set in advance that will apply
Time (after such as 10 minutes), perform the operation of corresponding user behavior (such as user triggers down operation).It is corresponding
Ground, SDK carry out above-mentioned S2 and S4, detect whether the electricity interference operation for user's triggering occur;And/or detection
Whether application program has switched to foreground state by background work state.
It should be noted that detecting the electricity interference operation for user's triggering occurred and/or application program by backstage
In the case that working condition switches to foreground state, SDK can abandon this power consumption testing process, and using journey
When sequence switches to background work state by foreground state again, or application program is again by foreground shape
The predetermined time that state is switched to after background work state starts, and opens next power consumption testing process.
By the embodiment of the present invention, the electricity interference operation and application program that can exclude user's triggering are transported in itself
Power consumption caused by the switching of row state changes the influence to whole testing result.
Further, since the predetermined time after application program is switched to background work state by foreground state,
Determine that actual power consumption value of each process in preset time period includes in application program:
S6, the predetermined time after application program switches to background work state by foreground state, it is determined that using journey
The starting electricity consumption value of each process in sequence;
S8, after preset time period, determine the end electricity consumption value of each process in application program;
S10, calculate and using the starting electricity consumption value of each process in application program with terminating the difference between electricity consumption value as corresponding
Actual power consumption value of the process in preset time period.
Specifically, since the predetermined time after application program is switched to background work state by foreground state,
Determine that SDK can be from system in application program during actual power consumption value of each process in preset time period
The data such as CPU run time are read in "/proc/ "+pid+ "/stat ", from system
When the use for waking up lock (wakelock) and sensor is read in/data/system/batterystats.bin files
Between etc. data, from device/ //frameworks/base/core/res/res/xml/power_profile.xml text
The hardware corresponding current parameter of reading terminal equipment (such as mobile phone), then passes through formula " power consumption=CPU fortune in part
Row time × CPU element run mode current values+wakelock usage time × CPU elements wake up state current value+sensing
Usage time × sensor current value of device " calculates, and obtains a power consumption initial value (starting electricity consumption value).Further,
From being started timing, operated after 20 minutes, then from performing once to calculate by formula, calculate and terminate a power consumption
Value.Result of calculation passes through additive operation twice, it can be deduced that the consumption of each process of the application program in this 20 minutes
Electric index.
Because application program is caused by backstage power consumption is mainly CPU, wakelock and sensor etc. extremely, therefore from
Application program background work state is switched to by foreground state after predetermined time, determined by the above method
Actual power consumption value of each process in preset time period in application program, after application program can be oriented exactly
Platform power consumption abnormal problem.
Further, the above method also includes:
S12, in preset time period, detect whether the electricity interference operation for user's triggering occur;And/or
S14, in preset time period, whether detection application program has switched to foreground state by background work state.
Wherein, in preset time period, detect do not occur the electricity interference operation of user's triggering and/or application program not
In the case of switching to foreground state by background work state, perform after preset time period, it is determined that using journey
In sequence the step of the end electricity consumption value of each process.
That is, it is determined that in application program during actual power consumption value of each process in preset time period, may
Situations below occurs:It will just apply and switch to backstage, and be carried out operation (such as user's triggering of corresponding user behavior
Down operation), i.e., application program is switched into foreground state by background work state again;Or it will apply
Switch to backstage and have passed through the safe operation time set in advance (after such as 10 minutes), perform corresponding user behavior
Operation (such as user triggers down operation).Accordingly, SDK carries out above-mentioned S12 and S14, detects whether
There is the electricity interference operation of user's triggering;And/or whether detection application program has switched to foreground by background work state
Working condition.
It should be noted that detecting the electricity interference operation for user's triggering occurred and/or application program by backstage
In the case that working condition switches to foreground state, SDK can abandon this power consumption testing process and abandon this inspection
The related power consumption data measured, and when application program switches to background work state by foreground state again,
Or application program background work state is switched to by foreground state again after predetermined time, open next time
Power consumption testing process.
By the embodiment of the present invention, the electricity interference operation and application program that can exclude user's triggering are transported in itself
Power consumption caused by the switching of row state changes the influence to whole testing result.
Further, in the case where having power consumption actual value in judging application program beyond the process of power consumption early warning value,
And after the relevant information for all functions that generation is run under the process, the above method also includes:
S16, the relevant information of all functions run under the process of generation is uploaded onto the server, server is used for
According to the relevant information of all functions run under the process, the backstage power consumption abnormal conditions of application program are divided
Class processing.
Specifically, because SDK is during detection application program whether there is backstage power consumption exception, be able to be able to can give birth to
Into multiple power consumption daily records, in these power consumption daily records, it is understood that there may be multiple power consumption daily records describe showing for power consumption problem
As, in such case, developer directly uses above-mentioned daily record, not only needs to check all data informations, and
It is difficult to summarize and occurs a few class power consumption problems altogether.For the problem, especially in the feelings in face of substantial amounts of power consumption daily record
Under condition, its whole can be uploaded to the server specified by SDK, and the server can be according to method usage time, letter
Number takes the information such as CPU time (i.e. thread occupancy CPU time), and classification processing is carried out to these power consumption daily records,
Daily record is classified with the position of the power consumption order of severity and power consumption code, in order to power consumption corresponding to developer's solution
Problem.
Specifically, server can parse the daily record that SDK is sent by other instruments such as antialiasing, dmtracedump
File, and sort, the point of the power consumption problem suggested by journal file for example, can have according to CPU usage times
Body resolves to three functions in application, and according to the order of severity of CPU holding times classification power consumption problem.So,
According to three functions and the power consumption order of severity, by the journal file classification of server, put together, and be shown,
And download log interface is provided, facilitates developer to solve the problems, such as power consumption.
It should be noted that the embodiment above provided by the invention experimentally put into UC browsers in use,
In 2 months used, it was found that more than 20 serious power consumption problem, wherein most have all rapidly solved
Certainly.For a user, feedback of the user to power consumption is significantly reduced, improves Consumer's Experience;For exploitation
For personnel, the discovery of power consumption problem, investigation, the cycle of feedback are effectively shortened, improves development efficiency.
It should be noted that the present invention can also be realized by SDK power consumptions detecting system, the power consumption detecting system pair
The system module figure answered is as shown in Figure 3.Wherein, power consumption detecting system includes:Server, program is detected (before i.e.
Application program described in text), Android system and SDK.SDK is used to defining and calculating electricity consumption value, and with power consumption early warning value
Compare, the trace files of each process of striding course crawl application, trace files are uploaded onto the server;Android
System is used for the information using file record application CPU consumption informations and cell phone components, there is provided crawl trace files
Method;Program is detected to be used to provide opportunity, safe operation time and influence power consumption behavior that application switches to backstage
Information, it is implanted SDK;Server is used to classify power consumption problem and shows the power consumption problem classified, can during classification
With according to function usage time account for first three carry out classify, or classified according to thread usage time.
The present invention is elaborated with a specific embodiment below in conjunction with Fig. 4:
Step S402, start;
Step S404, is implanted into SDK in the application;
Step S406, application program switch to background operation state;
Step S408, running background pass through certain safe operation time (such as 10 minutes);
Step S410, power consumption interference behavior (as downloaded) is determined whether, if so, step S412A is then performed, if so,
Then perform step S412B;
Step S412A, this detection is abandoned, wait detection next time;
Step S412B, power consumption data is obtained from system file, calculate simultaneously record start electricity consumption value;
Step S414, wait 20 minutes, wherein, if there is interference power consumption behavior period, such as downloads, then perform step
Rapid S412A, otherwise, then perform step S416;
Step S416, power consumption data is obtained from system file, calculate simultaneously record end electricity consumption value;
Step S418, starting electricity consumption value is calculated with terminating the difference of electricity consumption value, calculates this power consumption actual value of 20 minutes;
Step S420, power consumption early warning value is seen if fall out, if it is not, step S412A is then performed, if so, then performing
Step S422;
Step S422, calling system method, trace files are generated, the information abnormal for obtaining power consumption;
Step S424, daily record is uploaded to server;
Step S426, server capture the time that each daily record thread takes and most long three of function timing;
Step S428, the most long all daily records of the time of thread occupancy and function timing are divided into one kind, represent same
One power consumption problem;
Step S430, these problems and detailed power consumption function are shown to the developer of application program;
Step S432, developer is by these power consumption function locatings and power consumption corresponding to solving the problems, such as;
Step S434, terminate.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a system
The combination of actions of row, but those skilled in the art should know, the present invention is not limited by described sequence of movement
System, because according to the present invention, some steps can use other orders or carry out simultaneously.Secondly, art technology
Personnel should also know that embodiment described in this description belongs to preferred embodiment, involved action and module
Not necessarily necessary to the present invention.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The processing method of the power consumption condition for application program of example can add the mode of required general hardware platform by software
Realize, naturally it is also possible to which by hardware, but the former is more preferably embodiment in many cases.Based on such understanding,
The part that technical scheme substantially contributes to prior art in other words can in the form of software product body
Reveal and, the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), bag
Some instructions are included to so that a station terminal equipment (can be mobile phone, computer, server, or network equipment etc.)
Perform the method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, a kind of processing for being used to implement the above-mentioned power consumption condition for application program is additionally provided
The device of method, as shown in figure 5, the device includes:Determining unit 502, for from application program by foreground
When state switches to background work state, or from application program by foreground state switch to background work shape
Predetermined time after state starts, and determines actual power consumption value of each process in preset time period in application program;Judge
Unit 504, for the actual power consumption value according to each process in preset time period, judge whether have in application program
Power consumption actual value exceeds the process of power consumption early warning value;Generation unit 506, for there is power consumption in application program is judged
In the case that actual value exceeds the process of power consumption early warning value, the relevant information of all functions run under the process is generated.
It should be noted that the above-mentioned steps of the present invention can be realized by the SDK with power consumption exception positioning function.
If necessary to detect power consumption condition of some specified application in running background, determine if backstage power consumption be present
It is abnormal, then above-mentioned SDK can be implanted into the application program.So, SDK cans use above-mentioned technical proposal,
Detect the backstage power consumption abnormal conditions of the application program.Wherein, SDK has the minimum spy of small volume, power consumption in itself
Point, any complicated function will not be introduced, and during power consumption condition is detected, what SDK was read is all system
The associated documents of electricity are recorded, the new consumption of system will not be caused, therefore SDK is the power consumption detection system of a lightweight
System.
Specifically, opened when beginning to use application program (the hereinafter referred to as SDK application programs) for implanting SDK from user
Begin, the SDK can detect the related system file for the power consumption information that have recorded SDK application programs, and by CPU, call out
Component parameters (the electric current of such as element that the usage time of the parts such as awake lock (wakelock), sensor, supplier provide
Size is equivalent), the power consumption actual value of above-mentioned part is calculated, and contrasted with power consumption early warning value set in advance, Jin Ergen
It is abnormal to determine whether SDK application programs backstage power consumption have occurred according to comparing result.Wherein, it is abnormal when there is backstage power consumption
When, SDK, which can capture record automatically, the correlation log of power consumption information.For example, if SDK has found to apply in the detection
The power consumption index of some process has exceeded corresponding power consumption early warning threshold values in program, then can use Android under the process
The Debug.startMethodTracing () of system and Debug.stopMethodTracing () function two seconds, it is raw
Into a journal file.In this journal file, line corresponding to all threads of this process in two seconds have recorded
The much information such as journey storehouse and sequential.Trigger thread heap corresponding to the thread of power consumption due to being contained in these journal files
The information such as stack and sequential, therefore application developer can be visually known current SDK by above-mentioned correlation log and apply
The quantity and its order of severity of backstage power consumption abnormal problem present in program, and can find out and power consumption occur and ask extremely
The thread stacks of topic, and then can quickly solve power consumption abnormal problem in backstage present in current SDK application programs.And
And crawl power consumption daily record when used Debug.startMethodTracing () and
Debug.stopMethodTracing () method, these methods can record all program operation details in journal file,
Any one suspicious points will not be leaked through, can so help developer to be accurately positioned and the abnormal point of backstage power consumption occur.
In addition, application developer is corresponding to SDK is implanted into during application program, while the application program can be set
Power consumption early warning value (i.e. power consumption threshold value of warning), the parameter such as safe operation time.Because application program is general on backstage
A part of affairs can be normally handled, therefore pre-set the safe operation time, can be referred to during this period of time, should
Normal power consumption is designated as with power consumption of the program within the safe operation time, avoids the occurrence of what testing result did not squared with the fact
Situation.
By the embodiment of the present invention, need to carry out power consumption exception using by the SDK implantation with power consumption exception positioning function
The mode of the application program of detection, by since when application program switches to background work state by foreground state,
Or since the predetermined time after application program is switched to background work state by foreground state, it is determined that using journey
Actual power consumption value of each process in preset time period in sequence;According to actual consumption of each process in preset time period
Electricity value, judge the process for whether thering is power consumption actual value to exceed power consumption early warning value in application program;Judging application program
In have power consumption actual value in the case of the process of power consumption early warning value, generate all functions for being run under the process
Relevant information, the purpose quickly positioned to power consumption abnormity point is reached, it is achieved thereby that timely and accurately solution pair
The technique effect for the power consumption abnormal problem answered, and then solve in correlation technique due to that quickly can not be clicked through extremely to power consumption
Can not solve the technical problem of corresponding power consumption abnormal problem caused by row positioning.In addition, the present invention has positioning rapid
The characteristics of, experiment shows that it can will position and solve the problems, such as that this flow of power consumption needed to consume several days time drop from original
It is low to needing to consume several hours now, decades of times reduces cost for correcting error and human input.Meanwhile the present invention
Embodiment quantifies the power consumption condition of each process in application program by using specific electricity consumption value, can be in order to developer
The power consumption trend of application program is grasped, so as to set accurate power consumption early warning value etc..
Further, said apparatus also includes:First detection unit, for it is determined that each process exists in application program
Before actual power consumption value in preset time period, the electricity interference operation for user's triggering occur is detected whether;And/or second
Detection unit, for detecting whether application program has switched to foreground state by background work state, wherein, really
Order member is additionally operable to detecting the electricity interference operation for not occurring user's triggering and/or application program not by background work
In the case that state switches to foreground state, perform and determine that each process is in preset time period in application program
The step of actual power consumption value.
Further, above-mentioned determining unit includes:First determining module, in application program by foreground state
The predetermined time switched to after background work state, determine the starting electricity consumption value of each process in application program;Second is true
Cover half block, for after preset time period, determining the end electricity consumption value of each process in application program;Computing module,
For calculating and using the starting electricity consumption value of each process in application program with terminating the difference between electricity consumption value as corresponding process
Actual power consumption value in preset time period.
Further, above-mentioned determining unit also includes:First detection module, in preset time period, detection is
The no electricity interference operation for user's triggering occur;And/or second detection module, in preset time period, detection should
Whether foreground state is switched to by background work state with program, wherein, the second determining module is additionally operable to pre-
If in the period, detect do not occur the electricity interference operation of user's triggering and/or application program not by background work state
In the case of switching to foreground state, perform after preset time period, determine each process in application program
The step of terminating electricity consumption value.
Further, said apparatus also includes:Uploading unit, for there is power consumption actual value in application program is judged
In the case of the process of power consumption early warning value, and the relevant information of all functions run under the process in generation it
Afterwards, the relevant information of all functions run under the process of generation is uploaded onto the server, server is used for basis
The relevant information of all functions run under the process, the backstage power consumption abnormal conditions to application program are carried out at classification
Reason.
It should be noted that the embodiment of device part is corresponding with the embodiment of method part similar, and device
The function and the work(of the technique effect realization corresponding with the step of method part reached that partial functional unit or module are realized
Can be similar with the technique effect reached, it will not be repeated here.
Embodiment 3
Embodiments of the invention can provide a kind of terminal, and the terminal can be in terminal group
Any one computer terminal.Alternatively, in the present embodiment, above computer terminal can also replace with
The terminal devices such as mobile terminal.
Alternatively, in the present embodiment, above computer terminal can be located in multiple network equipments of computer network
At least one network equipment.
In the present embodiment, above computer terminal can perform following steps in the power consumption detection method of application program
Program code:Since when application program switches to background work state by foreground state, or from application program
Predetermined time after switching to background work state by foreground state, determine each to enter in the application program
Actual power consumption value of the journey in preset time period;According to each reality of the process in the preset time period
Electricity consumption value, judge the process for whether thering is power consumption actual value to exceed power consumption early warning value in the application program;Judging
In the case of stating the process for thering is power consumption actual value to exceed power consumption early warning value in application program, generate what is run under the process
The relevant information of all functions.
Alternatively, above computer terminal (being labeled as terminal A) can include:One or more processors,
Memory and miscellaneous part.
Wherein, memory can be used for storage software program and module, as being used for application program in the embodiment of the present invention
Power consumption condition treating method and apparatus corresponding to programmed instruction/module, processor by operation be stored in memory
Software program and module, so as to perform various function application and data processing, that is, realize and above-mentioned be used to apply
The processing method of the power consumption condition of program.Memory may include high speed random access memory, can also include non-volatile deposit
Reservoir, such as one or more magnetic storage device, flash memory or other non-volatile solid state memories.At some
In example, memory can further comprise relative to the remotely located memory of processor, and these remote memories can be with
Pass through network connection to terminal A.The example of above-mentioned network include but is not limited to internet, intranet, LAN,
Mobile radio communication and combinations thereof.
Processor can call the information and application program of memory storage by transmitting device, to perform following step:
It is determined that in application program before actual power consumption value of each process in preset time period, detect whether that user occur touches
The interference operation of electricity amount;And/or whether detection application program has switched to foreground state by background work state,
Wherein, detecting that the electricity interference for not occurring user's triggering is operated and/or application program is not switched by background work state
To foreground state, perform and determine each actual power consumption of the process in preset time period in application program
The step of value.
Optionally, above-mentioned processor can also carry out the program code of following steps:In application program by foreground shape
The predetermined time that state is switched to after background work state, determine the starting electricity consumption value of each process in application program;By
After preset time period, the end electricity consumption value of each process in application program is determined;Calculate and will each enter in application program
The starting electricity consumption value of journey is with terminating actual power consumption value of the difference between electricity consumption value as corresponding process in preset time period.
Optionally, above-mentioned processor can also carry out the program code of following steps:In preset time period, detection is
The no electricity interference operation for user's triggering occur;And/or in preset time period, whether detection application program is by backstage
Working condition switches to foreground state, wherein, in preset time period, detect that user do not occur touches electricity
In the case that amount interference operation and/or application program do not switch to foreground state by background work state, process is performed
After preset time period, the step of determining the end electricity consumption value of each process in application program.
Optionally, above-mentioned processor can also carry out the program code of following steps:There is consumption in application program is judged
In the case that electric actual value exceeds the process of power consumption early warning value, and the phase of all functions run in generation under the process
After closing information, the relevant information of all functions run under the process of generation is uploaded onto the server, server
For the relevant information according to all functions run under the process, the backstage power consumption abnormal conditions of application program are entered
Row classification is handled.
In embodiments of the present invention, need to carry out power consumption exception using by the SDK implantation with power consumption exception positioning function
The mode of the application program of detection, by since when application program switches to background work state by foreground state,
Or since the predetermined time after application program is switched to background work state by foreground state, it is determined that using journey
Actual power consumption value of each process in preset time period in sequence;According to actual consumption of each process in preset time period
Electricity value, judge the process for whether thering is power consumption actual value to exceed power consumption early warning value in application program;Judging application program
In have power consumption actual value in the case of the process of power consumption early warning value, generate all functions for being run under the process
Relevant information, the purpose quickly positioned to power consumption abnormity point is reached, it is achieved thereby that timely and accurately solution pair
The technique effect for the power consumption abnormal problem answered, and then solve in correlation technique due to that quickly can not be clicked through extremely to power consumption
Can not solve the technical problem of corresponding power consumption abnormal problem caused by row positioning.
It will appreciated by the skilled person that the structure shown in Fig. 1 is only to illustrate, terminal can also be
Smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, applause computer and mobile internet device
The terminal device such as (Mobile Internet Devices, MID), PAD.Fig. 1 its not to above-mentioned electronic installation
Structure causes to limit.For example, terminal 10 may also include the component more or less than shown in Fig. 1 (such as
Network interface, display device etc.), or there is the configuration different from shown in Fig. 1.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can be with
Completed by program come command terminal device-dependent hardware, the program can be stored in a computer-readable storage medium
In matter, storage medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), deposit at random
Take device (Random Access Memory, RAM), disk or CD etc..
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium
It can be used for preserving the journey performed by the processing method for the power consumption condition for application program that above-described embodiment 1 is provided
Sequence code.
Alternatively, in the present embodiment, above-mentioned storage medium can be located in computer network Computer terminal group
In any one terminal, or in any one mobile terminal in mobile terminal group.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
Since when application program switches to background work state by foreground state, or from application program by foreground
The predetermined time that state is switched to after background work state starts, and determines that each process is in preset time period in application program
Interior actual power consumption value;According to actual power consumption value of each process in preset time period, judge in application program whether
There is the process that power consumption actual value exceeds power consumption early warning value;There is power consumption actual value pre- beyond power consumption in application program is judged
In the case of the process of alert value, the relevant information of all functions run under the process is generated.
It should be noted that above-mentioned storage medium, which may be also configured to storage, is used to perform other implementations in embodiment 1
The program code of step in mode, will not be repeated here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be by other
Mode realize.Wherein, device embodiment described above is only schematical, such as the division of the unit,
Only a kind of division of logic function, can there are other dividing mode, such as multiple units or component when actually realizing
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, institute
Display or the mutual coupling discussed or direct-coupling or communication connection can be by some interfaces, unit or mould
The INDIRECT COUPLING of block or communication connection, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to
On multiple NEs.Some or all of unit therein can be selected to realize the present embodiment according to the actual needs
The purpose of scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit realized in the form of SFU software functional unit and as independent production marketing or in use,
It can be stored in a computer read/write memory medium.Based on such understanding, technical scheme essence
On all or part of the part that is contributed in other words to prior art or the technical scheme can be with software product
Form is embodied, and the computer software product is stored in a storage medium, including some instructions are causing one
Platform computer equipment (can be personal computer, server or network equipment etc.) performs each embodiment institute of the present invention
State all or part of step of method.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these are improved and profit
Decorations also should be regarded as protection scope of the present invention.
Claims (10)
- A kind of 1. processing method of power consumption condition for application program, it is characterised in that including:Since when application program switches to background work state by foreground state, or from application program by The predetermined time that foreground state is switched to after background work state starts, and determines each in the application program Actual power consumption value of the process in preset time period;According to each actual power consumption value of the process in the preset time period, judge described to apply journey Whether process that power consumption actual value exceed power consumption early warning value is had in sequence;It is raw in the case where having power consumption actual value in judging the application program beyond the process of power consumption early warning value Into the relevant information of all functions run under the process.
- 2. according to the method for claim 1, it is characterised in that it is determined that each process is pre- in the application program If before the actual power consumption value in the period, methods described also includes:Detect whether the electricity interference operation for user's triggering occur;And/orDetect whether the application program has switched to foreground state by background work state,Wherein, detecting the electricity interference operation for not occurring user's triggering and/or the application program not by backstage In the case that working condition switches to foreground state, perform and determine that each process is pre- in the application program If the step of actual power consumption value in the period.
- 3. according to the method for claim 1, it is characterised in that after application program is switched to by foreground state Predetermined time after platform working condition starts, and determines that each process is in preset time period in the application program Actual power consumption value includes:The predetermined time after the application program is switched to background work state by foreground state, really The starting electricity consumption value of each process in the fixed application program;After the preset time period, the end electricity consumption value of each process in the application program is determined;Calculate and using the starting electricity consumption value of each process in the application program and end electricity consumption value between difference as Actual power consumption value of the corresponding process in the preset time period.
- 4. according to the method for claim 3, it is characterised in that methods described also includes:In the preset time period, the electricity interference operation for user's triggering occur is detected whether;And/orIn the preset time period, detect whether the application program has switched to foreground by background work state Working condition,Wherein, in the preset time period, detect do not occur the electricity interference operation of user's triggering and/or institute State in the case that application program do not switch to foreground state by background work state, perform by described default After period, the step of determining the end electricity consumption value of each process in the application program.
- 5. according to the method for claim 1, it is characterised in that have power consumption actual in the application program is judged In the case that value exceeds the process of power consumption early warning value, and the correlation of all functions run in generation under the process After information, methods described also includes:The relevant information of all functions run under the process of generation is uploaded onto the server, the server For the relevant information according to all functions run under the process, the backstage power consumption to the application program is different Reason condition carries out classification processing.
- A kind of 6. processing unit of power consumption condition for application program, it is characterised in that including:Determining unit, for since when application program switches to background work state by foreground state, or Person is since the predetermined time after application program is switched to background work state by foreground state, it is determined that described Actual power consumption value of each process in preset time period in application program;Judging unit, for according to each actual power consumption value of the process in the preset time period, Judge the process for whether thering is power consumption actual value to exceed power consumption early warning value in the application program;Generation unit, for there is power consumption actual value entering beyond power consumption early warning value in the application program is judged In the case of journey, the relevant information of all functions run under the process is generated.
- 7. device according to claim 6, it is characterised in that described device also includes:First detection unit, for it is determined that each reality of the process in preset time period in the application program Before electricity consumption value, the electricity interference operation for user's triggering occur is detected whether;And/orSecond detection unit, for detecting whether the application program has switched to foreground work by background work state Make state,Wherein, the determining unit is additionally operable to detecting the electricity interference operation for not occurring user's triggering and/or institute State in the case that application program do not switch to foreground state by background work state, perform and determine the application In program the step of actual power consumption value of each process in preset time period.
- 8. device according to claim 6, it is characterised in that the determining unit includes:First determining module, for after the application program switches to background work state by foreground state The predetermined time, determine the starting electricity consumption value of each process in the application program;Second determining module, for after the preset time period, determining each process in the application program End electricity consumption value;Computing module, for calculating and by the starting electricity consumption value of each process in the application program with terminating power consumption Actual power consumption value of the difference as corresponding process in the preset time period between value.
- 9. device according to claim 8, it is characterised in that the determining unit also includes:First detection module, the electricity in the preset time period, detecting whether user's triggering occur are done Disturb operation;And/orSecond detection module, for whether in the preset time period, detecting the application program by backstage Working condition switches to foreground state,Wherein, second determining module is additionally operable in the preset time period, detects that user do not occur touches Electricity amount interference operation and/or the application program do not switch to foreground state by background work state In the case of, perform after the preset time period, determine the end power consumption of each process in the application program The step of value.
- 10. device according to claim 6, it is characterised in that described device also includes:Uploading unit, for there is power consumption actual value entering beyond power consumption early warning value in the application program is judged In the case of journey, and after the relevant information for all functions that generation is run under the process, generation is existed The relevant information of all functions run under the process uploads onto the server, and the server is used for basis and entered at this The relevant information of all functions run under journey, the backstage power consumption abnormal conditions of the application program are classified Processing.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610326398.7A CN107391348A (en) | 2016-05-16 | 2016-05-16 | Processing method and processing device for the power consumption condition of application program |
PCT/CN2017/080889 WO2017198025A1 (en) | 2016-05-16 | 2017-04-18 | Method, apparatus for processing power consumption of an application programme, calculation device and machine readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610326398.7A CN107391348A (en) | 2016-05-16 | 2016-05-16 | Processing method and processing device for the power consumption condition of application program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107391348A true CN107391348A (en) | 2017-11-24 |
Family
ID=60324777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610326398.7A Pending CN107391348A (en) | 2016-05-16 | 2016-05-16 | Processing method and processing device for the power consumption condition of application program |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107391348A (en) |
WO (1) | WO2017198025A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134219A (en) * | 2019-05-13 | 2019-08-16 | 深圳传音通讯有限公司 | Application program backstage power consumption processing method and processing device |
CN110737320A (en) * | 2019-09-25 | 2020-01-31 | 腾讯音乐娱乐科技(深圳)有限公司 | Power consumption detection method and device, electronic equipment and storage medium |
CN111209160A (en) * | 2019-12-31 | 2020-05-29 | 深圳云天励飞技术有限公司 | Power consumption abnormity analysis method and device, terminal equipment and readable storage medium |
CN113094228A (en) * | 2021-03-19 | 2021-07-09 | 联想(北京)有限公司 | Task monitoring method and device, equipment and storage medium |
CN113886192A (en) * | 2021-10-25 | 2022-01-04 | Oppo广东移动通信有限公司 | Log data acquisition method and device, terminal equipment and readable storage medium |
CN115033304A (en) * | 2022-06-27 | 2022-09-09 | 维沃移动通信有限公司 | Application program control method and device and electronic equipment |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3780700B1 (en) | 2018-05-17 | 2023-12-20 | Huawei Technologies Co., Ltd. | Power consumption anomaly prompting method, server, and terminal |
CN112540666A (en) * | 2019-09-20 | 2021-03-23 | 中兴通讯股份有限公司 | Application unfreezing method, terminal device, computer device and computer readable medium |
CN112988554B (en) * | 2019-12-12 | 2024-05-17 | 阿里巴巴集团控股有限公司 | SDK detection method, device, SDK program, device, and storage medium |
CN111651261B (en) * | 2020-07-07 | 2023-04-07 | Oppo(重庆)智能科技有限公司 | Process management method and device, terminal equipment and computer readable storage medium |
CN111930222A (en) * | 2020-07-31 | 2020-11-13 | 联想(北京)有限公司 | Control method and device and electronic equipment |
CN114115509B (en) * | 2022-01-25 | 2022-07-26 | 荣耀终端有限公司 | Application management method and terminal |
TWI806664B (en) * | 2022-06-16 | 2023-06-21 | 華碩電腦股份有限公司 | Method and system for detecting application program version with abnormal power consumption |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239195A (en) * | 2014-09-17 | 2014-12-24 | 可牛网络技术(北京)有限公司 | Method for processing power consumption of electronic equipment, and electronic equipment |
CN104298335A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Application program process cleaning method and device of mobile terminal and mobile terminal |
CN104298584A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Method and device for acquiring application program with abnormal power consumption and mobile terminal |
CN105208642A (en) * | 2015-10-10 | 2015-12-30 | 魅族科技(中国)有限公司 | Application management method and terminal |
US9229522B1 (en) * | 2013-08-27 | 2016-01-05 | Symantec Corporation | Mobile battery performance by identifying apps that disproportionally run background tasks that prevent mobile devices from sleeping |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102109945B (en) * | 2009-12-25 | 2013-01-16 | 联想(北京)有限公司 | Portable electronic equipment provided with touch screen and control method thereof |
CN104267799B (en) * | 2014-09-17 | 2017-02-15 | 可牛网络技术(北京)有限公司 | Network server and method and system for processing power consumption of electronic equipment |
-
2016
- 2016-05-16 CN CN201610326398.7A patent/CN107391348A/en active Pending
-
2017
- 2017-04-18 WO PCT/CN2017/080889 patent/WO2017198025A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298335A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Application program process cleaning method and device of mobile terminal and mobile terminal |
CN104298584A (en) * | 2013-07-19 | 2015-01-21 | 贝壳网际(北京)安全技术有限公司 | Method and device for acquiring application program with abnormal power consumption and mobile terminal |
US9229522B1 (en) * | 2013-08-27 | 2016-01-05 | Symantec Corporation | Mobile battery performance by identifying apps that disproportionally run background tasks that prevent mobile devices from sleeping |
CN104239195A (en) * | 2014-09-17 | 2014-12-24 | 可牛网络技术(北京)有限公司 | Method for processing power consumption of electronic equipment, and electronic equipment |
CN105208642A (en) * | 2015-10-10 | 2015-12-30 | 魅族科技(中国)有限公司 | Application management method and terminal |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134219A (en) * | 2019-05-13 | 2019-08-16 | 深圳传音通讯有限公司 | Application program backstage power consumption processing method and processing device |
CN110134219B (en) * | 2019-05-13 | 2024-03-19 | 深圳传音通讯有限公司 | Application program background power consumption processing method and device |
CN110737320A (en) * | 2019-09-25 | 2020-01-31 | 腾讯音乐娱乐科技(深圳)有限公司 | Power consumption detection method and device, electronic equipment and storage medium |
CN110737320B (en) * | 2019-09-25 | 2023-08-18 | 腾讯音乐娱乐科技(深圳)有限公司 | Power consumption detection method and device, electronic equipment and storage medium |
CN111209160A (en) * | 2019-12-31 | 2020-05-29 | 深圳云天励飞技术有限公司 | Power consumption abnormity analysis method and device, terminal equipment and readable storage medium |
CN111209160B (en) * | 2019-12-31 | 2024-03-22 | 深圳云天励飞技术有限公司 | Power consumption abnormality analysis method and device, terminal equipment and readable storage medium |
CN113094228A (en) * | 2021-03-19 | 2021-07-09 | 联想(北京)有限公司 | Task monitoring method and device, equipment and storage medium |
CN113886192A (en) * | 2021-10-25 | 2022-01-04 | Oppo广东移动通信有限公司 | Log data acquisition method and device, terminal equipment and readable storage medium |
CN115033304A (en) * | 2022-06-27 | 2022-09-09 | 维沃移动通信有限公司 | Application program control method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2017198025A1 (en) | 2017-11-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107391348A (en) | Processing method and processing device for the power consumption condition of application program | |
CN107301119B (en) | Method and device for analyzing IT fault root cause by utilizing time sequence correlation | |
CN104267799B (en) | Network server and method and system for processing power consumption of electronic equipment | |
CN110471834B (en) | Credit card simulation test method under multi-transaction channel and related equipment | |
US9720687B2 (en) | Validating and maintaining respective validation status of software applications and manufacturing systems and processes | |
CN107797919A (en) | The method and computing device of a kind of automatic test | |
CN109635564A (en) | A kind of method, apparatus, medium and equipment detecting Brute Force behavior | |
CN107861864A (en) | Automated testing method, system and computer-readable recording medium | |
CN108804696A (en) | The creation method and its system of power consumer electric appliance fingerprint base | |
CN107389878A (en) | The self checking method, apparatus and computer-readable recording medium of sensor | |
CN109257196A (en) | A kind of abnormality eliminating method and equipment | |
CN107590016A (en) | Power-down rebooting recognition methods and device | |
CN111475925B (en) | State evaluation method and device of power equipment and storage medium | |
CN110411554B (en) | Motor equipment detection method, device and system | |
CN108318810A (en) | High voltage isolator fault determination method and device | |
CN106844432A (en) | Data processing method and device | |
CN105738720B (en) | A kind of electronic product test method, equipment and system | |
CN110619408B (en) | Information acquisition method, equipment and computer storage medium | |
Alam et al. | An energy and leakage current monitoring system for abnormality detection in electrical appliances | |
CN113127320A (en) | Application program abnormity detection method, device, equipment and system | |
CN202421448U (en) | Relay detecting device for nuclear power stations | |
CN106502887A (en) | A kind of stability test method, test controller and system | |
CN110598797B (en) | Fault detection method and device, storage medium and electronic device | |
CN110807104B (en) | Method and device for determining abnormal information, storage medium and electronic device | |
CN106095290B (en) | The method for closing and device of sensor call function |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200601 Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Applicant after: Alibaba (China) Co.,Ltd. Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio square 14 storey tower Applicant before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171124 |