CN106326069A - Method, device and system for detecting power consumption as well as equipment - Google Patents

Method, device and system for detecting power consumption as well as equipment Download PDF

Info

Publication number
CN106326069A
CN106326069A CN201610695664.3A CN201610695664A CN106326069A CN 106326069 A CN106326069 A CN 106326069A CN 201610695664 A CN201610695664 A CN 201610695664A CN 106326069 A CN106326069 A CN 106326069A
Authority
CN
China
Prior art keywords
electric quantity
statistical data
data
quantity consumption
application program
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
Application number
CN201610695664.3A
Other languages
Chinese (zh)
Inventor
邱子峰
邱峰
赖永永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610695664.3A priority Critical patent/CN106326069A/en
Publication of CN106326069A publication Critical patent/CN106326069A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to a method, a device and a system for detecting power consumption as well as equipment. The method comprises the following steps of acquiring electric quantity consumption counting data of a client, wherein the electric quantity consumption counting data are electric quantity consumption counting data transmitted by the client according to a preset cycle; analyzing service data for occupying resources by various application programs of the client according to the electric quantity consumption counting data to obtain a power consumption result. By means of the disclosed scheme, labor cost can be reduced and detection efficiency can be improved.

Description

Consumption detection method, device, equipment and system
Technical field
It relates to technical field of measurement and test, particularly relate to consumption detection method, device, equipment and system.
Background technology
The detection method that power consumption (loss of power) in presently relevant technology is abnormal, mainly relies on the test bolus of specialty A large amount of tests of team and the mobile phone of user feedback use record report (bugreport), by showing after manual analysis which should Employ which resource of mobile terminal by program thus cause power consumption big.
Existing on Vehicles Collected from Market can the various application of corresponding configuration in the mobile terminal of various model, and every kind of mobile terminal Program, so, when carrying out the detection of power consumption exception, it is necessary to take more human resources.
Summary of the invention
For overcoming problem present in correlation technique, present disclose provides a kind of consumption detection method, device, equipment and be System.
First aspect according to disclosure embodiment, it is provided that a kind of consumption detection method, including:
Obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is that described client is by default week The electric quantity consumption statistical data that phase sends;
Take the use data of resource according to the described electric quantity consumption each application program of analysis of statistical data client, consumed Electricity result.
Optionally, described method also includes:
The abnormal data that the use data of resource are determined for compliance with imposing a condition is taken according to described each application program.
Optionally, described the exception that the use data of resource are determined for compliance with imposing a condition is taken according to described each application program Data, including:
Analyze described each application program and take the use data of resource, if application program foreground uses the time less than first Set threshold value, and take resource time more than second setting threshold value or use frequency more than the 3rd setting threshold value, it is determined that go out different Regular data.
Optionally, described method also includes:
Collect the frequency of abnormity meeting the abnormal data imposed a condition described in statistics.
Optionally, described method also includes: collect the result of statistics described in display.
Second aspect according to disclosure embodiment, it is provided that a kind of consumption detection method, including:
Start system residence service;
The electric quantity consumption statistical data of configured application program is read by the described system residence service started;
Described electric quantity consumption statistical data is sent to service end by predetermined period.
The third aspect according to disclosure embodiment, it is provided that a kind of consumption detection device, including:
Acquisition module, for obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is described The electric quantity consumption statistical data that client is sent by predetermined period;
Analyze module, respectively apply journey for the electric quantity consumption analysis of statistical data client obtained according to described acquisition module Sequence takies the use data of resource, obtains power consumption result.
Optionally, the use data that described analysis module takies resource according to described each application program are determined for compliance with setting bar The abnormal data of part.
Optionally, each application program described in described analysis module analysis takies the use data of resource, if application program Foreground uses the time less than the first setting threshold value, and takies resource time and more than the second setting threshold value or uses frequency more than the 3rd Set threshold value, it is determined that go out abnormal data.
Optionally, described device also includes:
Summarizing module, for collecting the frequency of abnormity meeting the abnormal data imposed a condition described in statistics.
Optionally, described device also includes:
Display module, for showing that described summarizing module collects the result of statistics.
Fourth aspect according to disclosure embodiment, it is provided that a kind of consumption detection device, including:
Start module, be used for starting system residence service;
Read module, reads configured application program for the described system residence service started by described startup module Electric quantity consumption statistical data;
Sending module, for sending, to service end, the electric quantity consumption statistical number that described read module reads by predetermined period According to.
The 5th aspect according to disclosure embodiment, it is provided that a kind of server device, including:
Processor and for storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is that described client is by default week The electric quantity consumption statistical data that phase sends;
Take the use data of resource according to the described electric quantity consumption each application program of analysis of statistical data client, consumed Electricity result.
The 6th aspect according to disclosure embodiment, it is provided that a kind of mobile terminal device, including:
Processor and for storing the memorizer of processor executable;
Wherein, described processor is configured to:
Start system residence service;
The electric quantity consumption statistical data of configured application program is read by the described system residence service started;
Described electric quantity consumption statistical data is sent to service end by predetermined period.
The 7th aspect according to disclosure embodiment, it is provided that a kind of consumption detection system, including:
Client, is used for starting system residence service, reads configured application by the described system residence service started The electric quantity consumption statistical data of program, sends described electric quantity consumption statistical data by predetermined period to service end;
Service end, for obtaining the electric quantity consumption statistical data that client sends, according to described electric quantity consumption statistical data Analyze each application program of client and take the use data of resource, obtain power consumption result.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
The disclosure can obtain electric quantity consumption statistical data from client, and wherein said electric quantity consumption statistical data is described The electric quantity consumption statistical data that client is sent by predetermined period;Then can be according to described electric quantity consumption analysis of statistical data visitor End each application program in family takies the use data of resource, obtains power consumption result.Making of resource is taken by analyzing each application program By data, obtain power consumption as a result, it is possible to automatically to detect which application program takies resource many and cause power consumption big, it is not necessary to account for Use more human resources, it is possible to reduce human cost and raising detection efficiency.
The disclosure can take, according to described each application program, the exception that the use data of resource are determined for compliance with imposing a condition Data.
The disclosure can be analyzed described each application program and take the use data of resource, if application program foreground uses Between less than first setting threshold value, and take resource time more than second setting threshold value or use frequency more than the 3rd setting threshold value, Then determine abnormal data.
The disclosure can collect the frequency of abnormity meeting the abnormal data imposed a condition described in statistics, it is possible to shows further The result of statistics is collected described in showing.
It should be appreciated that it is only exemplary and explanatory, not that above general description and details hereinafter describe The disclosure can be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the disclosure Example, and for explaining the principle of the disclosure together with description.
Fig. 1 is the disclosure flow chart according to a kind of consumption detection method shown in an exemplary embodiment.
Fig. 2 is the disclosure another flow chart according to a kind of consumption detection method shown in an exemplary embodiment.
Fig. 3 is the disclosure another flow chart according to a kind of consumption detection method shown in an exemplary embodiment.
Fig. 4 is the disclosure block diagram according to a kind of consumption detection device shown in an exemplary embodiment.
Fig. 5 is the disclosure another block diagram according to a kind of consumption detection device shown in an exemplary embodiment.
Fig. 6 is the disclosure another block diagram according to a kind of consumption detection device shown in an exemplary embodiment.
Fig. 7 is a disclosure structured flowchart according to a kind of server device shown in an exemplary embodiment.
Fig. 8 is a disclosure structured flowchart according to a kind of mobile terminal device shown in an exemplary embodiment.
Fig. 9 is a disclosure structured flowchart according to a kind of equipment shown in an exemplary embodiment.
Figure 10 is a disclosure structured flowchart according to a kind of equipment shown in an exemplary embodiment.
Figure 11 is a disclosure structured flowchart according to a kind of consumption detection system shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the disclosure are consistent.
The term used in the disclosure is only merely for describing the purpose of specific embodiment, and is not intended to be limiting the disclosure. " a kind of ", " described " and " being somebody's turn to do " of singulative used in disclosure and the accompanying claims book is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the disclosure possible employing term first, second, third, etc. to describe various information, but this A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ... Time " or " in response to determining ".
Present disclose provides a kind of consumption detection method, can without taking more human resources, reduce human cost and Improve detection efficiency.
Fig. 1 is the disclosure flow chart according to a kind of consumption detection method shown in an exemplary embodiment.
As it is shown in figure 1, the method can apply to, in service end, comprise the following steps:
In a step 101, obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is described visitor The electric quantity consumption statistical data that family end is sent by predetermined period.
Wherein said electric quantity consumption statistical data can be by predetermined period after described client terminal start-up system residence services The electric quantity consumption statistical data sent.
In a step 102, making of resource is taken according to the described electric quantity consumption each application program of analysis of statistical data client By data, obtain power consumption result.
From this embodiment, the disclosure can obtain electric quantity consumption statistical data from client, and wherein said electricity disappears Consumption statistical data is the electric quantity consumption statistical data that described client is sent by predetermined period;Then can disappear according to described electricity The consumption each application program of analysis of statistical data client takies the use data of resource, obtains power consumption result.By analyzing each application Program takies the use data of resource, obtains power consumption as a result, it is possible to automatically to detect which application program takies resource many and make Become power consumption big, it is not necessary to take more human resources, it is possible to reduce human cost and raising detection efficiency.
Fig. 2 is the disclosure another flow chart according to a kind of consumption detection method shown in an exemplary embodiment.
As in figure 2 it is shown, the method can apply to, in client, comprise the following steps:
In step 201, system residence service is started.
In step 202., the electric quantity consumption system of configured application program is read in the described system residence service by starting Count.
In step 203, described electric quantity consumption statistical data is sent by predetermined period to service end.
The described electric quantity consumption statistical data wherein sent to service end, for described service end according to described electric quantity consumption The each application program of client described in analysis of statistical data takies the use data of resource.
From this embodiment, the disclosure can read configured by the described system residence service started by client The electric quantity consumption statistical data of application program, sends described electric quantity consumption statistical data by predetermined period to service end, for institute State service end and take the use data of resource according to each application program of client described in described electric quantity consumption analysis of statistical data.Logical Cross client and send described electric quantity consumption statistical data by predetermined period to service end, and analyzed each application program by service end and account for By the use data of resource, can automatically detect which application program takies resource many and cause power consumption big, it is not necessary to take More human resourcess, it is possible to reduce human cost and raising detection efficiency.
Fig. 3 is the disclosure another flow chart according to a kind of consumption detection method shown in an exemplary embodiment.
In disclosure Fig. 3 embodiment, periodically upload merit to service end such as server client such as mobile terminal The data such as electric quantity consumption statistical data that consumption analysis is useful, and electric quantity consumption statistical data is just analyzed by server end, By point analysis abnormal for power consumption out, it is possible to carry out collecting sequence and such as can enter according to the frequency that power consumption and power consumption occur Row sequence, finally can use chart to show, thus can reduce workload, also reduces manual intervention and becomes with manpower This, more convenient analysis power consumption directly perceived is abnormal, improves detection efficiency.
As it is shown on figure 3, the method can apply to, in the system of client and service end composition, comprise the following steps:
In step 301, client collects electric quantity consumption statistical data from FTP client FTP.
The client of the disclosure such as mobile terminal is mainly responsible for the collection of data message and data message uploads to clothes Business device.The disclosure, after client normally starts, can start by receiving power-on event (BootCompleteReceiver) System residence service (PowerCheckerService), in system residence services, can be by predetermined period such as every 3 Hour actively read FTP client FTP electricity statistical fractals (batterystatsService) to obtain in during this period of time with regard to the cycle Electric quantity consumption statistical data.
In step 302, client sends the electric quantity consumption statistical data collected to service end.
Client can use in HTTP (Hyper Text Transfer Protocol, HTML (Hypertext Markup Language)) GZIP (abbreviation of GNUzip is a ZIP) coding uploads to after being compressed electric quantity consumption statistical data again Service end.
Client can send, by predetermined period, the electric quantity consumption statistical data collected to service end, say, that client End is transmitted to service end after such as reading electric quantity consumption statistical data every 3 hours.
In step 303, the electric quantity consumption analysis of statistical data client that service end sends according to client respectively applies journey Sequence takies the use data of resource, obtains power consumption result.
The service end of the disclosure is responsible for the analysis of data message, is collected and show work.Service end is receiving electric quantity consumption It is analyzed after statistical data, mainly analyzes each application A PP of client and take the use data of resource, obtain power consumption knot Really.The disclosure can once be analyzed every day, and the frequency of analysis is arranged as required to.
Wherein, the service taking resource in the terminal typically may include that GPS (positioning service), SENSOR (sensor garment Business), Partial Wakelock (stop system dormancy service), Wakeup Alarm (timing wake-up service), SyncManager (sync data service), CPU (program is run and calculates service), Wifi Scan (wireless network scan service), Bluetooth (bluetooth service), Modem (communication service).Therefore the use number of general namely these services of use data of resource is taken According to.
Itemized record each App service condition to above-mentioned resource in electric quantity consumption statistical data, this step is the most permissible Take the use data of resource according to each application A pp of electric quantity consumption analysis of statistical data, wherein said use data are permissible Foreground including application program uses time and the time taking resource or uses frequency.
In step 304, the use data that service end takies resource according to described each application program are determined for compliance with setting bar The abnormal data of part.
If service end is in using data, analyzes and find that an App foreground uses the time to be less than the first setting threshold value, i.e. The application program use time on foreground is comparatively short, but the time that this App takies resource more than the second setting threshold value or makes By frequency more than the 3rd setting threshold value, mean that this App can cause abnormal power consumption problem to the use of related resource, namely determine Go out to take the abnormal data of resource.Wherein, described first setting threshold value, the second setting threshold value and the 3rd setting threshold value can bases Needs are configured.
In step 305, service end collects the frequency of abnormity meeting the abnormal data imposed a condition described in statistics, shows institute State the result collecting statistics.
Service end can receive the electric quantity consumption statistical data of many parts, and above-mentioned steps all pressed by every part of electric quantity consumption statistical data After being analyzed, can carry out collecting statistics by the abnormal data taking resource of each several part obtained, i.e. can add up abnormal Number of times.Wherein, can carry out when collecting collecting sequence, such as, can be ranked up according to the frequency that power consumption and power consumption occur.
The result collecting statistics can be shown after carrying out collecting statistics further, such as, graph mode can be used in front end Show to user.
From above-described embodiment it can be seen that the scheme of the disclosure can be automatically performed consumption detection by client and service end Flow process, it is not necessary to take more human resources, it is possible to reduce human cost, significantly reduces the workload of developer.The disclosure Scheme employs the workflow of full-automation, not only instead of the artificial treatment mode of poor efficiency, and the testing result obtained More timely and effective, the most more convenient analysis power consumption directly perceived is abnormal, improves detection efficiency.
The business processing flow combining client and service end further below is introduced.
After client normally starts, start system residence clothes by receiving power-on event (BootCompleteReceiver) Business (PowerCheckerService), then starts intervalometer, and read cycle is set to 3 hours, then the most all every 3 hours Phase actively reads (DUMP) FTP client FTP electricity statistical fractals (batterystatsService), obtains in during this period of time Electric quantity consumption statistical data, is then compressed electric quantity consumption statistical data, then uploads to service end.
After service end starts, collect the many parts of electric quantity consumption statistical datas that client is uploaded by predetermined period, first to single part Electric quantity consumption statistical data row analyze, it may be determined that going out to take the abnormal data of resource, that i.e. can find out abnormal power consumption should By program and power consumption reason, then carry out collecting statistics by the abnormal data taking resource of each several part obtained, i.e. add up different The application program of often power consumption and the ratio of power consumption reason, finally can use graph mode to show to user in front end.
Corresponding with aforementioned applications function realizing method embodiment, the disclosure additionally provides a kind of consumption detection device and phase The embodiment answered.
Fig. 4 is the disclosure block diagram according to a kind of consumption detection device shown in an exemplary embodiment.
This device can be in service end.With reference to Fig. 4, in a kind of consumption detection device, may include that acquisition mould Block 41, analysis module 42.
Acquisition module 41, for obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is institute State the electric quantity consumption statistical data that client is sent by predetermined period.
Analyze module 42, respectively should for the electric quantity consumption analysis of statistical data client obtained according to described acquisition module 41 Take the use data of resource by program, obtain power consumption result.
From this embodiment, the disclosure can obtain electric quantity consumption statistical data from client, and wherein said electricity disappears Consumption statistical data is the electric quantity consumption statistical data that described client is sent by predetermined period;Then can disappear according to described electricity The consumption each application program of analysis of statistical data client takies the use data of resource, obtains power consumption result.By analyzing each application Program takies the use data of resource, obtains power consumption as a result, it is possible to automatically to detect which application program takies resource many and make Become power consumption big, it is not necessary to take more human resources, it is possible to reduce human cost and raising detection efficiency.
Fig. 5 is the disclosure another block diagram according to a kind of consumption detection device shown in an exemplary embodiment.
With reference to Fig. 5, include acquisition module 41 at a kind of consumption detection device, analyze module 42, summarizing module 43, display Module 44.
Wherein acquisition module 41, the function of analysis module 42 can be found in Fig. 4 and describe.
Wherein, described analysis module 42 can take the use data of resource according to described each application program and is determined for compliance with setting The abnormal data of fixed condition.
Wherein, described analysis module 42 can be analyzed described each application program and take the use data of resource, if application Program foreground use the time less than first setting threshold value, and take resource time more than second setting threshold value or use frequency be more than 3rd sets threshold value, it is determined that go out abnormal data.
Summarizing module 43, for collecting the frequency of abnormity meeting the abnormal data imposed a condition described in statistics.
Display module 44, for showing that described summarizing module 43 collects the result of statistics.
Fig. 6 is the disclosure block diagram according to a kind of consumption detection device shown in an exemplary embodiment.
This device can be in client.With reference to Fig. 6, in a kind of consumption detection device, may include that startup mould Block 61, read module 62, sending module 63.
Start module 61, be used for starting system residence service.
Read module 62, reads configured application for the described system residence service started by described startup module 61 The electric quantity consumption statistical data of program.
Sending module 63, for sending, to service end, the electric quantity consumption statistics that described read module 62 reads by predetermined period Data.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact The part executing example illustrates.Device embodiment described above is only schematically, wherein illustrates as separating component Module can be or may not be physically separate, the parts shown as module can be or may not be Physical module, i.e. may be located at a place, or can also be distributed on multiple mixed-media network modules mixed-media.Can be according to the actual needs Select some or all of module therein to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying wound In the case of the property made work, i.e. it is appreciated that and implements.
Fig. 7 is a disclosure structured flowchart according to a kind of server device shown in an exemplary embodiment.
With reference to Fig. 7, server device may include that processor 701 and for storing processor 701 executable instruction Memorizer 702;
Wherein, processor 701 is configured to:
Obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is that described client is by default week The electric quantity consumption statistical data that phase sends;
Take the use data of resource according to the described electric quantity consumption each application program of analysis of statistical data client, consumed Electricity result.
It should be noted that, other programs of memorizer 702 storage, referring specifically to the description in previous methods flow process, this Place repeats no more, and processor 701 is additionally operable to perform other programs of memorizer 702 storage.
Fig. 8 is a disclosure structured flowchart according to a kind of mobile terminal device shown in an exemplary embodiment.
With reference to Fig. 8, mobile terminal device may include that processor 801 and can perform to refer to for storing processor 801 The memorizer 802 of order;
Wherein, processor 801 is configured to:
Start system residence service;
The electric quantity consumption statistical data of configured application program is read by the described system residence service started;
Described electric quantity consumption statistical data is sent to service end by predetermined period.
It should be noted that, other programs of memorizer 802 storage, referring specifically to the description in previous methods flow process, this Place repeats no more, and processor 801 is additionally operable to perform other programs of memorizer 802 storage.
Fig. 9 is a disclosure structured flowchart according to a kind of equipment shown in an exemplary embodiment.
Such as, equipment 900 may be provided in a server.With reference to Fig. 9, equipment 900 includes processing assembly 922, and it enters One step includes one or more processor, and by the memory resource representated by memorizer 932, can be by process portion for storage The instruction of the execution of part 922, such as application program.In memorizer 932 storage application program can include one or one with On each corresponding to one group instruction module.
It is configured to perform instruction, to perform a kind of consumption detection method of the said equipment additionally, process assembly 922:
Obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is that described client is by default week The electric quantity consumption statistical data that phase sends;
Take the use data of resource according to the described electric quantity consumption each application program of analysis of statistical data client, consumed Electricity result.
Equipment 900 can also include that a power supply module 926 is configured to the power management of execution equipment 900, and one has Line or radio network interface 950 are configured to be connected to equipment 900 network, and input and output (I/O) interface 958.If Standby 900 can operate based on the operating system being stored in memorizer 932, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Figure 10 is a disclosure structured flowchart according to a kind of equipment shown in an exemplary embodiment.
With reference to Figure 10, such as, equipment 1000 can be the mobile phone with routing function, computer, and digital broadcasting is eventually End, messaging devices, game console, tablet device, armarium, body-building equipment, personal digital assistant etc..
Equipment 1000 includes following one or more assembly: process assembly 1002, memorizer 1004, power supply module 1006, Multimedia groupware 1008, audio-frequency assembly 1010, the interface 1012 of input/output (I/O), sensor cluster 1014, and communication Assembly 1016.
Process assembly 1002 and generally control the integrated operation of equipment 1000, such as with display, call, data communication, The operation that camera operation and record operation are associated.Process assembly 1002 and can include that one or more processor 1020 performs Instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 1002 can include one or more mould Block, it is simple to process between assembly 1002 and other assemblies is mutual.Such as, process assembly 1002 and can include multi-media module, With facilitate multimedia groupware 1008 and process between assembly 1002 mutual.
Memorizer 1004 is configured to store various types of data to support the operation at equipment 1000.These data Example includes any application program for operating on the device 1000 or the instruction of method, contact data, telephone book data, Message, picture, video etc..Memorizer 1004 can by any kind of volatibility or non-volatile memory device or they Combination realizes, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
The various assemblies that power supply module 1006 is equipment 1000 provide electric power.Power supply module 1006 can include power management System, one or more power supplys, and other generate, manage and distribute, with for equipment 1000, the assembly that electric power is associated.
The screen of one output interface of offer that multimedia groupware 1008 is included between equipment 1000 and user.At some In embodiment, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen May be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensor With the gesture on sensing touch, slip and touch panel.Touch sensor can not only sense touch or the border of sliding action, But also detect the persistent period relevant to touch or slide and pressure.In certain embodiments, multimedia groupware 1008 Including a front-facing camera and/or post-positioned pick-up head.When equipment 1000 is in operator scheme, such as screening-mode or video mode Time, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and rearmounted shooting Head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 1010 is configured to output and/or input audio signal.Such as, audio-frequency assembly 1010 includes a wheat Gram wind (MIC), when equipment 1000 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike quilt It is configured to receive external audio signal.The audio signal received can be further stored at memorizer 1004 or via communication Assembly 1016 sends.In certain embodiments, audio-frequency assembly 1010 also includes a speaker, is used for exporting audio signal.
I/O interface 1012 provides interface, above-mentioned peripheral interface module for processing between assembly 1002 and peripheral interface module Can be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and Locking press button.
Sensor cluster 1014 includes one or more sensor, for providing the state of various aspects to comment for equipment 1000 Estimate.Such as, what sensor cluster 1014 can detect equipment 1000 opens/closed mode, the relative localization of assembly, such as group Part is display and the keypad of equipment 1000, and sensor cluster 1014 can also detect equipment 1000 or 1,000 1 groups of equipment The position change of part, the presence or absence that user contacts with equipment 1000, equipment 1000 orientation or acceleration/deceleration and equipment The variations in temperature of 1000.Sensor cluster 1014 can include proximity transducer, is configured to do not having any physics to connect The existence of object near detection when touching.Sensor cluster 1014 can also include optical sensor, as CMOS or ccd image sense Device, for using in imaging applications.In certain embodiments, this sensor cluster 1014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 1016 is configured to facilitate the communication of wired or wireless mode between equipment 1000 and other equipment.If Standby 1000 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Exemplary at one In embodiment, broadcast singal or broadcast that communications component 1016 receives from external broadcasting management system via broadcast channel are relevant Information.In one exemplary embodiment, communications component 1016 also includes near-field communication (NFC) module, to promote junction service. Such as, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) skill Art, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, equipment 1000 can be by one or more application specific integrated circuits (ASIC), numeral Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memorizer 1004 of instruction, above-mentioned instruction can have been performed said method by the processor 1020 of equipment 1000.Example As, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of equipment Time so that equipment is able to carry out a kind of consumption detection method, and method includes:
Start system residence service;
The electric quantity consumption statistical data of configured application program is read by the described system residence service started;
Described electric quantity consumption statistical data is sent to service end by predetermined period.
Figure 11 is a disclosure structured flowchart according to a kind of consumption detection system shown in an exemplary embodiment.
With reference to Figure 11, include in a kind of consumption detection system: client 111, service end 112.
Client 111, starts system residence service, reads configured application journey by the described system residence service started The electric quantity consumption statistical data of sequence, sends described electric quantity consumption statistical data by predetermined period to service end 112.
Service end 112, for obtaining the electric quantity consumption statistical data that described client 111 sends, disappears according to described electricity The consumption each application program of analysis of statistical data client 111 takies the use data of resource, obtains power consumption result.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure Its embodiment.The disclosure is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (15)

