CN109271292A - Power consumption information acquisition method and device - Google Patents
Power consumption information acquisition method and device Download PDFInfo
- Publication number
- CN109271292A CN109271292A CN201811039732.6A CN201811039732A CN109271292A CN 109271292 A CN109271292 A CN 109271292A CN 201811039732 A CN201811039732 A CN 201811039732A CN 109271292 A CN109271292 A CN 109271292A
- Authority
- CN
- China
- Prior art keywords
- time
- power consumption
- processor
- application
- foreground
- 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/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- 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
-
- 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
-
- 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)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Telephone Function (AREA)
Abstract
The disclosure is directed to a kind of power consumption information acquisition method and devices.This method comprises: the foreground for obtaining target application uses time and processor holding time;If the processor holding time and the foreground are greater than or equal to preset threshold using the difference of time, the target application is applied extremely labeled as power consumption.In the technical solution, when the time that target application occupies processor being far longer than its foreground using the time, it can determine that the target application is that power consumption is applied extremely, it solves the problems, such as that terminal is difficult to position and causes the increased application of terminal power consumption amount, it is also convenient for terminal simultaneously and closes the power consumption for causing the increased application of terminal power consumption amount to reduce terminal by prompt user, improves the stand-by time of terminal.
Description
Technical field
This disclosure relates to terminal control technical field more particularly to a kind of power consumption information acquisition method and device.
Background technique
In the related technology, the function of mobile phone is more and more diversified, and user can be by a variety of APP for installing on mobile phone
(Application, using) carry out voice communication, shopping, payment, chat or viewing video etc..
In the related technology, if mobile phone it is currently running application it is more, mobile phone occur power consumption it is excessive when, terminal is difficult
Positioning causes the increased application of power consumption, and then can not reduce the power consumption of mobile phone by prompting user to close the application.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of power consumption information acquisition method and dress
It sets.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of power consumption information acquisition method is provided, comprising:
The foreground for obtaining target application uses time and processor holding time;
If the processor holding time and the foreground are greater than or equal to preset threshold using the difference of time, will be described
Target application is applied extremely labeled as power consumption.
The technical scheme provided by this disclosed embodiment can include the following benefits: when target application occupies processor
Time when being far longer than its foreground using the time, can determine that the target application is that power consumption is applied extremely, solve terminal hardly possible
The problem of causing the increased application of terminal power consumption amount with positioning, while being also convenient for terminal and close by prompt user that terminal is caused to consume
The increased application of electricity reduces the power consumption of terminal, improves the stand-by time of terminal.
In one embodiment, the method also includes:
Obtaining and being currently at label in multiple applications of operating status is at least one application applied extremely;
According at least one described application, display reminding information, the prompt information is for prompting user to close institute in time
State at least one application.
In one embodiment, the foreground for obtaining target application includes: using time and processor holding time
The foreground for obtaining the target application in preset time period uses time and processor holding time.
In one embodiment, the foreground for obtaining the target application in preset time period uses time and processor
Holding time includes:
Obtain the journal file in the preset time period;
Time and processor holding time are used according to the foreground that the journal file obtains the target application.
According to the second aspect of an embodiment of the present disclosure, a kind of power consumption information acquisition device is provided, comprising:
First obtains module, and the foreground for obtaining target application uses time and processor holding time;
Mark module, if being greater than or equal in advance for the processor holding time and the foreground using the difference of time
If threshold value, the target application is applied extremely labeled as power consumption.
In one embodiment, described device further include:
Second obtains module, applies extremely for obtaining label in the multiple applications for be currently at operating status
At least one application;
Display module, at least one application according to, display reminding information, the prompt information is used for prompting
At least one described application is closed at family in time.
In one embodiment, the first acquisition module includes:
Acquisition submodule, the foreground for obtaining the target application in preset time period are occupied using time and processor
Time.
In one embodiment, the acquisition submodule includes:
First acquisition unit, for obtaining the journal file in the preset time period;
Second acquisition unit, the foreground for obtaining the target application according to the journal file use time and processing
Device holding time.
According to the third aspect of an embodiment of the present disclosure, a kind of power consumption information acquisition device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The foreground for obtaining target application uses time and processor holding time;
If the processor holding time and the foreground are greater than or equal to preset threshold using the difference of time, will be described
Target application is applied extremely labeled as power consumption.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine instruction, when which is executed by processor the step of realization first aspect any embodiment the method.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 a is the flow chart of power consumption information acquisition method shown according to an exemplary embodiment.
Fig. 1 b is the flow chart of power consumption information acquisition method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of power consumption information acquisition method shown according to an exemplary embodiment.
Fig. 3 a is the structural schematic diagram of power consumption information acquisition device shown according to an exemplary embodiment.
Fig. 3 b is the structural schematic diagram of power consumption information acquisition device shown according to an exemplary embodiment.
Fig. 3 c is the structural schematic diagram of power consumption information acquisition device shown according to an exemplary embodiment.
Fig. 3 d is the structural schematic diagram of power consumption information acquisition device shown according to an exemplary embodiment.
Fig. 4 is the structural block diagram of power consumption information acquisition device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
The technical solution that the embodiment of the present disclosure provides is related to terminal, which can be mobile phone, tablet computer, smartwatch
And other equipment that can install application program, the embodiment of the present disclosure are not construed as limiting this.In the related technology, if terminal backstage
Operation using more, then terminal, which is difficult to position, causes the increased application of terminal power consumption amount, and then can not close the application in time
To reduce the power consumption of mobile phone.In the technical scheme provided by this disclosed embodiment, when target application occupies processor
When the time of (Central Processing Unit, CPU) is far longer than its foreground using the time, it can determine that the target is answered
It is applied extremely with for power consumption, solves the problems, such as that terminal is difficult to position and cause the increased application of terminal power consumption amount, be also convenient for simultaneously
Terminal closes the power consumption for causing the increased application of terminal power consumption amount to reduce terminal by prompt user, improve terminal it is standby when
Between.
Fig. 1 a is a kind of flow chart of power consumption information acquisition method shown according to an exemplary embodiment, this method application
In terminal, as shown in Figure 1a, which includes the following steps 101 to step 102:
In a step 101, the foreground for obtaining target application uses time and processor holding time.
Exemplary, terminal is equipped with multiple applications, carried out as needed convenient for user using.It is common for some users
After this has been used using, user, it can be set to background operation state, it can be quick when in order to use next time
It opens.If running background using more, the power consumption that may result in terminal increases, therefore terminal can be obtained successively and is in
The foreground of each application uses time and processor holding time in multiple applications of operating status, and according to each application
Foreground uses time and processor holding time, determines whether each application is to lead to the increased application of terminal power consumption amount, at this time
Multiple applications of the operating status include the application of the application and running background that are currently just using on foreground.Optionally, terminal can
Time and processor holding time are used to obtain the foreground of each application in multiple applications in operating status in real time, it can also
Time and processor are used to obtain the foreground of each application in multiple applications in operating status according to preset period of time
Holding time.
By taking target application as an example, which is the terminal accumulative time for showing the target application, the processing using the time
Device holding time is the target application accumulative time for occupying processor, i.e. the accumulative process institute for handling the target application of processor
Time, the target application are any one application in multiple applications in operating status.Specifically, terminal can lead to
It crosses journal file and obtains the foreground of the target application and use time and processor holding time.For example, the available reading of terminal
Instruction, the reading instruct instruction terminal to obtain journal file, which records each operation for having terminal and each behaviour
The case where making the time executed and whether occupying processor.Terminal according to the reading instruction get journal file after,
Bugreport (error reporting) file can be generated according to the journal file, and the foreground of target application is obtained by this document
Use time and processor holding time.
In practical application, if target application is always at background operation state or foreground use state, i.e. target application
Always in operating status, then with the growth of the runing time, the invalid data of target application accumulation is more, since this is invalid
A possibility that invalid operation that processor is occupied caused by data is also more, leads to the increase of terminal power consumption amount are also bigger.Therefore have
The time for being likely to occur the accumulative occupancy processor of target application is shorter, but as the accumulation of invalid data leads to target application
Relatively long situation of the short-term time for occupying processor, so target application adds up to occupy for a long time the time of processor simultaneously
It cannot reflect the short-term power consumption problem of target application.In order to improve the precision of the biggish application of terminal positioning power consumption, terminal
The foreground of the target application uses time and processor holding time in available preset time period, and is used according to the foreground
Time and processor holding time determine whether target application is to lead to the increased application of terminal power consumption amount, which is
Calculate the period that preset time is got forward using current time as cut off.Specifically, the available preset time of terminal
Journal file in section, and foreground of the target application in the preset time period is obtained according to the journal file and uses time and place
Device holding time is managed, in practical application, which can be configured as the case may be, such as 3 hours or 5 small
When etc., the embodiment of the present disclosure is not construed as limiting this.
It in a step 102, will if processor holding time and foreground are greater than or equal to preset threshold using the difference of time
Target application is applied extremely labeled as power consumption.
Exemplary, when terminal is when foreground uses the target application, which is bound to occupy processor;Work as terminal
In the running background target application, under normal circumstances the target application will not occupy processor or occupy processor time compared with
It is short, but the abnormal conditions of processor are occupied when may also will appear target application running background in practical application for a long time, and
The time for occupying processor is directly proportional to the power consumption of target application, therefore terminal can be occupied according to the processor of target application
Time and foreground determine whether the power consumption of the target application is larger using the difference of time.
Specifically, terminal can calculate the processor holding time and foreground using the difference between the time, and determining should
Whether difference is greater than or equal to preset threshold, for example, the preset threshold can be half an hour.If the processor holding time is with before
Platform is greater than or equal to preset threshold using the difference of time, illustrates that the time of target application occupancy processor is longer, in fact it could happen that
Target application occupies the abnormal conditions of processor for a long time, can apply the target application extremely labeled as power consumption at this time,
It solves the problems, such as that terminal is difficult to position and causes the increased application of terminal power consumption amount.If the processor holding time and foreground use
The difference of time is less than preset threshold, illustrates that the time of target application occupancy processor is shorter, i.e., power consumption is normal, at this time terminal
When can operate normally the target application, and obtain processor holding time and the foreground use of the application of next running background
Between, and manage device holding time and foreground according to this and determine whether the electricity of next application normal using the time.
Optionally, terminal can also directly close the target after applying the target application extremely labeled as power consumption
Using that is, by target application state out of service, having saved the resource of terminal, thereby reduced the power consumption of terminal.
In the technical scheme provided by this disclosed embodiment, before the time that target application occupies processor is far longer than it
When platform uses the time, it can determine that the target application is that power consumption is applied extremely, solve terminal and be difficult to position and cause terminal power consumption
The problem of measuring increased application, while being also convenient for terminal and causing the increased application of terminal power consumption amount to reduce by prompt user's closing
The power consumption of terminal improves the stand-by time of terminal.
In one embodiment, as shown in Figure 1 b, method further includes step 103 and step 104:
In step 103, obtaining and being currently at label in multiple applications of operating status is to apply extremely at least
One application.
At step 104, according to this, at least one is applied, display reminding information, and prompt information is for prompting user timely
Close at least one application.
Exemplary, terminal can successively determine that the processor of each application in the multiple applications for be currently at operating status accounts for
Whether it is greater than or equal to preset threshold using the difference of time with time and foreground, and its difference is greater than or equal to preset threshold
At least one application applied extremely labeled as power consumption, that is, be currently in multiple applications of operating status there may be one or
Multiple power consumptions are applied extremely.
Terminal can be applied extremely according to the one or more power consumption, generate prompt information and shown, be convenient for user
Closing the label that the prompt information is related to after access in time is the one or more application applied extremely.Specifically, false
If terminal determines the first application from the multiple applications for be currently at operating status and the second application is that power consumption is applied extremely, at this time
Terminal can show suspended window in current interface, and " power consumption of the first application and the second application is different for display on the suspended window
Often, please close in time " printed words, then prompt user to consult by way of jingle bell or vibration.In access, this is mentioned user
After showing information, multitask interface can be opened, and close first application and the second application according to predetermined manner, avoid this
One application and the second application continue power consumption.
Optionally, if there is the abnormal conditions for applying the long-time occupancy CPU in running background, it may be possible to due to answering
It is more caused with the longer accumulative invalid data of runing time, it is also possible to it is that the program applied Bug (mistake) occurs, this
Kind situation just needs to prompt the developer of the application to repair in time to the Bug.Specifically, assuming terminal from being currently at
The first application is determined in multiple applications of operating status and the second application is that power consumption is applied extremely, and terminal can be to test eventually at this time
End sends feedback information, which is used to reflect the power consumption condition of first application and the second application, such as the feedback letter
Breath may include the processor holding time of the first application and foreground uses the difference between the time and the processing of the second application
Device holding time and foreground use the difference between the time.Terminal is tested after getting the feedback information, it can be in screen
Upper display feedback information, and prompt tester to consult in time by way of jingle bell or vibration.Tester should in basis
After feedback information determines the power consumption exception of first application and the second application, it can be applied respectively with first application and second
Developer's connection, the abnormal power consumption condition of its application is informed, convenient for the developer of the first application and the second application to the
Bug in one application and the second application is repaired, convenient for improving the power consumption experience of terminal.
In the technical scheme provided by this disclosed embodiment, terminal can according to one applied extremely labeled as power consumption or
Multiple application display reminding information cause the increased application of terminal power consumption amount in order to which user closes in time, reduce terminal
Power consumption improves the stand-by time of terminal.
Realization process is discussed in detail below by several embodiments.
Fig. 2 is a kind of flow chart of power consumption information acquisition method shown according to an exemplary embodiment, and executing subject is
Terminal, as shown in Fig. 2, including the following steps 201 to step 204:
In step 201, terminal obtains in operating status in preset time period multiple answer according to preset period of time
The foreground of each application uses time and processor holding time in.
In step 202, terminal determines whether the foreground of each application uses the difference of time and processor holding time
More than or equal to preset threshold.
In step 203, foreground in multiple application is greater than by terminal using time and the difference of processor holding time
Or at least one application equal to preset threshold is applied extremely labeled as power consumption.
In step 204, according to this, at least one is applied terminal, and display reminding information, the prompt information is used for prompting
At least one described application is closed at family in time.
Embodiment of the disclosure provides a kind of power consumption information acquisition method, when target application occupies the time of processor much
When using the time greater than its foreground, it can determine that the target application is that power consumption is applied extremely, solve terminal and be difficult to position and cause
The problem of terminal power consumption amount increased application, while by display reminding information being also convenient for user and close in time to cause terminal power consumption
Increased application is measured, the power consumption of terminal is reduced, improves the stand-by time of terminal.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 3 a is a kind of structural schematic diagram of power consumption information acquisition device 30 shown according to an exemplary embodiment, the dress
Setting 30 being implemented in combination with as some or all of of electronic equipment by software, hardware or both.As shown in Figure 3a,
The power consumption information acquisition device 30 includes the first acquisition module 301 and mark module 302.
Wherein, first module 301 is obtained, the foreground for obtaining target application uses time and processor holding time.
Mark module 302, if being greater than or waiting using the difference of time with the foreground for the processor holding time
In preset threshold, the target application is applied extremely labeled as power consumption.
In one embodiment, as shown in Figure 3b, described device further includes the second acquisition module 303 and display module 304.
Wherein, second module 303 is obtained, is different for obtaining label in the multiple applications for be currently at operating status
At least one application often applied.
Display module 304, for according at least one described application, display reminding information, the prompt information to be for mentioning
Show that user closes at least one described application in time.
In one embodiment, as shown in Figure 3c, the first acquisition module 301 includes acquisition submodule 3011, described
Acquisition submodule 3011, when the foreground for obtaining the target application in preset time period is occupied using time and processor
Between.
In one embodiment, as shown in Figure 3d, the acquisition submodule 3011 includes first acquisition unit 3011a and the
Two acquiring unit 3011b.
Wherein, first acquisition unit 3011a, for obtaining the journal file in the preset time period.
Second acquisition unit 3011b, the foreground for obtaining the target application according to the journal file use the time
With processor holding time.
Embodiment of the disclosure provides a kind of power consumption information acquisition device, when target application occupies the time of processor much
When using the time greater than its foreground, which can determine that the target application is that power consumption is applied extremely, solve terminal and be difficult to determine
Position causes the problem of terminal power consumption amount increased application, while the device is also convenient for user by display reminding information and closes in time
Cause the increased application of terminal power consumption amount, reduce the power consumption of terminal, improves the stand-by time of terminal.
The embodiment of the present disclosure provides a kind of power consumption information acquisition device, which includes:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
The foreground for obtaining target application uses time and processor holding time;
If the processor holding time and the foreground are greater than or equal to preset threshold using the difference of time, will be described
Target application is applied extremely labeled as power consumption.
In one embodiment, above-mentioned processor is also configured to: obtaining the multiple applications for being currently at operating status
Middle label is at least one application applied extremely;According at least one described application, display reminding information, the prompt
Information is for prompting user to close at least one described application in time.
In one embodiment, above-mentioned processor is also configured to: obtaining the target application in preset time period
Foreground uses time and processor holding time.
In one embodiment, above-mentioned processor is also configured to: obtaining the journal file in the preset time period;
Time and processor holding time are used according to the foreground that the journal file obtains the target application.
Embodiment of the disclosure provides a kind of power consumption information acquisition device, when target application occupies the time of processor much
When using the time greater than its foreground, which can determine that the target application is that power consumption is applied extremely, solve terminal and be difficult to determine
Position causes the problem of terminal power consumption amount increased application, while the device is also convenient for user by display reminding information and closes in time
Cause the increased application of terminal power consumption amount, reduce the power consumption of terminal, improves the stand-by time of terminal.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 4 is a kind of structural block diagram for power consumption information acquisition device 40 shown according to an exemplary embodiment, should
Device 40 is suitable for terminal device.For example, device 40 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting set
It is standby, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 40 may include following one or more components: processing component 402, memory 404, and power supply module 406 is more
Media component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414 and communication component
416。
The integrated operation of the usual control device 40 of processing component 402, such as with display, telephone call, data communication, camera
Operation and record operate associated operation.Processing component 402 may include one or more processors 420 to execute instruction,
To perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, it is convenient for
Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, to facilitate more matchmakers
Interaction between body component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 40.These data are shown
Example includes the instruction of any application or method for operating on device 40, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 40.Power supply module 406 may include power management system
System, one or more power supplys and other with for device 40 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between described device 40 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 408 includes a front camera and/or rear camera.When device 40 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike
Wind (MIC), when device 40 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is configured
To receive external audio signal.The received audio signal can be further stored in memory 404 or via communication component
416 send.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 414 includes one or more sensors, for providing the status assessment of various aspects for device 40.
For example, sensor module 414 can detecte the state that opens/closes of device 40, the relative positioning of component, such as the component
For the display and keypad of device 40, sensor module 414 can be with the position of 40 1 components of detection device 40 or device
Change, the existence or non-existence that user contacts with device 40, the temperature change in 40 orientation of device or acceleration/deceleration and device 40.
Sensor module 414 may include proximity sensor, be configured to detect object nearby without any physical contact
Presence.Sensor module 414 can also include that optical sensor is used in imaging applications such as CMOS or ccd image sensor
It uses.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic sensing
Device, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 40 and other equipment.Device
40 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 40 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for executing above-mentioned power consumption acquisition of information side
Method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 40 to complete the above method.For example, institute
State non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and
Optical data storage devices etc..
The embodiment of the present disclosure provides a kind of non-transitorycomputer readable storage medium, the instruction in the storage medium
When being executed by the processor of device 40, so that device 40 is able to carry out above-mentioned power consumption information acquisition method, which comprises
The foreground for obtaining target application uses time and processor holding time;
If the processor holding time and the foreground are greater than or equal to preset threshold using the difference of time, will be described
Target application is applied extremely labeled as power consumption.
In one embodiment, the method also includes: acquisition be currently in multiple applications of operating status label for
At least one application that power consumption is applied extremely;According at least one described application, display reminding information, the prompt information is used for
Prompt user closes at least one described application in time.
In one embodiment, the foreground for obtaining target application includes: to obtain using time and processor holding time
The foreground of the target application in preset time period is taken to use time and processor holding time.
In one embodiment, the foreground for obtaining the target application in preset time period uses time and processor
Holding time includes: the journal file obtained in the preset time period;The target application is obtained according to the journal file
Foreground use time and processor holding time.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. a kind of power consumption information acquisition method characterized by comprising
The foreground for obtaining target application uses time and processor holding time;
If the processor holding time and the foreground are greater than or equal to preset threshold using the difference of time, by the target
It is applied extremely using labeled as power consumption.
2. the method according to claim 1, wherein the method also includes:
Obtaining and being currently at label in multiple applications of operating status is at least one application applied extremely;
According to it is described at least one application, display reminding information, the prompt information for prompt user closes in time described in extremely
A few application.
3. method according to claim 1 or 2, which is characterized in that the foreground for obtaining target application using the time and
Processor holding time includes:
The foreground for obtaining the target application in preset time period uses time and processor holding time.
4. according to the method described in claim 3, it is characterized in that, in the acquisition preset time period before the target application
Platform includes: using time and processor holding time
Obtain the journal file in the preset time period;
Time and processor holding time are used according to the foreground that the journal file obtains the target application.
5. a kind of power consumption information acquisition device characterized by comprising
First obtains module, and the foreground for obtaining target application uses time and processor holding time;
Mark module, if being greater than or equal to default threshold using the difference of time for the processor holding time and the foreground
Value applies the target application labeled as power consumption extremely.
6. device according to claim 5, which is characterized in that described device further include:
Second obtains module, is to apply at least extremely for obtaining label in the multiple applications for be currently at operating status
One application;
Display module, for according at least one described application, display reminding information, the prompt information for prompt user and
When close at least one described application.
7. device according to claim 5 or 6, which is characterized in that described first, which obtains module, includes:
Acquisition submodule, when the foreground for obtaining the target application in preset time period is occupied using time and processor
Between.
8. device according to claim 7, which is characterized in that the acquisition submodule includes:
First acquisition unit, for obtaining the journal file in the preset time period;
Second acquisition unit, the foreground for obtaining the target application according to the journal file are accounted for using time and processor
Use the time.
9. a kind of power consumption information acquisition device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The foreground for obtaining target application uses time and processor holding time;
If the processor holding time and the foreground are greater than or equal to preset threshold using the difference of time, by the target
It is applied extremely using labeled as power consumption.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of Claims 1-4 any one claim the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811039732.6A CN109271292A (en) | 2018-09-06 | 2018-09-06 | Power consumption information acquisition method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811039732.6A CN109271292A (en) | 2018-09-06 | 2018-09-06 | Power consumption information acquisition method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109271292A true CN109271292A (en) | 2019-01-25 |
Family
ID=65188454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811039732.6A Pending CN109271292A (en) | 2018-09-06 | 2018-09-06 | Power consumption information acquisition method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109271292A (en) |
Cited By (2)
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 |
CN114428546A (en) * | 2022-01-25 | 2022-05-03 | 惠州Tcl移动通信有限公司 | Background application cleaning method and device, storage medium and terminal equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324519A (en) * | 2013-06-17 | 2013-09-25 | 华为技术有限公司 | Method and device for clearing malicious power consumption applications, and user terminal |
CN104281510A (en) * | 2013-07-05 | 2015-01-14 | 贝壳网际(北京)安全技术有限公司 | Method and system for obtaining power consumption degree of application program and energy-saving method and system |
CN105955869A (en) * | 2016-05-12 | 2016-09-21 | 捷开通讯科技(上海)有限公司 | Electronic device abnormal application monitoring and processing system and method |
CN106256116A (en) * | 2015-04-14 | 2016-12-21 | 华为技术有限公司 | A kind of method controlling application program and terminal |
CN106572250A (en) * | 2016-10-31 | 2017-04-19 | 努比亚技术有限公司 | Method and device for cleaning mobile terminal background application |
-
2018
- 2018-09-06 CN CN201811039732.6A patent/CN109271292A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103324519A (en) * | 2013-06-17 | 2013-09-25 | 华为技术有限公司 | Method and device for clearing malicious power consumption applications, and user terminal |
EP2977854A1 (en) * | 2013-06-17 | 2016-01-27 | Huawei Technologies Co., Ltd. | Method, apparatus, and user terminal for removing malicious power consuming application |
CN104281510A (en) * | 2013-07-05 | 2015-01-14 | 贝壳网际(北京)安全技术有限公司 | Method and system for obtaining power consumption degree of application program and energy-saving method and system |
CN106256116A (en) * | 2015-04-14 | 2016-12-21 | 华为技术有限公司 | A kind of method controlling application program and terminal |
CN105955869A (en) * | 2016-05-12 | 2016-09-21 | 捷开通讯科技(上海)有限公司 | Electronic device abnormal application monitoring and processing system and method |
CN106572250A (en) * | 2016-10-31 | 2017-04-19 | 努比亚技术有限公司 | Method and device for cleaning mobile terminal background application |
Cited By (4)
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 |
CN114428546A (en) * | 2022-01-25 | 2022-05-03 | 惠州Tcl移动通信有限公司 | Background application cleaning method and device, storage medium and terminal equipment |
CN114428546B (en) * | 2022-01-25 | 2024-04-09 | 惠州Tcl移动通信有限公司 | Background application cleaning method and device, storage medium and terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106375604B (en) | The method and apparatus of controlling terminal electricity | |
CN104486451B (en) | Application program recommends method and device | |
CN104683568A (en) | Information reminding method and information reminding device | |
CN109375967A (en) | Application Program Interface display methods and device, mobile terminal and storage medium | |
CN104092808A (en) | Number marking method, device and terminal | |
CN109117874A (en) | Operation behavior prediction technique and device | |
CN105530384A (en) | Method and device for power reminding based on alarm clock | |
CN103888601A (en) | Method, device and terminal for information warning | |
CN109039877A (en) | A kind of method, apparatus, electronic equipment and storage medium showing unread message quantity | |
CN105141769A (en) | Communication message processing method and device as well as terminal | |
CN105516483A (en) | Equipment control method, device and terminal | |
CN105450872A (en) | Alarm clock reminding methods and apparatuses | |
CN105554255A (en) | Operation control method and device for terminal equipment | |
CN105068651A (en) | Method, device, terminal and server for controlling alarm clock | |
CN109582400A (en) | Routine call method and device | |
CN105807894A (en) | Processing method and device of lock holding of application | |
CN105323152A (en) | Message processing method, device and equipment | |
CN105472097A (en) | Automatic reminding method based on mobile communication device, and mobile communication device thereof | |
CN108267728A (en) | Calibration method, device, equipment and the storage medium of range sensor | |
EP3160112A1 (en) | Reminding method and device | |
CN109271292A (en) | Power consumption information acquisition method and device | |
CN105260221A (en) | Application installation method and device | |
CN105677428A (en) | Upgrading method and device for terminal and terminal | |
CN105607979A (en) | Network interconnection control method and device | |
CN107632835A (en) | Using installation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190125 |
|
RJ01 | Rejection of invention patent application after publication |