CN105589546A - Information detection method and device - Google Patents

Information detection method and device Download PDF

Info

Publication number
CN105589546A
CN105589546A CN201510967861.1A CN201510967861A CN105589546A CN 105589546 A CN105589546 A CN 105589546A CN 201510967861 A CN201510967861 A CN 201510967861A CN 105589546 A CN105589546 A CN 105589546A
Authority
CN
China
Prior art keywords
mobile terminal
application program
information
testing result
default
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
CN201510967861.1A
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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510967861.1A priority Critical patent/CN105589546A/en
Publication of CN105589546A publication Critical patent/CN105589546A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3246Power saving characterised by the action undertaken by software initiated power-off

Abstract

The embodiment of the invention discloses an information detection method and a device, which are applied to a mobile terminal, and the method comprises the following steps: the method comprises the steps of obtaining the total CPU occupancy rate of a central processing unit of the mobile terminal according to a preset time interval, judging whether the total CPU occupancy rate is larger than a first preset occupancy rate or not, if so, obtaining the CPU occupancy rate of each application program in the mobile terminal in an operation state, and generating a detection result aiming at the application program according to the application program corresponding to the CPU occupancy rate larger than a second preset occupancy rate in the obtained CPU occupancy rates. By applying the technical scheme provided by the embodiment of the invention, the detection result aiming at the application program is obtained, and the corresponding application program is closed according to the detection result, so that the technical problems of high power consumption and short available time of the mobile terminal can be solved.

Description