1. a consumption detection method, it is characterised in that including:
Obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is that described client is sent out by predetermined period The electric quantity consumption statistical data sent;
Take the use data of resource according to the described electric quantity consumption each application program of analysis of statistical data client, obtain power consumption knot Really.
Method the most according to claim 1, it is characterised in that described method also includes:
The abnormal data that the use data of resource are determined for compliance with imposing a condition is taken according to described each application program.
Method the most according to claim 2, it is characterised in that the described use taking resource according to described each application program Data are determined for compliance with the abnormal data imposed a condition, including:
Analyze described each application program and take the use data of resource, if application program foreground uses the time less than the first setting Threshold value, and take resource time more than second setting threshold value or use frequency more than the 3rd setting threshold value, it is determined that go out abnormal number According to.
Method the most according to claim 2, it is characterised in that described method also includes:
Collect the frequency of abnormity meeting the abnormal data imposed a condition described in statistics.
Method the most according to claim 4, it is characterised in that described method also includes:
The result of statistics is collected described in display.
6. a consumption detection method, it is characterised in that including:
Start system residence service;
The electric quantity consumption statistical data of configured application program is read by the described system residence service started;
Described electric quantity consumption statistical data is sent to service end by predetermined period.
7. a consumption detection device, it is characterised in that including:
Acquisition module, for obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is described client The electric quantity consumption statistical data that end is sent by predetermined period;
Analyze module, account for for the electric quantity consumption each application program of analysis of statistical data client obtained according to described acquisition module By the use data of resource, obtain power consumption result.
Device the most according to claim 7, it is characterised in that:
Described analysis module takies, according to described each application program, the abnormal number that the use data of resource are determined for compliance with imposing a condition According to.
Device the most according to claim 8, it is characterised in that:
Each application program described in described analysis module analysis takies the use data of resource, if application program foreground uses the time Less than first set threshold value, and take resource time more than second setting threshold value or use frequency more than the 3rd setting threshold value, then Determine abnormal data.
Device the most according to claim 8, it is characterised in that described device also includes:
Summarizing module, for collecting the frequency of abnormity meeting the abnormal data imposed a condition described in statistics.
11. devices according to claim 10, it is characterised in that described device also includes:
Display module, for showing that described summarizing module collects the result of statistics.
12. 1 kinds of consumption detection devices, it is characterised in that including:
Start module, be used for starting system residence service;
Read module, the electricity of configured application program is read in the described system residence service for being started by described startup module Amount consumption statistics data;
Sending module, for sending, to service end, the electric quantity consumption statistical data that described read module reads by predetermined period.
13. 1 kinds of server device, it is characterised in that including:
Processor and for storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtaining the electric quantity consumption statistical data of client, described electric quantity consumption statistical data is that described client is sent out by predetermined period The electric quantity consumption statistical data sent;
Take the use data of resource according to the described electric quantity consumption each application program of analysis of statistical data client, obtain power consumption knot Really.
14. 1 kinds of mobile terminal devices, it is characterised in that including:
Processor and for storing the memorizer of processor executable;
Wherein, described processor is configured to:
Start system residence service;
The electric quantity consumption statistical data of configured application program is read by the described system residence service started;
Described electric quantity consumption statistical data is sent to service end by predetermined period.
15. 1 kinds of consumption detection systems, it is characterised in that including:
Client, is used for starting system residence service, reads configured application program by the described system residence service started Electric quantity consumption statistical data, by predetermined period to service end send described electric quantity consumption statistical data;
Service end, for obtaining the electric quantity consumption statistical data that described client sends, according to described electric quantity consumption statistical data Analyze each application program of client and take the use data of resource, obtain power consumption result.
CN201610695664.3A 2016-08-19 2016-08-19 Method, device and system for detecting power consumption as well as equipment Pending CN106326069A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610695664.3A CN106326069A (en) 2016-08-19 2016-08-19 Method, device and system for detecting power consumption as well as equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610695664.3A CN106326069A (en) 2016-08-19 2016-08-19 Method, device and system for detecting power consumption as well as equipment

