CN105335099A - Memory cleaning method and terminal - Google Patents
Memory cleaning method and terminal Download PDFInfo
- Publication number
- CN105335099A CN105335099A CN201510622324.3A CN201510622324A CN105335099A CN 105335099 A CN105335099 A CN 105335099A CN 201510622324 A CN201510622324 A CN 201510622324A CN 105335099 A CN105335099 A CN 105335099A
- Authority
- CN
- China
- Prior art keywords
- application
- terminal
- average
- memory value
- memory
- 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
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
Embodiments of the invention provide a memory cleaning method and a terminal. The method comprises: when an input target application startup instruction is received, obtaining a first memory value pre-recorded by the terminal and occupied when a target application is averagely used each time, judging whether the first memory value is greater than or equal to a current available memory value of the terminal, and if so, obtaining feature information, pre-recorded by the terminal, of each application in a background operation state currently, wherein the feature information comprises an operation frequency, a duration of each average use and a memory value occupied in each average use; according to the first memory value, the current available memory value and the feature information of each application, determining an application required to be subjected to memory cleaning in the applications; and performing a memory cleaning operation on the application required to be subjected to memory cleaning. Through the embodiments of the invention, the memory cleaning operation can be finished in the application startup process, so that the smooth operation of the application is effectively ensured.
Description
Technical field
The present invention relates to memory management technology field, be specifically related to a kind of internal memory method for cleaning and terminal.
Background technology
At present, user generally can be provided with more application software on the mobile terminals such as the smart mobile phone of oneself, panel computer, to meet the needs of work and life, class application software of such as handling official business, social class application software, amusement class application software and financing class application software etc.In the use procedure of mobile terminal, if user opens multiple application software simultaneously, when particularly opening the more application software of committed memory, due to the memory resource limitation of mobile terminal, memory usage is now very large, the operation of application software can be caused to occur comparatively significantly Caton phenomenon, and mobile terminal also can be slack-off for the reaction of user operation.
In prior art, general only when the memory usage of mobile terminal is larger, just trigger action system can discharge a part of memory source, such as some application software that current background runs is transferred to swap subregion (i.e. exchange partition), to ensure the fluency of the application software of current operation.But this internal memory manner of cleaning up still can make user in a period of time enteroception that application software has just been opened to comparatively obvious Caton phenomenon, and namely internal memory cleaning exists hysteresis quality.Therefore, a kind of internal memory manner of cleaning up that can effectively keep application software smoothness to run how is provided to become problem demanding prompt solution.
Summary of the invention
Embodiments provide a kind of internal memory method for cleaning and terminal, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run.
Embodiment of the present invention first aspect provides a kind of internal memory method for cleaning, comprising:
When receiving the intended application enabled instruction of input, obtaining the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn, and judging whether described first memory value is more than or equal to the current available memory value of described terminal;
If described first memory value is more than or equal to the current available memory value of described terminal, then obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, described characteristic information comprises access times, average each duration of using and average each memory value taken when using;
According to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determine the application needing to carry out internal memory cleaning in each application described;
The application described need being carried out to internal memory cleaning performs internal memory cleaning operation.
Embodiment of the present invention second aspect provides a kind of terminal, comprising:
Receiving element, for receiving the intended application enabled instruction of input;
Acquiring unit, for when described receiving element receives described intended application enabled instruction, obtains the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn;
Judging unit, for judging whether described first memory value is more than or equal to the current available memory value of described terminal;
Described acquiring unit, time also for judging that at described judging unit described first memory value is more than or equal to described terminal current available memory value, obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, described characteristic information comprises access times, average each duration of using and average each memory value taken when using;
Processing unit, for according to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determines the application needing to carry out internal memory cleaning in each application described;
Performance element, performs internal memory cleaning operation for the application described need being carried out to internal memory cleaning.
Can when the intended application enabled instruction receiving input by the embodiment of the present invention, obtain the first memory value taken when this pre-recorded intended application of terminal on average uses at every turn, and judge whether this first memory value is more than or equal to the current available memory value of this terminal, if, then obtain the current characteristic information being in each application of background operation state that this terminal is pre-recorded, and then according to this first memory value, this current available memory value and this each application characteristic information, determine to need to carry out the application of internal memory cleaning in this each application, and internal memory cleaning operation is performed to the application that this need carry out internal memory cleaning, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the first embodiment schematic flow sheet of a kind of internal memory method for cleaning that the embodiment of the present invention provides;
Fig. 2 is the second embodiment schematic flow sheet of a kind of internal memory method for cleaning that the embodiment of the present invention provides;
Fig. 3 is the 3rd embodiment schematic flow sheet of a kind of internal memory method for cleaning that the embodiment of the present invention provides;
Fig. 4 is the first example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides;
Fig. 5 is the second example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides;
Fig. 6 is the 3rd example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides;
Fig. 7 is the 4th example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Terminal in the embodiment of the present invention can comprise smart mobile phone (as Android phone, iOS mobile phone, WindowsPhone mobile phone etc.), panel computer, palm PC, notebook computer, mobile internet device (MID, or Wearable etc. MobileInternetDevices), above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
Referring to Fig. 1, is the first embodiment schematic flow sheet of a kind of internal memory method for cleaning that the embodiment of the present invention provides.Internal memory method for cleaning described in the present embodiment, comprises the following steps:
S101, when receiving the intended application enabled instruction of input, terminal obtains the first memory value of taking when the pre-recorded described intended application of described terminal on average uses at every turn.
Wherein, this terminal can install types of applications, as social class application (comprising QQ, micro-letter etc.), amusement class application (comprising driving, the Great War of whole people's aircraft etc. everyday), office class application (comprising Baidu's cloud, WPSOffice etc.), video class application (comprising excellent cruel, Tengxun's video etc.), shopping class application (comprising Taobao, Jingdone district etc.) and payment financing class application (comprise Alipay wallet, dig wealth book keeping operation etc.), etc.
In the embodiment that some are feasible, in the use procedure of each application of terminal installation, terminal can record the operational factor of each application, this operational factor can comprise the memory value of the terminal that each run takies, and then each application can be obtained from being installed to now, or the characteristic informations such as the memory value taken when the duration of the access times in a period of time, on average each use and average each use, these characteristic informations can apply the form storage using record sheet.
It should be noted that, tag memory in the present embodiment refers to the running memory of terminal, i.e. random access memory ram (English full name: RandomAccessMemory), some application datas when application runs and data cached etc. understand the certain memory value (memory headroom) of occupied terminal.
In specific implementation, user is by clicking the mode of the application icon of intended application or speech control mode or gesture control mode on the touchscreen, input the enabled instruction for this intended application, after terminal detects this enabled instruction, start this intended application and shown the application interface of this intended application by display screen, meanwhile, terminal obtains the first memory value of the terminal taken when this pre-recorded intended application on average uses at every turn.
It is to be noted, this display screen accessible site is in this touch-screen, thus this touch-screen can integrate touch-control and Presentation Function, namely in embodiments of the present invention, namely the touch-screen of terminal can be used as contact panel and is supplied to the operations such as user carries out touching, click, also can be used as display screen, represent corresponding data message to terminal user.
Whether the first memory value described in S102, described terminal judges is more than or equal to the current available memory value of described terminal, if so, then performs step S103, if not, then terminates this flow process.
Concrete, first terminal can obtain current available memory value, the i.e. current memory value not being employed process and taking, and then this first memory value and this current available memory value are compared, to determine that can this intended application normally be run after starting, if this first memory value is less than this current available memory value, show that this intended application can normally be run; If this first memory value is more than or equal to this current available memory value, shows that current available memory value is not enough to support the normal operation of this intended application, now can perform step S103.
In the embodiment that some are feasible, terminal specifically can judge that this current available memory value deducts the difference that this first memory value obtains and whether is more than or equal to default memory threshold (as 50M), to determine that can this intended application be smoothly run after starting, if this difference is more than or equal to this memory threshold preset, show that this intended application can smoothly be run after starting; If this difference is less than this memory threshold preset, shows that current available memory value is not enough to support that the smoothness of this intended application is run, now can perform step S103.
For example, mobile phone with terminal, this intended application is game application A is example, the memory threshold preset is 50M, the first memory value that the game application A of mobile phone record takies when on average using at every turn is 200M, suppose that the current available memory value of mobile phone is 230M, now the current available memory value 230M of mobile phone deducts the difference of the first memory value 200M taken when game application A on average uses at every turn is 30M, because 30M is less than default memory threshold 50M, now can not ensure that this game application A can smoothly run in whole use procedure, therefore mobile phone need discharge a part of memory source, step S103 can be performed.
S103, described terminal obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, and described characteristic information comprises access times, average each duration of using and average each memory value taken when using.
In specific implementation, terminal determines current each application being in background operation state, so from the application that generates in advance use record sheet the access times obtaining this each application, average each duration of using and average each use time the characteristic information such as the memory value that takies.
S104, described terminal, according to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determine the application needing to carry out internal memory cleaning in each application described.
In specific implementation, the first memory value that terminal takies when can first on average use according to this intended application at every turn and current available memory value, determine the memory value needing to be obtained by the application of cleaning running background, determine that in this each application, user seldom uses according to access times and the average each duration used again, use the application that duration is shorter, and then user seldom uses in applying this each, the application using duration shorter is as the application that can clear up, and obtain the memory value taken when each application on average uses at every turn in these applications that can clear up, and then obtain the number of applications needing cleaning in these applications that can clear up.
In the embodiment that some are feasible, application in the application that terminal can be able to be cleared up according to these enters the time order from morning to night of running background, obtain the number of applications needing cleaning, the application namely entering this number of applications of running background at first can be cleaned.
In the embodiment that some are feasible, the current memory value taken on backstage of application order from big to small in the application that terminal can be able to be cleared up according to these, obtain the number of applications needing cleaning, namely, after the current memory value taken on backstage arranges from big to small, the application coming this number of applications above can be cleaned.
It should be noted that, user is set to the application (do not allow when namely these are applied in running background cleaned fall) of backstage guard mode, terminal can be cleared up.
S105, described terminal perform internal memory cleaning operation to the application that described need carry out internal memory cleaning.
Concrete, terminal directly can remove the application need carrying out internal memory cleaning or the application this need being carried out internal memory cleaning are transferred to terminal swap subregion from the internal memory of terminal from internal memory, perform internal memory cleaning operation with the application realizing need carrying out this internal memory cleaning, thus provide enough memory sources for the operation of this intended application.
Can when the intended application enabled instruction receiving input by the embodiment of the present invention, obtain the first memory value taken when this pre-recorded intended application of terminal on average uses at every turn, and judge whether this first memory value is more than or equal to the current available memory value of this terminal, if, then obtain the current characteristic information being in each application of background operation state that this terminal is pre-recorded, and then according to this first memory value, this current available memory value and this each application characteristic information, determine to need to carry out the application of internal memory cleaning in this each application, and internal memory cleaning operation is performed to the application that this need carry out internal memory cleaning, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run.
Referring to Fig. 2, is the second embodiment schematic flow sheet of a kind of internal memory method for cleaning that the embodiment of the present invention provides.Internal memory method for cleaning described in the present embodiment, comprises the following steps:
In terminal described in S201, terminal record, each application is from the memory value taken when being installed to current access times, the duration used and using at every turn at every turn.
Wherein, each duration used can be application each time from being opened to the duration exiting experience completely, also can be application from being opened to the duration entering running background experience.
S202, described terminal are according to the duration of described access times and described each use, determine the average each duration used of each application described, and according to the memory value taken when described access times and described each use, the memory value taken when each applies average each use described in determining.
Concrete, terminal can according to each application of record from being installed to now, or the access times in a period of time and each duration used, calculate the average each duration used of each application, simultaneously, also can according to each application of record from being installed to now, or access times in a period of time and each memory value taken when using, calculate the average each memory value taken when using of each application.
The memory value taken when the duration of described access times, described on average each use and described average each use is set to each characteristic information applied described by S203, described terminal.
S204, when receiving the intended application enabled instruction of input, described terminal obtains the first memory value of taking when the pre-recorded described intended application of described terminal on average uses at every turn.
In specific implementation, user is by clicking the mode of the application icon of intended application or speech control mode or gesture control mode on the touchscreen, input the enabled instruction for this intended application, after terminal detects this enabled instruction, start this intended application and shown the application interface of this intended application by display screen, meanwhile, terminal obtains the first memory value of the terminal taken when this pre-recorded intended application on average uses at every turn.
Whether the first memory value described in S205, described terminal judges is more than or equal to the current available memory value of described terminal, if so, then performs step S206, if not, then terminates this flow process.
Concrete, first terminal can obtain current available memory value, the i.e. current memory value not being employed process and taking, and then this first memory value and this current available memory value are compared, to determine that can this intended application normally be run after starting, if this first memory value is less than this current available memory value, show that this intended application can normally be run; If this first memory value is more than or equal to this current available memory value, shows that current available memory value is not enough to support the normal operation of this intended application, now can perform step S206.
In the embodiment that some are feasible, terminal specifically can judge that this current available memory value deducts the difference that this first memory value obtains and whether is more than or equal to default memory threshold (as 50M), to determine that can this intended application be smoothly run after starting, if this difference is more than or equal to this memory threshold preset, show that this intended application can smoothly be run after starting; If this difference is less than this memory threshold preset, shows that current available memory value is not enough to support that the smoothness of this intended application is run, now can perform step S206.
S206, described terminal obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, and described characteristic information comprises access times, average each duration of using and average each memory value taken when using.
S207, described terminal determine that in each application described, access times or average each duration used are less than or equal to the application of predetermined threshold value, and the memory value taken according to described first memory value, the current available memory value of described terminal and when on average using at every turn, determine that the duration of described access times or average each use is less than or equal to the destination number needing the application carrying out internal memory cleaning in the application of predetermined threshold value.
In specific implementation, according to access times and average each duration used, terminal can judge whether an application is the application that user often uses, and then in applying this each, access times are less than or equal to predetermined threshold value (as 5 times), or the average each duration used is less than or equal to predetermined threshold value (as 3 minutes), or access times are less than or equal to predetermined threshold value (as 5 times) and the application that average each duration used also is less than or equal to predetermined threshold value (as 3 minutes) is defined as the application that can clear up.
Further, the memory value that terminal takies according to the first memory value, the current available memory value of this terminal and when on average using at every turn, determines the destination number needing the application carrying out internal memory cleaning in this application that can clear up.
S208, described terminal are according to the selection rule preset, be less than or equal to from described access times or average each duration used the application determining described destination number the application of predetermined threshold value, and the application of described destination number is set to the application that described need carry out internal memory cleaning.
In the embodiment that some are feasible, terminal can record access times or average each being less than or equal in the application of predetermined threshold value of each duration used applies the time point entering background operation state, and then according to entering the time point order from morning to night of background operation state, the application determining this destination number the application of predetermined threshold value is less than or equal to from these access times or average each duration used, and the application of this destination number is set to the application need carrying out internal memory cleaning, namely when needs carry out internal memory cleaning, these access times or the average each duration used be less than or equal in the application of predetermined threshold value enter running background application more early more first cleaned fall.
In the embodiment that some are feasible, terminal can obtain access times or average each being less than or equal in the application of predetermined threshold value of each duration used applies the current memory value taken, and then according to current committed memory value order from big to small, the application determining this destination number the application of predetermined threshold value is less than or equal to from these access times or average each duration used, and the application of this destination number is set to the application need carrying out internal memory cleaning, namely when needs carry out internal memory cleaning, these access times or the average each duration used be less than or equal to application that in the application of predetermined threshold value, the current memory value taken is larger more first cleaned fall.
In the embodiment that some are feasible, terminal also can be less than or equal to from these access times or average each duration used the application determining this destination number the application of predetermined threshold value at random, and the application of this destination number is set to the application need carrying out internal memory cleaning.
S209, described terminal perform internal memory cleaning operation to the application that described need carry out internal memory cleaning.
For example, suppose terminal to be provided with 5 application, be respectively application A, B, C, D and E, terminal record from be installed to now (or in nearest 2 months) these 5 application characteristic information (comprise access times, average each duration of using and average each use time the memory value that takies) as shown in table 1:
Table 1
Wherein, application E off-duty, and apply A, B, C and D is in background operation state, the current available memory value of terminal is 60M, when the enabled instruction for application E that user inputs being detected, first terminal obtains the memory value 100M taken when application E on average uses at every turn, because the memory value 100M taken when application E on average uses is greater than current available memory value 60M at every turn, now need to carry out internal memory cleaning, first terminal obtains application A, B, C and D access times separately, the characteristic informations such as the memory value taken when the average duration at every turn used and average each use, and pass through application A, B, the application of the less use of user is determined in the access times of C and D and/or the comparison of average each duration used, namely A is applied, B and D, the memory value 100M taken when now on average at every turn using according to application E and current available memory value 60M draws the normal operation at least needing the internal memory guarantee application E discharging 40M, again according to application A, the memory value taken when B and D average each uses can be determined and this two methods of application A and B is cleaned out the normal operation that can meet application E from tag memory, free memory value now equals to apply the memory value 100M taken when E on average uses at every turn.
Further, for ensureing the operation that application E is more smooth, terminal is greater than certain default memory threshold (as 20M) by clearing up the memory value 100M taken when some background application make free memory value on average use with application E more at every turn, thus application D cleans out to make free memory value for 125M by terminal again, the memory value 100M taken when on average at every turn using than application E has more 25M, thus can ensure to apply the more smooth operation of E.
The average each duration used of this each application can be determined according to each application in the terminal of record from the duration being installed to current access times and each use by the embodiment of the present invention, and the memory value taken when at every turn using according to these access times and this determines the average each memory value taken when using of this each application, so by these access times, this average each duration of using and this average each use time the memory value that takies be set to characteristic information of this each application, when the intended application enabled instruction receiving input, obtain the first memory value taken when this pre-recorded intended application on average uses at every turn, and judge whether this first memory value is more than or equal to the current available memory value of terminal, if, then obtain the current characteristic information being in the first application of background operation state in this pre-recorded terminal, this characteristic information comprises access times, the memory value taken when the average duration at every turn used and average each use, determine that in this each application, access times or the average each duration used are less than or equal to the application of predetermined threshold value, and according to this first memory value, the memory value taken when the current available memory value of this terminal and average each use, determine that these access times or average each duration used are less than or equal to the destination number needing the application carrying out internal memory cleaning in the application of predetermined threshold value, the application of this destination number is determined according to the selection rule preset, and the application of this destination number is set to the application need carrying out internal memory cleaning, and then internal memory cleaning operation is performed to the application that this need carry out internal memory cleaning, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run.
Referring to Fig. 3, is the 3rd embodiment schematic flow sheet of a kind of internal memory method for cleaning that the embodiment of the present invention provides.Internal memory method for cleaning described in the present embodiment, comprises the following steps:
S301, when receiving the intended application enabled instruction of input, terminal obtains the first memory value of taking when the pre-recorded described intended application of described terminal on average uses at every turn.
In specific implementation, user is by clicking the mode of the application icon of intended application or speech control mode or gesture control mode on the touchscreen, input the enabled instruction for this intended application, after terminal detects this enabled instruction, start this intended application and shown the application interface of this intended application by display screen, meanwhile, terminal obtains the first memory value of the terminal taken when this pre-recorded intended application on average uses at every turn.
Whether the first memory value described in S302, described terminal judges is more than or equal to the current available memory value of described terminal, if so, then performs step S303, if not, then terminates this flow process.
Concrete, first terminal can obtain current available memory value, the i.e. current memory value not being employed process and taking, and then this first memory value and this current available memory value are compared, to determine that can this intended application normally be run after starting, if this first memory value is less than this current available memory value, show that this intended application can normally be run; If this first memory value is more than or equal to this current available memory value, shows that current available memory value is not enough to support the normal operation of this intended application, now can perform step S303.
In the embodiment that some are feasible, terminal specifically can judge that this current available memory value deducts the difference that this first memory value obtains and whether is more than or equal to default memory threshold (as 50M), to determine that can this intended application be smoothly run after starting, if this difference is more than or equal to this memory threshold preset, show that this intended application can smoothly be run after starting; If this difference is less than this memory threshold preset, shows that current available memory value is not enough to support that the smoothness of this intended application is run, now can perform step S303.
S303, described terminal obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, and described characteristic information comprises access times, average each duration of using and average each memory value taken when using.
S304, described terminal, according to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determine the application needing to carry out internal memory cleaning in each application described.
In specific implementation, the first memory value that terminal takies when can first on average use according to this intended application at every turn and current available memory value, determine the memory value needing to be obtained by the application of cleaning running background, determine that in this each application, user seldom uses according to access times and the average each duration used again, use the application that duration is shorter, and then user seldom uses in applying this each, the application using duration shorter is as the application that can clear up, and obtain the memory value taken when each application on average uses at every turn in these applications that can clear up, and then obtain the number of applications needing cleaning in these applications that can clear up.
In the embodiment that some are feasible, application in the application that terminal can be able to be cleared up according to these enters the time order from morning to night of running background, obtain the number of applications needing cleaning, the application namely entering this number of applications of running background at first can be cleaned.
In the embodiment that some are feasible, the current memory value taken on backstage of application order from big to small in the application that terminal can be able to be cleared up according to these, obtain the number of applications needing cleaning, namely, after the current memory value taken on backstage arranges from big to small, the application coming this number of applications above can be cleaned.
The process that described need are carried out the application of internal memory cleaning by S305, described terminal is transferred to the swap subregion of described terminal from the internal memory of described terminal, or the process of described need being carried out the application of internal memory cleaning is removed from the internal memory of described terminal.
Wherein, in the embodiment of the present invention, swap subregion can resource be virtual obtains by the read only memory ROM of terminal (English full name: ReadOnlyMemory), and this ROM resource specifically can comprise the internal storage space of terminal and the external storage space (as SD card etc.) of terminal.
Concrete, after terminal is determined and need be carried out the application of internal memory cleaning, this associated process that need carry out the application of internal memory cleaning directly can be removed from tag memory, or the associated process that this need be carried out the application of internal memory cleaning is transferred to the swap subregion of this terminal from the internal memory of this terminal, to increase current available memory source, thus meet the demand of this intended application smoothness operation.
S306, when described terminal detects that the current available memory value of described terminal is more than or equal to default memory value, the process that described need are carried out the application of internal memory cleaning by described terminal is transferred to the internal memory of described terminal from the swap subregion of described terminal.
In specific implementation, terminal detect due to this intended application exit or other application exit and make current free memory value be more than or equal to default memory value time, can judge whether that the application process of application is present in the swap subregion of this terminal, if had, that these can be applied all or part of being transferred in the internal memory of this terminal again, and to ensure to be convenient under the prerequisite not affecting terminal operating fluency, user is follow-up opens these application fast.
Can when the intended application enabled instruction receiving input by the embodiment of the present invention, obtain the first memory value taken when this pre-recorded intended application on average uses at every turn, and judge whether this first memory value is more than or equal to the current available memory value of terminal, if, then obtain the current characteristic information being in each application of background operation state in this pre-recorded terminal, and then according to this first memory value, this current available memory value and this each application characteristic information, determine to need to carry out the application of internal memory cleaning in this each application, and then the process this need being carried out the application of internal memory cleaning is transferred to the swap subregion of this terminal from the internal memory of this terminal, or, the process that this need carry out the application of internal memory cleaning is removed from the internal memory of this terminal, and when detecting that the current available memory value of this terminal is more than or equal to default memory value, the process this need being carried out the application of internal memory cleaning is transferred to the internal memory of this terminal from the swap subregion of this terminal, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run, simultaneously, the application that user opens running background is rapidly convenient under can be implemented in the prerequisite not affecting terminal operating fluency.
Referring to Fig. 4, is the first example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising: receiving element 401, acquiring unit 402, judging unit 403, processing unit 404 and performance element 405, wherein:
Receiving element 401, for receiving the intended application enabled instruction of input;
Acquiring unit 402, for when described receiving element receives described intended application enabled instruction, obtains the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn;
Wherein, this terminal can install types of applications, as social class application (comprising QQ, micro-letter etc.), amusement class application (comprising driving, the Great War of whole people's aircraft etc. everyday), office class application (comprising Baidu's cloud, WPSOffice etc.), video class application (comprising excellent cruel, Tengxun's video etc.), shopping class application (comprising Taobao, Jingdone district etc.) and payment financing class application (comprise Alipay wallet, dig wealth book keeping operation etc.), etc.
In the embodiment that some are feasible, in the use procedure of each application of terminal installation, terminal can record the operational factor of each application, this operational factor can comprise the memory value of the terminal that each run takies, and then each application can be obtained from being installed to now, or the characteristic informations such as the memory value taken when the duration of the access times in a period of time, on average each use and average each use, these characteristic informations can apply the form storage using record sheet.
It should be noted that, tag memory in the present embodiment refers to the running memory of terminal, i.e. random access memory ram (English full name: RandomAccessMemory), some application datas when application runs and data cached etc. understand the certain memory value (memory headroom) of occupied terminal.
In specific implementation, user is by clicking the mode of the application icon of intended application or speech control mode or gesture control mode on the touchscreen, input the enabled instruction for this intended application, after receiving element 401 detects this enabled instruction, terminal is started this intended application and is shown the application interface of this intended application by display screen, meanwhile, acquiring unit 402 obtains the first memory value of the terminal taken when this pre-recorded intended application of terminal on average uses at every turn.
Judging unit 403, for judging whether described first memory value is more than or equal to the current available memory value of described terminal;
Described acquiring unit 402, time also for judging that at described judging unit described first memory value is more than or equal to described terminal current available memory value, obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, described characteristic information comprises access times, average each duration of using and average each memory value taken when using;
Concrete, first acquiring unit 402 can obtain current available memory value, the i.e. current memory value not being employed process and taking, and then by judging unit 403, this first memory value and this current available memory value are compared, to determine that can this intended application normally be run after starting, if this first memory value is less than this current available memory value, show that this intended application can normally be run; If this first memory value is more than or equal to this current available memory value, show that current available memory value is not enough to support the normal operation of this intended application, then acquiring unit 402 determines current each application being in background operation state, so from the application that generates in advance use record sheet the access times obtaining this each application, average each duration of using and average each use time the characteristic information such as the memory value that takies.
In the embodiment that some are feasible, terminal specifically can judge that this current available memory value deducts the difference that this first memory value obtains and whether is more than or equal to default memory threshold (as 50M), to determine that can this intended application be smoothly run after starting, if this difference is more than or equal to this memory threshold preset, show that this intended application can smoothly be run after starting; If this difference is less than this memory threshold preset, show that current available memory value is not enough to support that the smoothness of this intended application is run, then acquiring unit 402 determines current each application being in background operation state, so from the application that generates in advance use record sheet the access times obtaining this each application, average each duration of using and average each use time the characteristic information such as the memory value that takies.
Processing unit 404, for according to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determines the application needing to carry out internal memory cleaning in each application described;
In specific implementation, the first memory value that processing unit 404 takies when can first on average use according to this intended application at every turn and current available memory value, determine the memory value needing to be obtained by the application of cleaning running background, determine that in this each application, user seldom uses according to access times and the average each duration used again, use the application that duration is shorter, and then user seldom uses in applying this each, the application using duration shorter is as the application that can clear up, and obtain the memory value taken when each application on average uses at every turn in these applications that can clear up, and then obtain the number of applications needing cleaning in these applications that can clear up.
In the embodiment that some are feasible, application in the application that processing unit 404 can be able to be cleared up according to these enters the time order from morning to night of running background, obtain the number of applications needing cleaning, the application namely entering this number of applications of running background at first can be cleaned.
In the embodiment that some are feasible, the current memory value taken on backstage of application order from big to small in the application that processing unit 404 can be able to be cleared up according to these, obtain the number of applications needing cleaning, namely, after the current memory value taken on backstage arranges from big to small, the application coming this number of applications above can be cleaned.
It should be noted that, user is set to the application (do not allow when namely these are applied in running background cleaned fall) of backstage guard mode, terminal can be cleared up.
Performance element 405, performs internal memory cleaning operation for the application described need being carried out to internal memory cleaning.
Concrete, performance element 405 directly can remove the application need carrying out internal memory cleaning or the application this need being carried out internal memory cleaning are transferred to terminal swap subregion from the internal memory of terminal from internal memory, perform internal memory cleaning operation with the application realizing need carrying out this internal memory cleaning, thus provide enough memory sources for the operation of this intended application.
Can when the intended application enabled instruction receiving input by the embodiment of the present invention, obtain the first memory value taken when this pre-recorded intended application of terminal on average uses at every turn, and judge whether this first memory value is more than or equal to the current available memory value of this terminal, if, then obtain the current characteristic information being in each application of background operation state that this terminal is pre-recorded, and then according to this first memory value, this current available memory value and this each application characteristic information, determine to need to carry out the application of internal memory cleaning in this each application, and internal memory cleaning operation is performed to the application that this need carry out internal memory cleaning, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run.
Referring to Fig. 5, is the second example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising: record cell 501, the 3rd determining unit 502, second setting unit 503, receiving element 504, acquiring unit 505, judging unit 506, processing unit 507 and performance element 508, wherein:
Record cell 501, for recording in terminal, each applies the memory value from taking when being installed to current access times, the duration used and using at every turn at every turn;
Wherein, each duration used can be application each time from being opened to the duration exiting experience completely, also can be application from being opened to the duration entering running background experience.
3rd determining unit 502, for the duration according to described access times and described each use, determines the average each duration used of each application described;
Described 3rd determining unit 502, also for according to described access times and described each use time the memory value that takies, determine the average each memory value taken when using of each application described;
Concrete, 3rd determining unit 502 can according to each application of record from being installed to now, or the access times in a period of time and each duration used, calculate the average each duration used of each application, simultaneously, 3rd determining unit 502 also can according to each application of record from being installed to now, or access times in a period of time and each memory value taken when using, and calculates the average each memory value taken when using of each application.
Second setting unit 503, for being set to each characteristic information applied described by the memory value taken when the duration of described access times, described on average each use and described average each use;
Receiving element 504, for receiving the intended application enabled instruction of input;
Acquiring unit 505, for when described receiving element receives described intended application enabled instruction, obtains the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn;
Judging unit 506, for judging whether described first memory value is more than or equal to the current available memory value of described terminal;
Described acquiring unit 505, time also for judging that at described judging unit described first memory value is more than or equal to described terminal current available memory value, obtain the characteristic information that pre-recorded current of described terminal is in the first application of background operation state, described characteristic information comprises access times, average each duration of using and average each memory value taken when using;
Processing unit 507, for according to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determines the application needing to carry out internal memory cleaning in each application described;
Described processing unit 507 specifically comprises the first determining unit 5070, second determining unit 5071 and the first setting unit 5072, wherein:
First determining unit 5070, for determining that in each application described, access times or average each duration used are less than or equal to the application of predetermined threshold value;
Described first determining unit 5070, memory value also for taking according to described first memory value, the current available memory value of described terminal and when on average using at every turn, determines that the duration of described access times or average each use is less than or equal to the destination number needing the application carrying out internal memory cleaning in the application of predetermined threshold value;
Second determining unit 5071, for according to the selection rule preset, is less than or equal to from described access times or average each duration used the application determining described destination number the application of predetermined threshold value;
First setting unit 5072, for being set to the application of described destination number the application that described need carry out internal memory cleaning.
In specific implementation, according to access times and average each duration used, first determining unit 5070 can judge whether an application is the application that user often uses, and then in applying this each, access times are less than or equal to predetermined threshold value (as 5 times), or the average each duration used is less than or equal to predetermined threshold value (as 3 minutes), or access times are less than or equal to predetermined threshold value (as 5 times) and the application that average each duration used also is less than or equal to predetermined threshold value (as 3 minutes) is defined as the application that can clear up.
Further, the memory value that the second determining unit 5071 takies according to the first memory value, the current available memory value of this terminal and when on average using at every turn, determines the destination number needing the application carrying out internal memory cleaning in this application that can clear up.
Further, terminal can record access times or average each being less than or equal in the application of predetermined threshold value of each duration used applies the time point entering background operation state, and then first setting unit 5072 according to the time point order from morning to night entering background operation state, the application determining this destination number the application of predetermined threshold value is less than or equal to from these access times or average each duration used, and the application of this destination number is set to the application need carrying out internal memory cleaning, namely when needs carry out internal memory cleaning, these access times or the average each duration used be less than or equal in the application of predetermined threshold value enter running background application more early more first cleaned fall.
In the embodiment that some are feasible, terminal can obtain access times or average each being less than or equal in the application of predetermined threshold value of each duration used applies the current memory value taken, and then first setting unit 5072 according to current committed memory value order from big to small, the application determining this destination number the application of predetermined threshold value is less than or equal to from these access times or average each duration used, and the application of this destination number is set to the application need carrying out internal memory cleaning, namely when needs carry out internal memory cleaning, these access times or the average each duration used be less than or equal to application that in the application of predetermined threshold value, the current memory value taken is larger more first cleaned fall.
In the embodiment that some are feasible, first setting unit 5072 also can be less than or equal to from these access times or average each duration used the application determining this destination number the application of predetermined threshold value at random, and the application of this destination number is set to the application need carrying out internal memory cleaning.
Performance element 508, performs internal memory cleaning operation for the application described need being carried out to internal memory cleaning.
The average each duration used of this each application can be determined according to each application in the terminal of record from the duration being installed to current access times and each use by the embodiment of the present invention, and the memory value taken when at every turn using according to these access times and this determines the average each memory value taken when using of this each application, so by these access times, this average each duration of using and this average each use time the memory value that takies be set to characteristic information of this each application, when the intended application enabled instruction receiving input, obtain the first memory value taken when this pre-recorded intended application on average uses at every turn, and judge whether this first memory value is more than or equal to the current available memory value of terminal, if, then obtain the current characteristic information being in the first application of background operation state in this pre-recorded terminal, this characteristic information comprises access times, the memory value taken when the average duration at every turn used and average each use, determine that in this each application, access times or the average each duration used are less than or equal to the application of predetermined threshold value, and according to this first memory value, the memory value taken when the current available memory value of this terminal and average each use, determine that these access times or average each duration used are less than or equal to the destination number needing the application carrying out internal memory cleaning in the application of predetermined threshold value, the application of this destination number is determined according to the selection rule preset, and the application of this destination number is set to the application need carrying out internal memory cleaning, and then internal memory cleaning operation is performed to the application that this need carry out internal memory cleaning, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run.
Referring to Fig. 6, is the 3rd example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising: receiving element 601, acquiring unit 602, judging unit 603, processing unit 604 and performance element 605, wherein:
Receiving element 601, for receiving the intended application enabled instruction of input;
Acquiring unit 602, for when described receiving element receives described intended application enabled instruction, obtains the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn;
Judging unit 603, for judging whether described first memory value is more than or equal to the current available memory value of described terminal;
Described acquiring unit 602, time also for judging that at described judging unit described first memory value is more than or equal to described terminal current available memory value, obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, described characteristic information comprises access times, average each duration of using and average each memory value taken when using;
Processing unit 604, for according to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determines the application needing to carry out internal memory cleaning in each application described;
Performance element 605, the process for described need being carried out the application of internal memory cleaning to be transferred to the swap subregion of described terminal from the internal memory of described terminal, or the process of described need being carried out the application of internal memory cleaning is removed from the internal memory of described terminal.
Wherein, in the embodiment of the present invention, swap subregion can resource be virtual obtains by the read only memory ROM of terminal (English full name: ReadOnlyMemory), and this ROM resource specifically can comprise the internal storage space of terminal and the external storage space (as SD card etc.) of terminal.
Concrete, after processing unit 604 is determined and need be carried out the application of internal memory cleaning, this associated process that need carry out the application of internal memory cleaning can directly be removed by performance element 605 from tag memory, or the associated process that this need be carried out the application of internal memory cleaning is transferred to the swap subregion of this terminal from the internal memory of this terminal, to increase current available memory source, thus meet the demand of this intended application smoothness operation.
Described performance element 605, time also for detecting that current available memory value is more than or equal to default memory value in described terminal, the process of described need being carried out the application of internal memory cleaning is transferred to the internal memory of described terminal from the swap subregion of described terminal.
In specific implementation, terminal detect due to this intended application exit or other application exit and make current free memory value be more than or equal to default memory value time, performance element 605 can judge whether that the application process of application is present in the swap subregion of this terminal, if had, that these can be applied all or part of being transferred in the internal memory of this terminal again, and to ensure to be convenient under the prerequisite not affecting terminal operating fluency, user is follow-up opens these application fast.
Can when the intended application enabled instruction receiving input by the embodiment of the present invention, obtain the first memory value taken when this pre-recorded intended application on average uses at every turn, and judge whether this first memory value is more than or equal to the current available memory value of terminal, if, then obtain the current characteristic information being in each application of background operation state in this pre-recorded terminal, and then according to this first memory value, this current available memory value and this each application characteristic information, determine to need to carry out the application of internal memory cleaning in this each application, and then the process this need being carried out the application of internal memory cleaning is transferred to the swap subregion of this terminal from the internal memory of this terminal, or, the process that this need carry out the application of internal memory cleaning is removed from the internal memory of this terminal, and when detecting that the current available memory value of this terminal is more than or equal to default memory value, the process this need being carried out the application of internal memory cleaning is transferred to the internal memory of this terminal from the swap subregion of this terminal, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run, simultaneously, the application that user opens running background is rapidly convenient under can be implemented in the prerequisite not affecting terminal operating fluency.
Referring to Fig. 7, is the 4th example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.Terminal described in the present embodiment, comprising: at least one input equipment 1000; At least one output device 2000; At least one processor 3000, such as CPU; With storer 4000, above-mentioned input equipment 1000, output device 2000, processor 3000 are connected by bus 5000 with storer 4000.
Wherein, above-mentioned input equipment 1000 specifically can be the touch-screen of terminal, for detecting the touch operation of user's input.
Above-mentioned output device 2000 specifically can be the display screen of terminal, for representing corresponding data message to terminal user.
Above-mentioned storer 4000 can be high-speed RAM storer, also can be non-labile storer (non-volatilememory), such as magnetic disk memory.Above-mentioned storer 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output device 2000 and processor 3000, for calling the program code stored in storer 4000, perform and operate as follows:
Above-mentioned input equipment 1000, for receiving the intended application enabled instruction of input;
Above-mentioned processor 3000, during for receiving the intended application enabled instruction of input at input equipment 1000, obtain the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn, and judge whether described first memory value is more than or equal to the current available memory value of described terminal;
Above-mentioned processor 3000, also for when judging that described first memory value is more than or equal to the current available memory value of described terminal, obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, described characteristic information comprises access times, average each duration of using and average each memory value taken when using;
Above-mentioned processor 3000, also for according to described first memory value, the current available memory value of described terminal and described each application characteristic information, determine the application needing to carry out internal memory cleaning in each application described, and the application execution internal memory cleaning operation of internal memory cleaning is carried out to described need.
In the embodiment that some are feasible, above-mentioned processor 3000, according to the characteristic information of described first memory value, the current available memory value of described terminal and each application described, determines to need in each application described the concrete mode of the application carrying out internal memory cleaning be:
Determine that in each application described, access times or average each duration used are less than or equal to the application of predetermined threshold value;
The memory value taken according to described first memory value, the current available memory value of described terminal and when on average using at every turn, determines that the duration of described access times or average each use is less than or equal to the destination number needing the application carrying out internal memory cleaning in the application of predetermined threshold value;
According to the selection rule preset, be less than or equal to from described access times or average each duration used the application determining described destination number the application of predetermined threshold value, and the application of described destination number is set to the application that described need carry out internal memory cleaning.
In the embodiment that some are feasible, above-mentioned processor 3000 is according to the selection rule preset, and the concrete mode being less than or equal to the application determining described destination number the application of predetermined threshold value from described access times or average each duration used is:
Duration each application be less than or equal in the application of predetermined threshold value obtaining described access times or average each use enters the time point of described background operation state, and according to entering the time point order from morning to night of described background operation state, be less than or equal to from described access times or average each duration used the application determining described destination number the application of predetermined threshold value;
Or,
The application determining described destination number the application of predetermined threshold value is less than or equal at random from described access times or average each duration used.
In the embodiment that some are feasible, above-mentioned processor 3000, also for recording in terminal, each is applied from being installed to current access times, the memory value taken when the duration of each use and each use, according to the duration of described access times and described each use, determine the average each duration used of each application described, and according to the memory value taken when described access times and described each use, determine the memory value that each application described takies when on average using at every turn, and by described access times, the memory value taken when the duration of described on average each use and described average each use is set to each characteristic information applied described.
In the embodiment that some are feasible, above-mentioned processor 3000 carries out the application execution internal memory cleaning operation of internal memory cleaning concrete mode to described need is:
The process of described need being carried out the application of internal memory cleaning is transferred to the swap subregion of described terminal from the internal memory of described terminal;
Or,
The process of described need being carried out the application of internal memory cleaning is removed from the internal memory of described terminal.
In the embodiment that some are feasible, above-mentioned processor 3000, also for when detecting that the current available memory value of described terminal is more than or equal to default memory value, the process of described need being carried out the application of internal memory cleaning is transferred to the internal memory of described terminal from the swap subregion of described terminal.
In specific implementation, input equipment 1000 described in the embodiment of the present invention, output device 2000 and processor 3000 can perform the first embodiment of a kind of internal memory method for cleaning that the embodiment of the present invention provides, the second embodiment and the implementation described in the 3rd embodiment, also can perform the implementation of the first embodiment of a kind of terminal that the embodiment of the present invention provides, the second embodiment and the terminal described in the 3rd embodiment, not repeat them here.
Can when the intended application enabled instruction receiving input by the embodiment of the present invention, obtain the first memory value taken when this pre-recorded intended application of terminal on average uses at every turn, and judge whether this first memory value is more than or equal to the current available memory value of this terminal, if, then obtain the current characteristic information being in each application of background operation state that this terminal is pre-recorded, and then according to this first memory value, this current available memory value and this each application characteristic information, determine to need to carry out the application of internal memory cleaning in this each application, and internal memory cleaning operation is performed to the application that this need carry out internal memory cleaning, internal memory cleaning operation can be completed in application start process, thus effectively ensure that the smoothness of application is run.
Unit in all embodiments of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, special IC).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
A kind of internal memory method for cleaning provided the embodiment of the present invention above and terminal are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. an internal memory method for cleaning, is characterized in that, comprising:
When receiving the intended application enabled instruction of input, obtaining the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn, and judging whether described first memory value is more than or equal to the current available memory value of described terminal;
If described first memory value is more than or equal to the current available memory value of described terminal, then obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, described characteristic information comprises access times, average each duration of using and average each memory value taken when using;
According to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determine the application needing to carry out internal memory cleaning in each application described;
The application described need being carried out to internal memory cleaning performs internal memory cleaning operation.
2. method according to claim 1, is characterized in that, described according to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, and determines the application needing to carry out internal memory cleaning in each application described, comprising:
Determine that in each application described, access times or average each duration used are less than or equal to the application of predetermined threshold value;
The memory value taken according to described first memory value, the current available memory value of described terminal and when on average using at every turn, determines that the duration of described access times or average each use is less than or equal to the destination number needing the application carrying out internal memory cleaning in the application of predetermined threshold value;
According to the selection rule preset, be less than or equal to from described access times or average each duration used the application determining described destination number the application of predetermined threshold value, and the application of described destination number is set to the application that described need carry out internal memory cleaning.
3. method according to claim 2, is characterized in that, the described selection rule according to presetting, and is less than or equal to the application determining described destination number the application of predetermined threshold value, comprises from described access times or average each duration used:
Duration each application be less than or equal in the application of predetermined threshold value obtaining described access times or average each use enters the time point of described background operation state, and according to entering the time point order from morning to night of described background operation state, be less than or equal to from described access times or average each duration used the application determining described destination number the application of predetermined threshold value;
Or,
The application determining described destination number the application of predetermined threshold value is less than or equal at random from described access times or average each duration used.
4. method according to claim 1, is characterized in that, described when receiving the intended application enabled instruction of input, before obtaining the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn, also comprises:
In record terminal, each application is from the memory value taken when being installed to current access times, the duration used and using at every turn at every turn;
According to the duration of described access times and described each use, determine the average each duration used of each application described;
According to the memory value taken when described access times and described each use, the memory value taken when each applies average each use described in determining;
The memory value taken when the duration of described access times, described on average each use and described average each use is set to each characteristic information applied described.
5. the method according to any one of Claims 1 to 4, is characterized in that, the described application execution internal memory cleaning operation described need being carried out to internal memory cleaning, comprising:
The process of described need being carried out the application of internal memory cleaning is transferred to the swap subregion of described terminal from the internal memory of described terminal;
Or,
The process of described need being carried out the application of internal memory cleaning is removed from the internal memory of described terminal;
Wherein, described method also comprises:
When detecting that the current available memory value of described terminal is more than or equal to default memory value, the process of described need being carried out the application of internal memory cleaning is transferred to the internal memory of described terminal from the swap subregion of described terminal.
6. a terminal, is characterized in that, comprising:
Receiving element, for receiving the intended application enabled instruction of input;
Acquiring unit, for when described receiving element receives described intended application enabled instruction, obtains the first memory value taken when the pre-recorded described intended application of terminal on average uses at every turn;
Judging unit, for judging whether described first memory value is more than or equal to the current available memory value of described terminal;
Described acquiring unit, time also for judging that at described judging unit described first memory value is more than or equal to described terminal current available memory value, obtain characteristic information that pre-recorded current of described terminal is in each application of background operation state, described characteristic information comprises access times, average each duration of using and average each memory value taken when using;
Processing unit, for according to described first memory value, the current available memory value of described terminal and the described characteristic information that each is applied, determines the application needing to carry out internal memory cleaning in each application described;
Performance element, performs internal memory cleaning operation for the application described need being carried out to internal memory cleaning.
7. terminal according to claim 6, is characterized in that, described processing unit comprises:
First determining unit, for determining that in each application described, access times or average each duration used are less than or equal to the application of predetermined threshold value;
Described first determining unit, memory value also for taking according to described first memory value, the current available memory value of described terminal and when on average using at every turn, determines that the duration of described access times or average each use is less than or equal to the destination number needing the application carrying out internal memory cleaning in the application of predetermined threshold value;
Second determining unit, for according to the selection rule preset, is less than or equal to from described access times or average each duration used the application determining described destination number the application of predetermined threshold value;
First setting unit, for being set to the application of described destination number the application that described need carry out internal memory cleaning.
8. terminal according to claim 7, it is characterized in that, described second determining unit is according to the selection rule preset, and the concrete mode being less than or equal to the application determining described destination number the application of predetermined threshold value from described access times or average each duration used is:
Duration each application be less than or equal in the application of predetermined threshold value obtaining described access times or average each use enters the time point of described background operation state, and according to entering the time point order from morning to night of described background operation state, be less than or equal to from described access times or average each duration used the application determining described destination number the application of predetermined threshold value;
Or,
The application determining described destination number the application of predetermined threshold value is less than or equal at random from described access times or average each duration used.
9. terminal according to claim 6, is characterized in that, also comprises:
Record cell, for recording in described terminal, each applies the memory value from taking when being installed to current access times, the duration used and using at every turn at every turn;
3rd determining unit, for the duration according to described access times and described each use, determines the average each duration used of each application described;
Described 3rd determining unit, also for according to described access times and described each use time the memory value that takies, determine the average each memory value taken when using of each application described;
Second setting unit, for being set to each characteristic information applied described by the memory value taken when the duration of described access times, described on average each use and described average each use.
10. the terminal according to any one of claim 6 ~ 9, is characterized in that, described performance element carries out the application execution internal memory cleaning operation of internal memory cleaning concrete mode to described need is:
The process of described need being carried out the application of internal memory cleaning is transferred to the swap subregion of described terminal from the internal memory of described terminal;
Or,
The process of described need being carried out the application of internal memory cleaning is removed from the internal memory of described terminal;
Wherein, described performance element, time also for detecting that current available memory value is more than or equal to default memory value in described terminal, the process of described need being carried out the application of internal memory cleaning is transferred to the internal memory of described terminal from the swap subregion of described terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510622324.3A CN105335099A (en) | 2015-09-25 | 2015-09-25 | Memory cleaning method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510622324.3A CN105335099A (en) | 2015-09-25 | 2015-09-25 | Memory cleaning method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105335099A true CN105335099A (en) | 2016-02-17 |
Family
ID=55285680
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510622324.3A Pending CN105335099A (en) | 2015-09-25 | 2015-09-25 | Memory cleaning method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105335099A (en) |
Cited By (30)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105824673A (en) * | 2016-03-21 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Method and device for operating application program |
CN105824702A (en) * | 2016-03-22 | 2016-08-03 | 乐视云计算有限公司 | Method and terminal for managing program memory footprint |
CN105893130A (en) * | 2016-03-31 | 2016-08-24 | 维沃移动通信有限公司 | Mobile terminal application program processing method and mobile terminal |
CN105912395A (en) * | 2016-06-29 | 2016-08-31 | 中科创达软件股份有限公司 | Process management method and device |
CN105912370A (en) * | 2016-05-03 | 2016-08-31 | 广东欧珀移动通信有限公司 | Control method and apparatus for background application of mobile terminal and mobile terminal |
CN106201594A (en) * | 2016-06-28 | 2016-12-07 | 维沃移动通信有限公司 | A kind of applied program processing method and mobile terminal |
CN106294576A (en) * | 2016-07-28 | 2017-01-04 | Tcl集团股份有限公司 | The method for cleaning of a kind of Android system memory space and system |
CN106325990A (en) * | 2016-08-19 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Control method of application program, control device and terminal |
CN106371904A (en) * | 2016-08-29 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Application process clearing method and mobile terminal |
CN106528216A (en) * | 2016-10-26 | 2017-03-22 | 深圳市金立通信设备有限公司 | Method for starting application and terminal |
CN106708615A (en) * | 2016-11-21 | 2017-05-24 | 珠海市魅族科技有限公司 | Application management method and terminal |
CN106775894A (en) * | 2017-01-05 | 2017-05-31 | 深圳市金立通信设备有限公司 | The operation method and terminal of a kind of application program |
CN106776378A (en) * | 2016-12-05 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | It is a kind of to clear up data cached method and device |
CN106980525A (en) * | 2017-04-25 | 2017-07-25 | 北京奇虎科技有限公司 | Using startup method, device and mobile terminal |
CN107220076A (en) * | 2016-09-27 | 2017-09-29 | 华为技术有限公司 | A kind of method for recovering internal storage and device |
CN107249074A (en) * | 2017-05-16 | 2017-10-13 | 努比亚技术有限公司 | Application program quick start method, mobile terminal and computer-readable recording medium |
CN107291483A (en) * | 2016-04-01 | 2017-10-24 | 深圳富泰宏精密工业有限公司 | Intelligence deletes the method and electronic equipment of application program |
CN107368326A (en) * | 2016-05-13 | 2017-11-21 | 腾讯科技(深圳)有限公司 | Course control method and device |
CN107678849A (en) * | 2017-10-18 | 2018-02-09 | 广东小天才科技有限公司 | The open method and user terminal of a kind of application program |
WO2018032782A1 (en) * | 2016-08-17 | 2018-02-22 | 华为技术有限公司 | Method and device for starting application |
WO2018176245A1 (en) * | 2017-03-29 | 2018-10-04 | 深圳市卓希科技有限公司 | Method for controlling application program, and terminal |
WO2019036913A1 (en) * | 2017-08-22 | 2019-02-28 | 深圳传音通讯有限公司 | Storage space cleaning method for electronic terminal, and electronic terminal |
WO2019047045A1 (en) * | 2017-09-06 | 2019-03-14 | 深圳传音通讯有限公司 | Memory cleaning method and user terminal |
WO2019062342A1 (en) * | 2017-09-30 | 2019-04-04 | Oppo广东移动通信有限公司 | Background application cleaning method and apparatus, and storage medium and electronic device |
CN109683979A (en) * | 2017-10-17 | 2019-04-26 | 中兴通讯股份有限公司 | A kind of control method and device using self-starting |
CN109885349A (en) * | 2017-12-06 | 2019-06-14 | 广东欧珀移动通信有限公司 | Using method for cleaning, device, mobile terminal and computer readable storage medium |
CN110018904A (en) * | 2018-01-10 | 2019-07-16 | 广东欧珀移动通信有限公司 | Information processing method, device, computer equipment and computer readable storage medium |
CN110737523A (en) * | 2019-10-18 | 2020-01-31 | 湖南快乐阳光互动娱乐传媒有限公司 | method and terminal for improving application starting speed through memory cleaning |
CN112256354A (en) * | 2020-11-25 | 2021-01-22 | Oppo(重庆)智能科技有限公司 | Application starting method and device, storage medium and electronic equipment |
CN112416549A (en) * | 2020-11-18 | 2021-02-26 | 珠海格力电器股份有限公司 | Process management method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024538A (en) * | 2012-11-12 | 2013-04-03 | 北京奇虎科技有限公司 | Memory management method and system |
US20130151814A1 (en) * | 2011-12-13 | 2013-06-13 | Toyota Jidosha Kabushiki Kaisha | Multi-core processor |
CN103324500A (en) * | 2013-05-06 | 2013-09-25 | 广州市动景计算机科技有限公司 | Method and device for recycling internal memory |
CN104298612A (en) * | 2014-09-30 | 2015-01-21 | 北京金山安全软件有限公司 | Method and device for cleaning memory in mobile terminal and mobile terminal |
CN104503740A (en) * | 2014-12-01 | 2015-04-08 | 小米科技有限责任公司 | Memory management method and device |
-
2015
- 2015-09-25 CN CN201510622324.3A patent/CN105335099A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130151814A1 (en) * | 2011-12-13 | 2013-06-13 | Toyota Jidosha Kabushiki Kaisha | Multi-core processor |
CN103024538A (en) * | 2012-11-12 | 2013-04-03 | 北京奇虎科技有限公司 | Memory management method and system |
CN103324500A (en) * | 2013-05-06 | 2013-09-25 | 广州市动景计算机科技有限公司 | Method and device for recycling internal memory |
CN104298612A (en) * | 2014-09-30 | 2015-01-21 | 北京金山安全软件有限公司 | Method and device for cleaning memory in mobile terminal and mobile terminal |
CN104503740A (en) * | 2014-12-01 | 2015-04-08 | 小米科技有限责任公司 | Memory management method and device |
Cited By (46)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105824673A (en) * | 2016-03-21 | 2016-08-03 | 乐视网信息技术(北京)股份有限公司 | Method and device for operating application program |
CN105824702A (en) * | 2016-03-22 | 2016-08-03 | 乐视云计算有限公司 | Method and terminal for managing program memory footprint |
CN105893130A (en) * | 2016-03-31 | 2016-08-24 | 维沃移动通信有限公司 | Mobile terminal application program processing method and mobile terminal |
CN105893130B (en) * | 2016-03-31 | 2019-06-07 | 维沃移动通信有限公司 | A kind of processing method and mobile terminal of application program for mobile terminal |
CN107291483A (en) * | 2016-04-01 | 2017-10-24 | 深圳富泰宏精密工业有限公司 | Intelligence deletes the method and electronic equipment of application program |
CN105912370B (en) * | 2016-05-03 | 2020-02-14 | Oppo广东移动通信有限公司 | Control method and device for background application program of mobile terminal and mobile terminal |
CN105912370A (en) * | 2016-05-03 | 2016-08-31 | 广东欧珀移动通信有限公司 | Control method and apparatus for background application of mobile terminal and mobile terminal |
CN107368326A (en) * | 2016-05-13 | 2017-11-21 | 腾讯科技(深圳)有限公司 | Course control method and device |
CN106201594B (en) * | 2016-06-28 | 2019-07-26 | 维沃移动通信有限公司 | A kind of applied program processing method and mobile terminal |
CN106201594A (en) * | 2016-06-28 | 2016-12-07 | 维沃移动通信有限公司 | A kind of applied program processing method and mobile terminal |
CN105912395B (en) * | 2016-06-29 | 2019-03-15 | 中科创达软件股份有限公司 | A kind of process management method and device |
CN105912395A (en) * | 2016-06-29 | 2016-08-31 | 中科创达软件股份有限公司 | Process management method and device |
CN106294576A (en) * | 2016-07-28 | 2017-01-04 | Tcl集团股份有限公司 | The method for cleaning of a kind of Android system memory space and system |
CN106294576B (en) * | 2016-07-28 | 2021-07-16 | Tcl科技集团股份有限公司 | Method and system for cleaning storage space of android system |
CN107766128B (en) * | 2016-08-17 | 2021-01-29 | 华为技术有限公司 | Method and device for starting application |
US11132219B2 (en) | 2016-08-17 | 2021-09-28 | Huawei Technologies Co., Ltd. | Starting method for applications which are closed automatically based on the insufficient memory of the system |
WO2018032782A1 (en) * | 2016-08-17 | 2018-02-22 | 华为技术有限公司 | Method and device for starting application |
CN107766128A (en) * | 2016-08-17 | 2018-03-06 | 华为技术有限公司 | A kind of method and device for starting application |
CN112882804A (en) * | 2016-08-17 | 2021-06-01 | 华为技术有限公司 | Method and device for starting application |
CN106325990A (en) * | 2016-08-19 | 2017-01-11 | 宇龙计算机通信科技(深圳)有限公司 | Control method of application program, control device and terminal |
CN106325990B (en) * | 2016-08-19 | 2019-10-11 | 宇龙计算机通信科技(深圳)有限公司 | Control method, control device and the terminal of application program |
CN106371904A (en) * | 2016-08-29 | 2017-02-01 | 宇龙计算机通信科技(深圳)有限公司 | Application process clearing method and mobile terminal |
CN107220076B (en) * | 2016-09-27 | 2018-10-30 | 华为技术有限公司 | A kind of method for recovering internal storage and device |
CN107220076A (en) * | 2016-09-27 | 2017-09-29 | 华为技术有限公司 | A kind of method for recovering internal storage and device |
US11099900B2 (en) | 2016-09-27 | 2021-08-24 | Huawei Technologies Co., Ltd. | Memory reclamation method and apparatus |
CN109213539A (en) * | 2016-09-27 | 2019-01-15 | 华为技术有限公司 | A kind of method for recovering internal storage and device |
CN106528216A (en) * | 2016-10-26 | 2017-03-22 | 深圳市金立通信设备有限公司 | Method for starting application and terminal |
CN106708615A (en) * | 2016-11-21 | 2017-05-24 | 珠海市魅族科技有限公司 | Application management method and terminal |
CN106776378A (en) * | 2016-12-05 | 2017-05-31 | 宇龙计算机通信科技(深圳)有限公司 | It is a kind of to clear up data cached method and device |
CN106775894A (en) * | 2017-01-05 | 2017-05-31 | 深圳市金立通信设备有限公司 | The operation method and terminal of a kind of application program |
WO2018176245A1 (en) * | 2017-03-29 | 2018-10-04 | 深圳市卓希科技有限公司 | Method for controlling application program, and terminal |
CN106980525A (en) * | 2017-04-25 | 2017-07-25 | 北京奇虎科技有限公司 | Using startup method, device and mobile terminal |
CN107249074A (en) * | 2017-05-16 | 2017-10-13 | 努比亚技术有限公司 | Application program quick start method, mobile terminal and computer-readable recording medium |
WO2019036913A1 (en) * | 2017-08-22 | 2019-02-28 | 深圳传音通讯有限公司 | Storage space cleaning method for electronic terminal, and electronic terminal |
CN111247504A (en) * | 2017-08-22 | 2020-06-05 | 深圳传音通讯有限公司 | Electronic terminal and storage space cleaning method thereof |
WO2019047045A1 (en) * | 2017-09-06 | 2019-03-14 | 深圳传音通讯有限公司 | Memory cleaning method and user terminal |
WO2019062342A1 (en) * | 2017-09-30 | 2019-04-04 | Oppo广东移动通信有限公司 | Background application cleaning method and apparatus, and storage medium and electronic device |
US11544633B2 (en) | 2017-09-30 | 2023-01-03 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method for cleaning up background application, storage medium, and electronic device |
CN109683979A (en) * | 2017-10-17 | 2019-04-26 | 中兴通讯股份有限公司 | A kind of control method and device using self-starting |
CN107678849A (en) * | 2017-10-18 | 2018-02-09 | 广东小天才科技有限公司 | The open method and user terminal of a kind of application program |
CN109885349B (en) * | 2017-12-06 | 2021-04-16 | Oppo广东移动通信有限公司 | Application cleaning method and device, mobile terminal and computer readable storage medium |
CN109885349A (en) * | 2017-12-06 | 2019-06-14 | 广东欧珀移动通信有限公司 | Using method for cleaning, device, mobile terminal and computer readable storage medium |
CN110018904A (en) * | 2018-01-10 | 2019-07-16 | 广东欧珀移动通信有限公司 | Information processing method, device, computer equipment and computer readable storage medium |
CN110737523A (en) * | 2019-10-18 | 2020-01-31 | 湖南快乐阳光互动娱乐传媒有限公司 | method and terminal for improving application starting speed through memory cleaning |
CN112416549A (en) * | 2020-11-18 | 2021-02-26 | 珠海格力电器股份有限公司 | Process management method and device, electronic equipment and storage medium |
CN112256354A (en) * | 2020-11-25 | 2021-01-22 | Oppo(重庆)智能科技有限公司 | Application starting method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105335099A (en) | Memory cleaning method and terminal | |
US8812983B2 (en) | Automatic magnification and selection confirmation | |
CN105740078B (en) | Memory management method, device and terminal | |
CN105045514A (en) | Application process management method and terminal | |
CN105468416A (en) | Application program clearing method and terminal | |
CN107193598B (en) | Application starting method, mobile terminal and computer readable storage medium | |
WO2016095689A1 (en) | Recognition and searching method and system based on repeated touch-control operations on terminal interface | |
CN110083399B (en) | Applet running method, computer device and storage medium | |
CN103761036A (en) | Method and device for running application | |
US11209951B2 (en) | Method and apparatus for displaying application program, terminal device, and storage medium | |
CN105426049A (en) | Deletion method and terminal | |
CN109298907B (en) | Application program display method, application program display device and terminal | |
CN105549857A (en) | Control method for electronic terminal and electronic terminal | |
CN103076971B (en) | The process management method of mobile terminal and mobile terminal | |
CN105739771A (en) | Display interface management method and device as well as terminal | |
CN108205559B (en) | Data management method and equipment thereof | |
CN110248023B (en) | Intelligent terminal control method, device, equipment and medium | |
CN106775894A (en) | The operation method and terminal of a kind of application program | |
CN112578961B (en) | Application identifier display method and device | |
CN110262856B (en) | Application program data acquisition method, device, terminal and storage medium | |
CN108920216B (en) | Method, device, terminal and storage medium for closing software compatible mode | |
CN108415656B (en) | Display control method, device, medium and electronic equipment in virtual scene | |
CN108632366B (en) | File downloading method and device and terminal equipment | |
CN108345628B (en) | Position display method and device of multi-level grid map, processor and terminal | |
CN112905072A (en) | Application processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160217 |
|
WD01 | Invention patent application deemed withdrawn after publication |