A kind of information detecting method and device
Technical field
The present invention relates to detection technique field, particularly a kind of information detecting method and device.
Background technology
Along with the development of mobile terminal technology, function on mobile terminal is more and more, and people not only can beMobile terminal is enterprising, and work words or note exchanges, can also on mobile terminal, do shopping, play, watch video,Receiving and dispatching mail etc.
At present, due to increasing of function on mobile terminal, user, in the time using mobile terminal, usually has manyApplication program is at the running background of mobile terminal, in the application program of running background, some application programsCPU (CentralProcessingUnit, central processing unit) occupancy is higher, now, if do not close thisA little application programs, they will continue to take the cpu resource of mobile terminal, and this will cause mobile terminal power consumptionHurry up, the pot life of mobile terminal shortens.
In prior art, in mobile terminal, the normally user estimation of the CPU usage of application program, thisThe method degree of accuracy is low, and some application programs that often user closes according to its estimated value are not CPU usageThe highest application program, therefore, what the scheme that provides of application prior art can not effectively extend mobile terminal canUse the time.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of information detecting method and device, can solve eventually mobileThe technical problem that end power consumption is fast, pot life is short.
For achieving the above object, the embodiment of the invention discloses a kind of information detecting method, be applied to eventually mobileEnd, described method comprises step:
According to the default time interval, obtain the total occupancy of central processor CPU of described mobile terminal;
Judge whether the total occupancy of described CPU is greater than the first default occupancy;
If yes, the CPU that obtains each application program in running status in described mobile terminal takiesRate;
According to application corresponding to CPU usage that is greater than the second default occupancy in obtained CPU usageProgram, generates the testing result for application program.
In a kind of specific implementation, described method also comprises:
In screen lock state in the situation that, receive the screen solution for described mobile terminal at described mobile terminalLock instruction;
Acquisition receives described unlocking screen instruction interior each testing result generating of the first default duration before,Wherein, the mark that comprises application program in described testing result;
Add up the number of times occurring in obtained all testing results that is identified at of identical application program;
Be greater than the application program of the mark correspondence of the first preset times according to statistics number, generate and move for describedThe information of moving terminal;
Show condition in the case of meeting the default first information, show the prompting for described mobile terminalInformation.
In a kind of specific implementation, in described testing result, comprise the current electric quantity of described mobile terminal;
The described application program that is greater than the mark correspondence of the first preset times according to statistics number, generates for instituteThe information of stating mobile terminal, comprising:
Be greater than according to statistics number in the testing result of application program of the mark correspondence of the first preset times and compriseCurrent electric quantity, determine the power consumption of described mobile terminal;
According to described power consumption and default power consumption, generate the information for described mobile terminal.
In a kind of specific implementation, described in the case of meeting default first information displaying condition, open upShow the information for described mobile terminal, comprising:
According to after described unlocking screen instruction success release, judge described mobile terminal at described mobile terminalWhether current display interface is the desktop of described mobile terminal;
If yes, show the information for described mobile terminal.
In a kind of specific implementation, described method also comprises:
At described mobile terminal in non-screen lock state in the situation that, obtain before current time second when defaultThe testing result for destination application generating in long, wherein, described destination application by: obtainedArbitrary application program corresponding to CPU usage that is greater than the second default occupancy in the CPU usage obtaining;
Whether the number of times of the testing result that judgement obtains is greater than the second preset times;
If yes, generate the information for described destination application;
In the case of meeting the second default information display condition, show for described destination applicationInformation.
In a kind of specific implementation, described method also comprises:
Cleaning is for the testing result of application program that meets default cleaning condition.
In a kind of specific implementation, described cleaning is for the inspection of application program that meets default cleaning conditionSurvey result, comprising:
Receive the out code for application program C; Close described application program C according to described out code,And cleaning is for the testing result of described application program C; Or
Clear up the testing result for application program generating before the 3rd default duration.
For achieving the above object, the embodiment of the invention also discloses a kind of information detector, be applied to movementTerminal, described device comprises: the first occupancy acquisition unit, occupancy judging unit, the second occupancy obtainObtain unit and testing result generation unit;
Wherein, described the first occupancy obtains unit, for the time interval according to default, moves described in acquisitionThe total occupancy of central processor CPU of moving terminal;
Described occupancy judging unit, for judging whether the total occupancy of described CPU is greater than the first default takingRate, if yes, triggers described the second occupancy and obtains unit;
Described the second occupancy obtains unit, for obtaining described mobile terminal in each of running statusThe CPU usage of application program;
Described testing result generation unit, for being greater than the second default accounting for according to obtained CPU usageBy application program corresponding to the CPU usage of rate, generate the testing result for application program.
In a kind of specific implementation, described device also comprises: unlocking screen command reception unit, the first inspectionSurvey result and obtain unit, first number statistic unit, the first information generation unit and the first informationDisplay unit;
Wherein, described unlocking screen command reception unit, at described mobile terminal in screen lock stateIn situation, receive the unlocking screen instruction for described mobile terminal;
Described the first testing result obtains unit, receives before described unlocking screen instruction first for obtainingEach testing result generating in default duration, wherein, comprises the mark of application program in described testing result;
Described first number statistic unit, for adding up obtained all of being identified at of identical application programThe number of times occurring in testing result;
Described the first information generation unit, for being greater than the mark of the first preset times according to statistics numberCorresponding application program, generates the information for described mobile terminal;
Described the first information display unit, for the situation meeting default first information displaying conditionUnder, show the information for described mobile terminal.
In a kind of specific implementation, in described testing result, comprise the current electric quantity of described mobile terminal;
Described the first information generation unit, comprising: power consumption determines that subelement and information generate sonUnit;
Wherein, described power consumption is determined subelement, for be greater than the mark of the first preset times according to statistics numberKnow the current electric quantity comprising in the testing result of corresponding application program, determine the power consumption of described mobile terminal;
Described information generates subelement, for according to described power consumption and default power consumption, generates pinTo the information of described mobile terminal.
In a kind of specific implementation, described the first information display unit, comprising: display interface judgementSubelement and information are shown subelement;
Wherein, described display interface judgment sub-unit, at described mobile terminal according to described unlocking screenAfter instruction success release, judge whether the current display interface of described mobile terminal is the table of described mobile terminalFace, if yes, triggers described information and shows subelement;
Described information is shown subelement, for showing the information for described mobile terminal.
In a kind of specific implementation, described device also comprises: the second testing result obtains unit, for the second timeNumber judging unit, the second information generation unit and the second information display unit;
Wherein, described second testing result obtain unit, at described mobile terminal in non-screen lock stateSituation under, obtain the detection for destination application generating in the second default duration before current timeAs a result, wherein, described destination application for: in the CPU usage obtaining arbitrary be greater than second defaultThe application program corresponding to CPU usage of occupancy;
Whether described second number judging unit, be greater than second for the number of times that judges obtained testing resultPreset times, if yes, triggers described the second information generation unit;
Described the second information generation unit, for generating the information for described destination application;
Described the second information display unit, for the situation meeting the second default information display conditionUnder, show the information for described destination application.
In a kind of specific implementation, described device also comprises: testing result cleaning unit, and for clearing up pinTo meeting the testing result of application program of default cleaning condition.
In a kind of specific implementation, described testing result cleaning unit,
Specifically for: receive the out code for application program C; Close described answering according to described out codeUse program C, and cleaning is for the testing result of described application program C; Or
Specifically for: the testing result for application program generating before the default duration of cleaning the 3rd.
Therefore in the embodiment of the present invention, mobile terminal obtains its centre according to the default time intervalThe total occupancy of reason device CPU, in the time that the total occupancy of CPU obtaining is greater than the first default occupancy, obtains this and moves, if there is the CPU of an application program in the CPU usage of each application program in running status in terminalIn occupancy, be greater than the second default occupancy, generate the testing result of this application program. In this testing resultThe CPU usage of application program is detected and is obtained by mobile terminal, and under normal circumstances CPU usage with mobile eventuallyThe power consumption relation in direct ratio of end, with the inversely proportional relation of pot life of mobile terminal, therefore, according toThis testing result is closed corresponding application program, can solve the skill that mobile terminal power consumption is fast, pot life is shortArt problem.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will be to implementingIn example or description of the Prior Art, the accompanying drawing of required use is briefly described, and apparently, the following describesIn accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not payingGo out under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of a kind of information detecting method that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of a kind of information methods of exhibiting that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of information methods of exhibiting that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of information detecting method that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of information detector that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of information exhibiting device that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the another kind of information exhibiting device that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the another kind of information detector that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearlyChu, intactly description, obviously, described embodiment is only the present invention's part embodiment, instead ofWhole embodiment. Based on the embodiment in the present invention, those of ordinary skill in the art are not making creationThe every other embodiment obtaining under property work prerequisite, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of information detecting method and device, be applied to mobile terminal, the methodComprise: according to the default time interval, obtain the total occupancy of central processor CPU of mobile terminal, judgementWhether the total occupancy of CPU is greater than the first default occupancy, if yes, obtains in mobile terminal in operationThe CPU usage of each application program of state, according to being greater than the second default accounting in obtained CPU usageBy application program corresponding to the CPU usage of rate, generate the testing result for application program.
Below by specific embodiment, the present invention is described in detail.
With reference to figure 1, the schematic flow sheet of a kind of information detecting method providing for the embodiment of the present invention, is applied toMobile terminal, the method can comprise the steps:
S101: according to the default time interval, the central processor CPU that obtains described mobile terminal always takiesRate;
Here, mobile terminal can be mobile phone, panel computer or notebook computer etc.
S102: judge that whether the total occupancy of described CPU is greater than the first default occupancy, if yes, carries outStep S103, otherwise, end process;
Certainly, in other embodiments of the invention, if the total occupancy of CPU is not more than the first default occupancy,This testing process finishes, and the total occupancy of CPU that can carry out next time detects.
S103: the CPU usage that obtains each application program in running status in described mobile terminal;
S104: according to the CPU usage correspondence that is greater than the second default occupancy in obtained CPU usageApplication program, generate for the testing result of application program.
Suppose, the default time interval is 10 minutes, and mobile terminal, every 10 minutes, obtains one time CPUTotal occupancy, obtains after the total occupancy of CPU, judges whether the total occupancy of this CPU is greater than the first default occupancy,Suppose, the first default occupancy is 20%, if the total occupancy of CPU obtaining is 21%, 21% > 20%, existsThe dimension of application program detects the CPU usage of each application program in running status, supposes, currentApplication program in running status has " micro-letter ", " Email ", " game " and " antivirus software ", theTwo default occupancies are 5%, and when detecting, the CPU usage that obtains " micro-letter " is 6%, " Email "CPU usage is 4%, the CPU usage of " game " is 4%, the CPU usage of " antivirus software " is 7%,Generate the testing result for " micro-letter " and " antivirus software ".
It should be noted that, in a testing result, can comprise in all CPU usages simultaneously and be greater thanThe relevant information of the application program that the CPU usage of two default occupancies is corresponding, as: a testing result bagDraw together the relevant information of " micro-letter " and " antivirus software ". In addition, in a testing result, also can only compriseThe relevant information of an application program, as: about a testing result of " micro-letter ", about " killing virus softPart " testing result.
In addition, after testing result generates, can also generate information according to testing result, and showThis information, to inform that user closes corresponding application program, extends the pot life of mobile terminal. NoIn situation, information methods of exhibiting is different.
At mobile terminal, in screen lock state in the situation that, information methods of exhibiting can be with reference to figure 2, and Fig. 2 isThe schematic flow sheet of a kind of information methods of exhibiting that the embodiment of the present invention provides, is applied to mobile terminal,The method can comprise the steps:
S201: at described mobile terminal in screen lock state in the situation that, receive for described mobile terminalUnlocking screen instruction;
Here, can think and received for mobile terminal if user has pressed the power key of mobile terminalUnlocking screen instruction; In addition, can think and connect if user has inputted unlocking screen password or unlocking screen patternReceive the unlocking screen instruction for mobile terminal; Certainly can also adopt other definite the receiving of modeFor the unlocking screen instruction of mobile terminal, the present invention does not limit this.
S202: obtain and receive described unlocking screen instruction interior each detection generating of the first default duration beforeResult;
Wherein, in testing result, can comprise the mark of application program.
Certainly, in check result, can also comprise the time of testing result that obtains, the mark correspondence of application programThe information such as CPU usage, the current electric quantity of mobile terminal of application program, for example: " 7:00, micro-letter,CPU=8%, current electric quantity=70% ", the present invention does not limit this.
According to the hypothesis in step S104, the first default duration is 1 hour, and user has pressed the electricity of mobile terminalSource key thinks and received the unlocking screen instruction for mobile terminal, when user has pressed mobile end during at 8:00The power key of end, obtains the 8:00 all check results between 7:00-8:00 before.
S203: the number of times occurring in obtained all testing results that is identified at of adding up identical application program;
According to the hypothesis in step S202, in each testing result, comprise the mark of application program, add up identicalApplication program be identified at the number of times occurring in obtained all testing results, finally statistics obtains " micro-Letter " occurrence number is that 4 times, " antivirus software " occurrence number are 3 times.
S204: be greater than the application program of the mark correspondence of the first preset times according to statistics number, generate forThe information of described mobile terminal;
Suppose, the first preset times is 3 times, and according to the hypothesis in step S203, " micro-letter " occurrence number is 4Inferior, 4 > 3, therefore, according to the relevant information of " micro-letter ", generate the information for mobile terminal, as:" micro-letter power consumption is abnormal ".
In a kind of specific implementation, in testing result, can also comprise the current electric quantity of mobile terminal.
In this case, the above-mentioned application program that is greater than the mark correspondence of the first preset times according to statistics number,Generate the information for mobile terminal, comprising:
Be greater than according to statistics number in the testing result of application program of the mark correspondence of the first preset times and compriseCurrent electric quantity, determine the power consumption of mobile terminal;
According to power consumption and default power consumption, generate the information for described mobile terminal.
According to the hypothesis in step S202, in the time of 8:00, user has pressed the power key of mobile terminal, mobile terminalReceived unlocking screen instruction, in the testing result of acquisition, " micro-letter " occurrence number is greater than first default timeNumber, the time of its appearance and relevant information are:
The micro-letter of 7:00| CPU=8%| current electric quantity=70%;
The micro-letter of 7:20| CPU=8%| current electric quantity=60%;
The micro-letter of 7:40| CPU=8%| current electric quantity=55%;
The micro-letter of 7:50| CPU=8%| current electric quantity=50%.
According to " the micro-letter of 7:00| CPU=8%| current electric quantity=70% " " 7:50| in this testing resultMicro-letter CPU=8%| current electric quantity=50% " in current electric quantity, can obtain at 50 minutes energy mobile terminalsPower consumption be 20%, suppose that default power consumption is 10%, 20% > 10%, generate for mobile terminalInformation can be: " micro-letter power consumption is abnormal, and in 50 minutes, power consumption is 20% ", and to point out user to consumeElectric weight is too much; If the power consumption obtaining is not more than default power consumption, generate the prompting for mobile terminalInformation can be: " in 50 minutes, micro-letter power consumption is abnormal ", needn't point out user's power consumption.
S205: show condition in the case of meeting the default first information, show for described mobile terminalInformation.
In a kind of concrete implementation, above-mentionedly show condition in the case of meeting the default first information,Show the information for mobile terminal, can comprise:
According to after unlocking screen instruction success release, judge the current display interface of mobile terminal at mobile terminalWhether be the desktop of mobile terminal;
If yes, show the information for mobile terminal.
In practical application, the desktop that is only mobile terminal in the current display interface that judges mobile terminal, feelingsUnder condition, just show information, if judge the desktop of the non-moving terminal of current display interface of mobile terminal,Can in the time that user closes application program display interface and make mobile terminal show desktop, show again information,Can avoid interference like this use of user to mobile terminal.
Certainly, can show the information for mobile terminal press the power key of mobile terminal user after,In the time that using the screen display Application Program Interface of application program and mobile terminal, user also can show for movingThe information of moving terminal, so that its mobile terminal power consumption using of reminding user is excessive in time, avoidsProduce user's problem such as shutdown or program interrupt in the time using mobile terminal.
In addition, in practical application, can also in the time showing information, add auditory tone cues, so that user's energyEnough see in time information.
In addition, at mobile terminal in non-screen lock state in the situation that, information methods of exhibiting can be with reference to figure 3,The schematic flow sheet of the another kind of information methods of exhibiting that Fig. 3 provides for the embodiment of the present invention, is applied to movementTerminal, the method can comprise the steps:
S301: at described mobile terminal in non-screen lock state in the situation that, obtain before current time secondThe testing result for destination application generating in default duration;
Wherein, destination application is arbitrary second default occupancy that is greater than in the CPU usage obtainingApplication program corresponding to CPU usage.
Suppose, the second default duration is 1.5 hours, now obtains one-time detection result, in this testing result, comprises" micro-letter ", " micro-letter " is destination application, so, obtains all pins in 1.5 hours before this momentTo the testing result of " micro-letter ".
S302: whether the number of times of the testing result that judgement obtains is greater than the second preset times, if yes,Execution step S303, otherwise, end process;
Certainly, in other embodiments of the invention, if the number of the testing result obtaining is not more than secondPreset times, this testing process finishes, and the total occupancy of CPU that can carry out next time detects.
S303: generate the information for described destination application;
According to the hypothesis in step S301, the second preset times is 2 times, if for the testing result of " micro-letter "Number of times be 3 times, 3 > 2, generate the information for " micro-letter ", as " micro-letter power consumption is abnormal ";If the number of times for the testing result of " micro-letter " is 1 time, 1 < 2, do not generate the prompting for " micro-letter "Information.
S304: in the case of meeting the second default information display condition, show for described intended applicationThe information of program.
Particularly, can be desktop in the current display interface of mobile terminal, show information,Can avoid interference the use of user to mobile terminal. Certainly, also can be in the current demonstration of mobile terminalInterface is in the situation at interface of application program, shows information, can avoid like this mobile terminal power consumptionToo fast, but the problem such as user does not close the application program that power consumption is large, mobile terminal shutdown.
At mobile terminal in screen lock state in the situation that, while not receiving unlocking screen instruction, ordinary circumstanceUnder, user also can not see this information in time, therefore, is receiving user's unlocking screen instructionThe rear information that just generates, this information is for prompt information of mobile terminal in the first default duration.
Different from the situation of screen lock state, at mobile terminal in non-screen lock state in the situation that, Yong HuyiDirectly using mobile terminal, the information of displaying be with seeing per family, therefore, and the information generatingCan be real-time information, this information be greater than for the CPU usage of current time second pre-If the information of the application program of occupancy.
Apply above-mentioned each embodiment, mobile terminal obtains its central processing unit according to the default time intervalThe total occupancy of CPU, in the time that the total occupancy of CPU obtaining is greater than the first default occupancy, obtains this mobile terminalIn the CPU usage of each application program in running status, if there is the CPU usage of an application programIn be greater than the second default occupancy, generate the testing result of this application program. In this testing result, apply journeyThe CPU usage of order is detected and is obtained by mobile terminal, and the consumption of CPU usage and mobile terminal under normal circumstancesElectric weight relation in direct ratio, with the inversely proportional relation of pot life of mobile terminal, therefore, according to this detectionResult is closed corresponding application program, can solve the technical problem that mobile terminal power consumption is fast, pot life is short.
With reference to figure 4, the schematic flow sheet of the another kind of information detecting method that Fig. 4 provides for the embodiment of the present invention,Be applied to mobile terminal, the method can comprise the steps:
S105: cleaning is for the testing result of application program that meets default cleaning condition.
Particularly, above-mentioned cleaning, can for the testing result of application program that meets default cleaning conditionComprise:
Receive the out code for application program C; Close described application program C according to described out code,And cleaning is for the testing result of described application program C; Or
Clear up the testing result for application program generating before the 3rd default duration.
Suppose, user has closed application program " micro-letter " according to information or other information, clear up aboutAll testing results of " micro-letter ".
In addition, suppose, the 3rd default duration is 2 hours, can regularly clear up before 2 hours of current timeThe all testing results for application program.
In practical application, testing result of every storage, all can take the memory space of mobile terminal, thereforeAccording to default cleaning condition cleaning testing result, can avoid testing result to take too much memory space.
It should be noted that, after step S105 can occur in step S104, also can occur in stepAfter S101, S102 or S103, the present invention does not limit this.
Apply embodiment illustrated in fig. 4ly, mobile terminal obtains its central processor CPU according to the default time intervalTotal occupancy, in the time that the total occupancy of CPU obtaining is greater than the first default occupancy, obtains in this mobile terminalThe CPU usage of each application program in running status, if exist in the CPU usage of an application programBe greater than the second default occupancy, generate the testing result of this application program. Application program in this testing resultCPU usage detect and obtain by mobile terminal, and the power consumption of CPU usage and mobile terminal under normal circumstancesMeasure relation in direct ratio, with the inversely proportional relation of pot life of mobile terminal, therefore, according to this detection knotFruit is closed corresponding application program, can solve the technical problem that mobile terminal power consumption is fast, pot life is short.
The structural representation of a kind of information detector that Fig. 5 provides for the embodiment of the present invention, is applied to eventually mobileEnd, this device can comprise: the first occupancy obtains unit 501, occupancy judging unit 502, second accounts forWith rate acquisition unit 503 and testing result generation unit 504.
Wherein, the first occupancy obtains unit 501, for the time interval according to default, obtains mobile terminalThe total occupancy of central processor CPU.
Occupancy judging unit 502, for judging whether the total occupancy of CPU is greater than the first default occupancy, ifBe yes, trigger the second occupancy and obtain unit.
The second occupancy obtains unit 503, for obtaining mobile terminal each application journey in running statusThe CPU usage of order.
Testing result generation unit 504, for being greater than the second default taking according to obtained CPU usageThe application program corresponding to CPU usage of rate, generates the testing result for application program.
In addition, after testing result generates, can also exist according to testing result and generate information,And show this information, to inform that user closes corresponding application program, while extending mobile terminal availableBetween, with reference to figure 6, the structural representation of a kind of information exhibiting device that Fig. 6 provides for the embodiment of the present invention,Be applied to mobile terminal, this device can comprise: unlocking screen command reception unit 601, the first testing resultObtain unit 602, first number statistic unit 603, the first information generation unit 604 and the first prompting are believedBreath display unit 605.
Wherein, unlocking screen command reception unit 601, at mobile terminal in screen lock state in the situation that,Receive the unlocking screen instruction for mobile terminal.
The first testing result obtains unit 602, receives before unlocking screen instruction first when default for obtainingEach testing result generating in long. Here in testing result, comprise the mark of application program.
First number statistic unit 603, for adding up the obtained all inspections that are identified at of identical application programSurvey the number of times occurring in result.
The first information generation unit 604, right for be greater than the mark of the first preset times according to statistics numberThe application program of answering, generates the information for mobile terminal.
The first information display unit 605, for the situation meeting default first information displaying conditionUnder, show the information for mobile terminal.
In a kind of specific implementation, in testing result, can comprise the current electric quantity of mobile terminal.
In this case, the first information generation unit 604, can comprise: power consumption determine subelement andInformation generates subelement (not shown in Fig. 6).
Wherein, power consumption is determined subelement, right for be greater than the mark of the first preset times according to statistics numberThe current electric quantity comprising in the testing result of the application program of answering, determines the power consumption of mobile terminal.
Information generates subelement, for according to power consumption and default power consumption, generates for eventually mobileThe information of end.
In a kind of specific implementation, the first information display unit 605, can comprise: display interface is sentencedDisconnected subelement and information are shown subelement (not shown in Fig. 6).
Wherein, display interface judgment sub-unit, at mobile terminal according to unlocking screen instruction success releaseAfter, judge whether the current display interface of mobile terminal is the desktop of mobile terminal, if yes, trigger and carryShow information display subelement.
Information is shown subelement, for showing the information for mobile terminal.
In addition, the another kind of information exhibiting device that the embodiment of the present invention also provides, with reference to figure 7, Fig. 7 isThe structural representation of the another kind of information exhibiting device that the embodiment of the present invention provides, is applied to mobile terminal,This device can comprise: the second testing result obtains unit 701, second number judging unit 702, second carriedShow information generating unit 703 and the second information display unit 704.
Wherein, the second testing result obtains unit 701, for the situation in non-screen lock state at mobile terminalUnder, obtain the current time interior testing result for destination application generating of the second default duration before.Here, destination application is arbitrary CPU that is greater than the second default occupancy in the CPU usage obtainingThe application program that occupancy is corresponding.
Second number judging unit 702, second pre-for judging whether the number of times of obtained testing result is greater thanIf number of times, if yes, triggers the second information generation unit.
The second information generation unit 703, for generating the information for destination application.
The second information display unit 704, for the situation meeting the second default information display conditionUnder, show the information for destination application.
Apply above-mentioned each embodiment, mobile terminal obtains its central processing unit according to the default time intervalThe total occupancy of CPU, in the time that the total occupancy of CPU obtaining is greater than the first default occupancy, obtains this mobile terminalIn the CPU usage of each application program in running status, if there is the CPU usage of an application programIn be greater than the second default occupancy, generate the testing result of this application program. In this testing result, apply journeyThe CPU usage of order is detected and is obtained by mobile terminal, and the consumption of CPU usage and mobile terminal under normal circumstancesElectric weight relation in direct ratio, with the inversely proportional relation of pot life of mobile terminal, therefore, according to this detectionResult is closed corresponding application program, can solve the technical problem that mobile terminal power consumption is fast, pot life is short.
With reference to figure 8, the structural representation of the another kind of information detector that Fig. 8 provides for the embodiment of the present invention,Be applied to mobile terminal, this device can comprise: testing result cleaning unit 505.
Wherein, testing result cleaning unit 505, for clearing up for the application journey that meets default cleaning conditionThe testing result of order.
Particularly, testing result cleaning unit 505,
Specifically for: receive the out code for application program C; Close application program C according to out code,And cleaning is for the testing result of application program C; Or
Specifically for: the testing result for application program generating before the default duration of cleaning the 3rd.
Apply embodiment illustrated in fig. 8ly, mobile terminal obtains its central processor CPU according to the default time intervalTotal occupancy, in the time that the total occupancy of CPU obtaining is greater than the first default occupancy, obtains in this mobile terminalThe CPU usage of each application program in running status, if exist in the CPU usage of an application programBe greater than the second default occupancy, generate the testing result of this application program. Application program in this testing resultCPU usage detect and obtain by mobile terminal, and the power consumption of CPU usage and mobile terminal under normal circumstancesMeasure relation in direct ratio, with the inversely proportional relation of pot life of mobile terminal, therefore, according to this detection knotFruit is closed corresponding application program, can solve the technical problem that mobile terminal power consumption is fast, pot life is short.
For device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is simplerSingle, relevant part is referring to the part explanation of embodiment of the method.
It should be noted that, in this article, the relational terms such as the first and second grades be only used for byEntity or operation and another entity or operating space separate, and not necessarily require or imply theseBetween entity or operation, there is relation or the order of any this reality. And term " comprises ", " comprising "Or its any other variant is intended to contain comprising of nonexcludability, thereby make to comprise the mistake of a series of key elementsJourney, method, article or equipment not only comprise those key elements, but also comprise other that clearly do not listKey element, or be also included as the intrinsic key element of this process, method, article or equipment. Do not havingIn the situation of more restrictions, the key element being limited by statement " comprising ... ", and be not precluded within and comprise described wantingIn process, method, article or the equipment of element, also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method embodimentBe can carry out the hardware that instruction is relevant by program to complete, described program can be stored in computer-readableGet in storage medium, the alleged storage medium obtaining here, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included inIn protection scope of the present invention.