Publications (1)

Publication Number Publication Date
CN106326069A true CN106326069A (en) 2017-01-11

Family

ID=57743429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610695664.3A Pending CN106326069A (en) 2016-08-19 2016-08-19 Method, device and system for detecting power consumption as well as equipment

Country Status (1)

Country Link
CN (1) CN106326069A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133172A (en) * 2017-05-02 2017-09-05 北京小米移动软件有限公司 The power consumption detection method and device of application program
CN108183952A (en) * 2017-12-28 2018-06-19 北京奇虎科技有限公司 A kind of application power consumption analysis method, equipment and storage medium based on cloud platform
CN109343991A (en) * 2018-09-26 2019-02-15 Oppo广东移动通信有限公司 The detection method of electronic equipment and its power consumption exception, storage medium
US11755098B2 (en) 2018-12-28 2023-09-12 Samsung Electronics Co., Ltd. Intelligent terminal energy saving method and device based on AI prediction

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914365A (en) * 2012-12-31 2014-07-09 北京金山安全软件有限公司 Method and device for acquiring power consumption of mobile terminal application
US20150006934A1 (en) * 2013-06-27 2015-01-01 Kabushiki Kaisha Toshiba Information processing apparatus and information processing method
CN104301499A (en) * 2013-07-15 2015-01-21 腾讯科技(深圳)有限公司 Method and device for analyzing battery capacity records of mobile terminal, platform and mobile terminal
WO2015007247A1 (en) * 2013-07-19 2015-01-22 贝壳网际(北京)安全技术有限公司 Method and device for obtaining abnormal power consumption application and mobile terminal
CN104461899A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Method and system for analyzing resource consumption in testing process and testing terminal
CN104866409A (en) * 2015-05-29 2015-08-26 小米科技有限责任公司 Method and apparatus for monitoring memory leakage
CN105100504A (en) * 2014-05-22 2015-11-25 北京奇虎科技有限公司 Equipment application electric-power consumption management method and equipment application electric-power consumption management device
CN105373482A (en) * 2015-12-23 2016-03-02 北京金山安全软件有限公司 Method and device for detecting abnormal power consumption of application program and electronic equipment
CN105718028A (en) * 2016-01-22 2016-06-29 青岛海信移动通信技术股份有限公司 Power-saving method and device based on power consumption application recognition

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914365A (en) * 2012-12-31 2014-07-09 北京金山安全软件有限公司 Method and device for acquiring power consumption of mobile terminal application
US20150006934A1 (en) * 2013-06-27 2015-01-01 Kabushiki Kaisha Toshiba Information processing apparatus and information processing method
CN104301499A (en) * 2013-07-15 2015-01-21 腾讯科技(深圳)有限公司 Method and device for analyzing battery capacity records of mobile terminal, platform and mobile terminal
WO2015007247A1 (en) * 2013-07-19 2015-01-22 贝壳网际(北京)安全技术有限公司 Method and device for obtaining abnormal power consumption application and mobile terminal
CN105100504A (en) * 2014-05-22 2015-11-25 北京奇虎科技有限公司 Equipment application electric-power consumption management method and equipment application electric-power consumption management device
CN104461899A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Method and system for analyzing resource consumption in testing process and testing terminal
CN104866409A (en) * 2015-05-29 2015-08-26 小米科技有限责任公司 Method and apparatus for monitoring memory leakage
CN105373482A (en) * 2015-12-23 2016-03-02 北京金山安全软件有限公司 Method and device for detecting abnormal power consumption of application program and electronic equipment
CN105718028A (en) * 2016-01-22 2016-06-29 青岛海信移动通信技术股份有限公司 Power-saving method and device based on power consumption application recognition

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133172A (en) * 2017-05-02 2017-09-05 北京小米移动软件有限公司 The power consumption detection method and device of application program
CN108183952A (en) * 2017-12-28 2018-06-19 北京奇虎科技有限公司 A kind of application power consumption analysis method, equipment and storage medium based on cloud platform
CN109343991A (en) * 2018-09-26 2019-02-15 Oppo广东移动通信有限公司 The detection method of electronic equipment and its power consumption exception, storage medium
US11755098B2 (en) 2018-12-28 2023-09-12 Samsung Electronics Co., Ltd. Intelligent terminal energy saving method and device based on AI prediction