Claims (10)

1. an information detecting method, is applied to mobile terminal, it is characterized in that, described method comprises step:
According to the default time interval, obtain the total occupancy of central processor CPU of described mobile terminal;
Judge whether the total occupancy of described CPU is greater than the first default occupancy;
If yes, the CPU that obtains each application program in running status in described mobile terminal takiesRate;
According to application corresponding to CPU usage that is greater than the second default occupancy in obtained CPU usageProgram, generates the testing result for application program.
2. method according to claim 1, is characterized in that, described method also comprises:
In screen lock state in the situation that, receive the screen solution for described mobile terminal at described mobile terminalLock instruction;
Acquisition receives described unlocking screen instruction interior each testing result generating of the first default duration before,Wherein, the mark that comprises application program in described testing result;
Add up the number of times occurring in obtained all testing results that is identified at of identical application program;
Be greater than the application program of the mark correspondence of the first preset times according to statistics number, generate and move for describedThe information of moving terminal;
Show condition in the case of meeting the default first information, show the prompting for described mobile terminalInformation.
3. method according to claim 2, is characterized in that, described in comprising, moves in described testing resultThe current electric quantity of moving terminal;
The described application program that is greater than the mark correspondence of the first preset times according to statistics number, generates for instituteThe information of stating mobile terminal, comprising:
Be greater than according to statistics number in the testing result of application program of the mark correspondence of the first preset times and compriseCurrent electric quantity, determine the power consumption of described mobile terminal;
According to described power consumption and default power consumption, generate the information for described mobile terminal.
4. method according to claim 2, is characterized in that, is describedly meeting the default first informationIn the situation of displaying condition, show the information for described mobile terminal, comprising:
According to after described unlocking screen instruction success release, judge described mobile terminal at described mobile terminalWhether current display interface is the desktop of described mobile terminal;
If yes, show the information for described mobile terminal.
5. method according to claim 1, is characterized in that, described method also comprises:
At described mobile terminal in non-screen lock state in the situation that, obtain before current time second when defaultThe testing result for destination application generating in long, wherein, described destination application by: obtainedArbitrary application program corresponding to CPU usage that is greater than the second default occupancy in the CPU usage obtaining;
Whether the number of times of the testing result that judgement obtains is greater than the second preset times;
If yes, generate the information for described destination application;
In the case of meeting the second default information display condition, show for described destination applicationInformation.
6. method according to claim 1, is characterized in that, described method also comprises:
Cleaning is for the testing result of application program that meets default cleaning condition.
7. method according to claim 6, is characterized in that, described cleaning is for meeting preset clearThe testing result of the application program of reason condition, comprising:
Receive the out code for application program C; Close described application program C according to described out code,And cleaning is for the testing result of described application program C; Or
Clear up the testing result for application program generating before the 3rd default duration.
8. an information detector, is applied to mobile terminal, it is characterized in that, described device comprises: theOne occupancy obtains unit, occupancy judging unit, the second occupancy obtains unit and testing result generates singleUnit;
Wherein, described the first occupancy obtains unit, for the time interval according to default, moves described in acquisitionThe total occupancy of central processor CPU of moving terminal;
Described occupancy judging unit, for judging whether the total occupancy of described CPU is greater than the first default takingRate, if yes, triggers described the second occupancy and obtains unit;
Described the second occupancy obtains unit, for obtaining described mobile terminal in each of running statusThe CPU usage of application program;
Described testing result generation unit, for being greater than the second default accounting for according to obtained CPU usageBy application program corresponding to the CPU usage of rate, generate the testing result for application program.
9. device according to claim 8, is characterized in that, described device also comprises: unlocking screenCommand reception unit, the first testing result obtain unit, first number statistic unit, the first information are given birth toBecome unit and the first information display unit;
Wherein, described unlocking screen command reception unit, at described mobile terminal in screen lock stateIn situation, receive the unlocking screen instruction for described mobile terminal;
Described the first testing result obtains unit, receives before described unlocking screen instruction first for obtainingEach testing result generating in default duration, wherein, comprises the mark of application program in described testing result;
Described first number statistic unit, for adding up obtained all of being identified at of identical application programThe number of times occurring in testing result;
Described the first information generation unit, for being greater than the mark of the first preset times according to statistics numberCorresponding application program, generates the information for described mobile terminal;
Described the first information display unit, for the situation meeting default first information displaying conditionUnder, show the information for described mobile terminal.
10. device according to claim 9, is characterized in that, described in comprising, moves in described testing resultThe current electric quantity of moving terminal;
Described the first information generation unit, comprising: power consumption determines that subelement and information generate sonUnit;
Wherein, described power consumption is determined subelement, for be greater than the mark of the first preset times according to statistics numberKnow the current electric quantity comprising in the testing result of corresponding application program, determine the power consumption of described mobile terminal;
Described information generates subelement, for according to described power consumption and default power consumption, generates pinTo the information of described mobile terminal.
CN201510967861.1A 2015-12-21 2015-12-21 Information detection method and device Pending CN105589546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510967861.1A CN105589546A (en) 2015-12-21 2015-12-21 Information detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510967861.1A CN105589546A (en) 2015-12-21 2015-12-21 Information detection method and device

Publications (1)

Publication Number Publication Date
CN105589546A true CN105589546A (en) 2016-05-18

Family

ID=55929192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510967861.1A Pending CN105589546A (en) 2015-12-21 2015-12-21 Information detection method and device

Country Status (1)

Country Link
CN (1) CN105589546A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291540A (en) * 2017-06-23 2017-10-24 深圳市万普拉斯科技有限公司 Processing method, device and the mobile terminal of background application
WO2019024804A1 (en) * 2017-08-01 2019-02-07 Oppo广东移动通信有限公司 Cpu monitoring method, computer readable storage medium, and mobile terminal
CN110286961A (en) * 2019-06-27 2019-09-27 深圳市网心科技有限公司 Process based on physical host processor hangs up method and relevant device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141942A (en) * 2011-04-01 2011-08-03 奇智软件(北京)有限公司 Method and device for monitoring and protecting equipment
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
US20140025971A1 (en) * 2012-07-19 2014-01-23 Tencent Technology (Shenzhen) Company Limited Method and device for controlling terminal and terminal thereof
CN104239196A (en) * 2014-09-17 2014-12-24 北京金山安全软件有限公司 Method and device for detecting abnormal operation of application program and mobile terminal
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102141942A (en) * 2011-04-01 2011-08-03 奇智软件(北京)有限公司 Method and device for monitoring and protecting equipment
US20140025971A1 (en) * 2012-07-19 2014-01-23 Tencent Technology (Shenzhen) Company Limited Method and device for controlling terminal and terminal thereof
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN104298584A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Method and device for acquiring application program with abnormal power consumption and mobile terminal
CN104239196A (en) * 2014-09-17 2014-12-24 北京金山安全软件有限公司 Method and device for detecting abnormal operation of application program and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291540A (en) * 2017-06-23 2017-10-24 深圳市万普拉斯科技有限公司 Processing method, device and the mobile terminal of background application
WO2019024804A1 (en) * 2017-08-01 2019-02-07 Oppo广东移动通信有限公司 Cpu monitoring method, computer readable storage medium, and mobile terminal
CN110286961A (en) * 2019-06-27 2019-09-27 深圳市网心科技有限公司 Process based on physical host processor hangs up method and relevant device