Similar Documents

Publication Publication Date Title
CN104866409A (en) Method and apparatus for monitoring memory leakage
CN104156233B (en) Light application off-line update method, device and terminal
CN104035663A (en) Method and device for displaying notification message
CN105302727A (en) Testing method, device and system
CN104239094A (en) Method and device for controlling background application programs and terminal equipment
CN106488335A (en) Live-broadcast control method and device
CN106326069A (en) Method, device and system for detecting power consumption as well as equipment
CN105338409A (en) Network video pre-loading method and device
CN104601918A (en) Video recording method and device
CN104156186A (en) Health data display method and device
CN104636164B (en) Start page generation method and device
CN104933170A (en) Information exhibition method and device
CN104111641A (en) Power consumption statistics method, apparatus and system
WO2017177596A1 (en) Method and device for displaying state information of application
CN104352228A (en) Method and device for processing application program
CN106357910A (en) Terminal working mode switching method and device
KR101676216B1 (en) Message sending method, device, program, and recording medium
CN105607818A (en) Application sorting method and apparatus
CN103888601A (en) Method, device and terminal for information warning
CN107343087A (en) Smart machine control method and device
CN109034747B (en) Task reminding method and device
CN107231434A (en) The control method and device of terminal device
CN105677548A (en) Application management method and apparatus, and terminal
CN104932970A (en) Monitoring method and device of memory leakage
CN105607979A (en) Network interconnection control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111