Similar Documents

Publication Publication Date Title
US11216549B2 (en) Security verification method and device
KR20170006813A (en) Method and Apparatus for Supporting Secure Chat
CN104901805B (en) A kind of identification authentication methods, devices and systems
US20150288640A1 (en) Method and device for providing notification
CN106445783A (en) Method and device for detecting jamming of electronic equipment and electronic equipment
CN103064607A (en) Method and system for unlocking device with touch screen
CN104993961A (en) Equipment control methods, devices and system
CN105589546A (en) Information detection method and device
CN103888608A (en) Information processing method and electronic device
CN107666470A (en) A kind of processing method and processing device of checking information
CN110109805A (en) A kind of message informing method and device
CN107508746B (en) Good friend&#39;s adding method, device and electronic equipment
CN103873322A (en) Information processing method and communication terminal
CN105893019A (en) User manual calling-out method and apparatus for smartphone
CN104796877B (en) The method and apparatus that a kind of anti-malice is deducted fees
CN103312508A (en) Working method of dynamic token
CN104506940B (en) A kind of information processing method and television set
WO2017051312A1 (en) A method of enabling a lock button of a mobile device with an ios operating system to be used by a user to effect an action
CN109617009A (en) Method for controlling power supply, device and the storage medium of display screen
CN107257413A (en) Call processing method, electronic equipment and the device with store function
CN113810249B (en) Callback detection method and device, computer equipment and storage medium
CN103916434A (en) Application installation method, device and system
CN103383719A (en) Method and equipment for uninstalling program
CN115600261A (en) Data security protection method, device, equipment and medium
CN106793173B (en) The method and mobile terminal of information processing

Legal Events

Date Code Title Description
C06 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: 20160518