CN103645955A - Running management method and device for application program - Google Patents

Running management method and device for application program Download PDF

Info

Publication number
CN103645955A
CN103645955A CN201310690503.1A CN201310690503A CN103645955A CN 103645955 A CN103645955 A CN 103645955A CN 201310690503 A CN201310690503 A CN 201310690503A CN 103645955 A CN103645955 A CN 103645955A
Authority
CN
China
Prior art keywords
application program
resource
functional module
rank
priority level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310690503.1A
Other languages
Chinese (zh)
Inventor
王聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201310690503.1A priority Critical patent/CN103645955A/en
Publication of CN103645955A publication Critical patent/CN103645955A/en
Pending legal-status Critical Current

Links

Images

Abstract

An embodiment of the invention provides a running management method and device for an application program. The method comprises the steps as follows: the resource quantity occupied by the application program currently is detected, wherein the application program comprises at least one functional module; a resource occupancy level of the application program is obtained according to the resource quantity occupied by the application program currently; and according to the resource occupancy level of the application program, resources occupied by the at least one functional module are adjusted so as to release part of the resources. According to the method, internal memories occupied by running of the program are reduced on the premise that user usage is not affected, and a system is more stable.

Description

The operation management method of application program and device
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of operation management method and device of application program.
Background technology
For example, in various terminals (, smart mobile phone, panel computer, personal computer etc.), internal memory affects the key factor of terminal system and/or application program travelling speed often.
At present, mainly there is following problem, when application program is used internal memory over (differing greatly according to terminal kind difference) after a certain amount of, owing to taking a large amount of internal memories in application program operational process, but there is no rational releasing mechanism, easily cause internal memory to use too high, gently system operation slowly, heavy even system crash of application crash.In addition, programmer, in the process of developing application, realizes internal memory optimization by Optimized code, expends a large amount of time and efforts of programmer, and it is larger that application program realizes cost, and cost of development is high, and income effect is unsatisfactory.
Summary of the invention
The present invention is intended at least one of solve the problems of the technologies described above.
For this reason, first object of the present invention is to propose a kind of operation management method of application program.The method reduction program under the prerequisite that does not affect user's use is moved shared internal memory, and makes system more stable.
Second object of the present invention is to propose a kind of operation management apparatus of application program.
To achieve these goals, the supplying method of the Search Results of first aspect present invention embodiment, comprises the following steps: detect the current shared stock number of application program, wherein, described application program has at least one functional module; According to the current shared stock number of described application program, obtain the resource occupation rank of described application program; And according to the resource occupation rank of described application program, the shared resource of described at least one functional module is adjusted with release portion resource.
The operation management method of the application program of the embodiment of the present invention, according to the current shared stock number of application program, obtain the resource occupation rank of application program, and according to resource occupation rank, system resource is adjusted, effectively prevent that on the one hand system resource from taking the too high problems such as system operation is slow, application crash, system crash that cause, and makes system operation more smooth; On the other hand, by automatic detection and judgement memory optimization, under the prerequisite that does not affect user's use, reduction program is moved shared internal memory, promotes user and experiences; In addition, if programmer is in the process of exploitation, in application program, creates a detection module and resource occupation rank is set, to realize the problem of internal memory optimization, without exploitation code especially, reducing cost of development.
To achieve these goals, the operation management apparatus of the application program of second aspect present invention embodiment, comprising: resources measurement module, and for detection of the current shared stock number of application program, wherein, described application program has at least one functional module; Rank acquisition module, for obtaining the resource occupation rank of described application program according to the current shared stock number of described application program; And resource adjusting module, for the shared resource of described at least one functional module being adjusted with release portion resource according to the resource occupation rank of described application program.
The operation management apparatus of the application program of the embodiment of the present invention, see the resource occupation rank of obtaining application program by detecting the current shared stock number of application program, and according to resource occupation rank, system resource is adjusted, effectively prevent that on the one hand system resource from taking the too high problems such as system operation is slow, application crash, system crash that cause, and makes system operation more smooth; On the other hand, by automatic detection and judgement memory optimization, under the prerequisite that does not affect user's use, reduction program is moved shared internal memory, promotes user and experiences; In addition, if programmer is in the process of exploitation, in application program, creates a detection module and resource occupation rank is set, to realize the problem of internal memory optimization, without exploitation code especially, reducing cost of development.
The aspect that the present invention is additional and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Accompanying drawing explanation
Above-mentioned and/or the additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments and obviously and easily understand, wherein,
Fig. 1 is the process flow diagram of the operation management method of application program according to an embodiment of the invention;
Fig. 2 is the process flow diagram of the operation management method of the application program of another embodiment according to the present invention;
Fig. 3 is the process flow diagram of the operation management method of application program in accordance with another embodiment of the present invention;
Fig. 4 is the structured flowchart of the operation management apparatus of application program according to an embodiment of the invention;
Fig. 5 is the structured flowchart of the operation management apparatus of the application program of another embodiment according to the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Below by the embodiment being described with reference to the drawings, be exemplary, only for explaining the present invention, and can not be interpreted as limitation of the present invention.On the contrary, embodiments of the invention comprise spirit and all changes within the scope of intension, modification and the equivalent that falls into additional claims.
In description of the invention, it will be appreciated that, term " first ", " second " etc. are only for describing object, and can not be interpreted as indication or hint relative importance.In description of the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, and for example, can be to be fixedly connected with, and can be also to removably connect, or connects integratedly; Can be mechanical connection, can be to be also electrically connected to; Can be to be directly connected, also can indirectly be connected by intermediary.For the ordinary skill in the art, can concrete condition understand above-mentioned term concrete meaning in the present invention.In addition,, in description of the invention, except as otherwise noted, the implication of " a plurality of " is two or more.
In process flow diagram or any process of otherwise describing at this or method describe and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of the step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
While moving in order to solve application program, shared internal memory system excessive and that cause is moved the problem of slow even system and application crash, and the present invention proposes a kind of operation management method and device of application program, below with reference to accompanying drawing, is described in detail.
Fig. 1 is the process flow diagram of the operation management method of application program according to an embodiment of the invention.
As shown in Figure 1, the operation management method of application program comprises the following steps:
S101, detects the current shared stock number of application program, and wherein, application program has at least one functional module.
Particularly, application program may operate in various terminals, mobile terminals such as smart mobile phone, panel computer, or personal computer etc.The system of this terminal can carry detection module by embedded detection module or application program and detect the current shared stock number of application program, wherein, if the detection module that application program carries operates in application program from start to finish, the detection module in system starts or operates in system from start to finish with the startup of application program.In addition, the resource relating in the present invention mainly refers to internal memory, can certainly be other resources in system, and such as buffer memory, interface etc., mainly describes with the interior example that saves as in an embodiment of the present invention.
Should be appreciated that application program is by the different function of different Implement of Function Modules, thus each functional module when operation shared stock number also different.
S102, obtains the resource occupation rank of application program according to the current shared stock number of application program.
Wherein, resource occupation rank can have a plurality of, by default, can divide according to predetermined threshold value, for example, a plurality of predetermined threshold value can be set, according to determining resource occupation rank between the stock number location taking.
S103, adjusts with release portion resource the shared resource of at least one functional module according to the resource occupation rank of application program.
Particularly, when the resource occupation rank of the application program getting is higher, (for example account for the more than 50% of total internal memory, or over certain default resource occupation rank), the shared part resource of functional module of preferential this resource of release busy, can also close this functional module if desired, with releasing resource.
Should be appreciated that programmer, in the process of exploitation, can create a detection module in application program, resource occupation rank can also be set, to realize the problem of internal memory optimization, without exploitation code especially, reduce cost of development, and make the effect of internal memory optimization more obvious.
The operation management method of the application program of the embodiment of the present invention, according to the current shared stock number of application program, obtain the resource occupation rank of application program, and according to resource occupation rank, system resource is adjusted, effectively prevent that on the one hand system resource from taking the too high problems such as system operation is slow, application crash, system crash that cause, and makes system operation more smooth; On the other hand, by automatic detection and judgement memory optimization, under the prerequisite that does not affect user's use, reduction program is moved shared internal memory, promotes user and experiences; In addition, if programmer is in the process of exploitation, in application program, creates a detection module and resource occupation rank is set, to realize the problem of internal memory optimization, without exploitation code especially, reducing cost of development.
Fig. 2 is the process flow diagram of the operation management method of the application program of another embodiment according to the present invention.
If the functional module of moving in application program is more, and the resource occupation rank taking all reaches the standard of release, now need the importance of functional module to select, therefore the Release priority level of functional module is proposed, in one embodiment of the invention, the resource occupation rank of system acquisition application program and the Release priority level of each functional module, and discharge according to the resource that resource occupation rank and Release priority level application programs take.Particularly, as shown in Figure 2, the operation management method of application program comprises the following steps:
S201, detects the current shared stock number of application program, and wherein, application program has a plurality of functional modules and each functional module has Release priority level separately.
Particularly, Release priority level comprises inessential Release priority level and time necessary Release priority level.In one embodiment of the invention, the Release priority level of each functional module is according to the current ruuning situation real-time change of application program, for example, can determine according to the current perception situation of user, the appreciable functional module Release priority of user level is lower, and the functional module Release priority level that is difficult for perception is higher, take browser application as example, if user's browsing webpage, the Release priority level of web page browsing function module is lower than the Release priority level of download function module.
Should be appreciated that the resource relating in the present invention mainly refers to internal memory, can certainly be other resources in system, and such as buffer memory, interface etc., mainly describes with the interior example that saves as in an embodiment of the present invention.Application program is by the different function of different Implement of Function Modules, and the shared stock number of each functional module is also different.
S202, obtains the resource occupation rank of application program according to the current shared stock number of application program.
Particularly, in the embodiment of the present invention, can establish three resource occupation ranks: when the current shared stock number of application program is greater than the first predetermined threshold value and is less than the second predetermined threshold value, the resource occupation rank of application program is first resource occupancy level; When the current shared stock number of application program is greater than the second predetermined threshold value, the resource occupation rank of application program is Secondary resource occupancy level; And when the current shared stock number of application program is less than the first predetermined threshold value, the resource occupation rank of application program is information resources occupancy level.Wherein, the second predetermined threshold value is greater than the first predetermined threshold value, therefore, Secondary resource occupancy level is the highest rank of occupying, be that certain functional module in application program has been occupied too much resource, first resource occupancy level is taken second place, and information resources occupancy level is taken second place again, even can be without releasing resource under information resources occupancy level.
Wherein, the first predetermined threshold value and the second predetermined threshold value are real-time update.Particularly, when application program proceeds to foreground, system obtains according to the running status of terminal equipment type, OS Type and current terminal device the approximate range that application program can be used internal memory, value range is between the first predetermined threshold value to the second predetermined threshold value, and system, by again detecting and upgrade the approximate range that application program can be used internal memory, is upgraded the first predetermined threshold value and the second predetermined threshold value simultaneously at set intervals.
S203, discharges the shared resource of at least part of functional module in a plurality of functional modules according to Release priority level and resource occupation rank.
Particularly, if the resource occupation rank of application program is first resource occupancy level, close the functional module of inessential Release priority level correspondence, to discharge the shared resource of functional module of inessential Release priority level correspondence.Now, can each functional module of notification application, first the functional module of each inessential Release priority level correspondence discharges some resources, can also close this functional module if desired.
If the resource occupation rank of application program is Secondary resource occupancy level, close the functional module of inessential Release priority level and time necessary Release priority level correspondence, to discharge the shared resource of functional module of inessential Release priority level and time necessary Release priority level correspondence.Under the prerequisite of the normal operation of assurance system, first the functional module of each inessential Release priority level and time necessary Release priority level correspondence accepts or rejects a part of resource, closes if desired corresponding functional module.
The operation management method of the application program of the embodiment of the present invention, according to the current shared stock number of application program, obtain the resource occupation rank of application program, and according to the Release priority level of the resource occupation rank of program and functional module, system resource is adjusted, under the prerequisite that does not affect user's use, reduction program is moved shared internal memory, and make system more stable, further promote user and experience.
Fig. 3 is the process flow diagram of the operation management method of application program in accordance with another embodiment of the present invention.
In order further to promote user, experience, system is preserved the information of pent functional module, when application program reuses d/d functional module, and can be according to the information of preserving by the information fast restore of functional module.Particularly, as shown in Figure 3, the operation management method of application program comprises the following steps:
S301, detects the current shared stock number of application program, and wherein, application program has at least one functional module.
Wherein, functional module can be for one or more, and each functional module has Release priority level separately.Release priority level comprises inessential Release priority level and time necessary Release priority level.Particularly, in one embodiment of the invention, the Release priority level of each functional module is according to the current ruuning situation real-time change of application program, for example, can determine according to the current perception situation of user, the appreciable functional module Release priority of user level is lower, the functional module Release priority level that is difficult for perception is higher, take browser application as example, if user's browsing webpage, the Release priority level of web page browsing function module is lower than the Release priority level of download function module.
Should be appreciated that the resource relating in the present invention mainly refers to internal memory, can certainly be other resources in system, and such as buffer memory, interface etc., mainly describes with the interior example that saves as in an embodiment of the present invention.Application program is by the different function of different Implement of Function Modules, and the shared stock number of each functional module is also different.
S302, obtains the resource occupation rank of application program according to the current shared stock number of application program.
In the present invention, resource occupation rank can have a plurality of, by default, can divide according to predetermined threshold value, for example, a plurality of predetermined threshold value can be set, according to determining resource occupation rank between the stock number location taking.
Particularly, in the embodiment of the present invention, be provided with three resource occupation ranks: when the current shared stock number of application program is greater than the first predetermined threshold value and is less than the second predetermined threshold value, the resource occupation rank of application program is first resource occupancy level; When the current shared stock number of application program is greater than the second predetermined threshold value, the resource occupation rank of application program is Secondary resource occupancy level; And when the current shared stock number of application program is less than the first predetermined threshold value, the resource occupation rank of application program is information resources occupancy level.Wherein, the second predetermined threshold value is greater than the first predetermined threshold value, therefore, Secondary resource occupancy level is the highest rank of occupying, be that certain functional module in application program has been occupied too much resource, first resource occupancy level is taken second place, and information resources occupancy level is taken second place again, even can be without releasing resource under information resources occupancy level.
Wherein, the first predetermined threshold value and the second predetermined threshold value are real-time update.Particularly, when application program proceeds to foreground, system obtains according to the running status of terminal equipment type, OS Type and current terminal device the approximate range that application program can be used internal memory, value range is between the first predetermined threshold value to the second predetermined threshold value, and system, by again detecting and upgrade the approximate range that application program can be used internal memory, is upgraded the first predetermined threshold value and the second predetermined threshold value simultaneously at set intervals.
S303, adjusts with release portion resource the shared resource of at least one functional module according to the resource occupation rank of application program.
Particularly, system, according to the Release priority level of the resource occupation rank of application program and each functional module, discharges the shared resource of at least part of functional module in a plurality of functional modules, is roughly divided into following two kinds of situations:
If the resource occupation rank of application program is first resource occupancy level, close the functional module of inessential Release priority level correspondence, to discharge the shared resource of functional module of inessential Release priority level correspondence.Now, can each functional module of advising process, first the functional module of each inessential Release priority level correspondence discharges some resources, can also close this functional module if desired.
If the resource occupation rank of application program is Secondary resource occupancy level, close the functional module of inessential Release priority level and time necessary Release priority level correspondence, to discharge the shared resource of functional module of inessential Release priority level and time necessary Release priority level correspondence.Under the prerequisite of the normal operation of assurance system, first the functional module of each inessential Release priority level and time necessary Release priority level correspondence accepts or rejects a part of resource, closes if desired corresponding functional module.
S304, obtains the parameter information of the functional module of closing recording parameters information.
For example, the parameter information of a download function module comprises download URL (Uniform Resource Locator, URL(uniform resource locator), is also referred to as web page address), download address, download progress and sectional drawing etc., as a parameter information of record is:
Download URL: http://www.soopat.com/Home/DownloadRemote/D.pdf; Download address: D: My Documents; Download progress: 50%; Sectional drawing: picture 1.The value in program is preserved according to (key:value) form during recording parameters information, to call simultaneously.
Particularly, in application program compiling procedure, each functional module is used the template of the front design of exploitation moulding, and application program is according to this template record parameter information, and for different functional modules, the template of having write rear formation is different.
S305, when the resource occupation rank of application program is information resources occupancy level, recovers buttoned-up functional module according to the parameter information of record.
Particularly, in an embodiment of the present invention, when the resource occupation rank of application program is information resources occupancy level, for convenience of program, reuse pent functional module, system can read the parameter information of record, (key:value) correspondence in parameter information is returned in the process template of functional module, and the state while recovering to move buttoned-up functional module to last time continues operation.
The operation management method of the application program of the embodiment of the present invention, use is to each functional module of solid plate coding, during the shared resource of release function module, preserve the parameter information of this functional module, and according to the parameter information of preserving, recover pent functional module when internal memory is vacant, provide functional module information to preserve and according to the ability of preserving information recovery function module, both the object that had reached the low internal memory operation of program, has promoted again user's experience.
In order to realize above-described embodiment, the present invention also proposes a kind of operation management apparatus of application program.
Fig. 4 is the structured flowchart of the operation management apparatus of application program according to an embodiment of the invention.
As shown in Figure 4, the operation management apparatus of application program comprises: resources measurement module 100, rank acquisition module 200 and resource adjusting module 300.
Particularly, resources measurement module 100 is for detection of the current shared stock number of application program, and wherein, application program has at least one functional module.More specifically, if resources measurement module 100 carries for application program, operate in application program from start to finish, if resources measurement module 100 is the detection module in system, the startup with application program starts or operates in system from start to finish.In addition, the resource relating in the present invention mainly refers to internal memory, can certainly be other resources in system, and such as buffer memory, interface etc., mainly describes with the interior example that saves as in an embodiment of the present invention.Should be appreciated that application program is by the different function of different Implement of Function Modules, so the shared stock number of each functional module is also different.
Rank acquisition module 200 is for obtaining the resource occupation rank of application program according to the current shared stock number of application program.Wherein, resource occupation rank can have a plurality of, by default, can divide according to predetermined threshold value, for example, a plurality of predetermined threshold value can be set, and between the stock number location that rank acquisition module 200 takies according to application program, determines resource occupation rank.
Resource adjusting module 300 is for adjusting with release portion resource the shared resource of at least one functional module according to the resource occupation rank of application program.More specifically, when the resource occupation rank of the application program getting when rank acquisition module 200 is higher, (for example account for the more than 50% of total internal memory, or over certain default resource occupation rank), the shared part resource of functional module of resource adjusting module 300 preferential these resources of release busy, can also close this functional module if desired, with releasing resource.
The operation management apparatus of the application program of the embodiment of the present invention, by the current shared stock number of trace routine, obtain the resource occupation rank of application program, and according to resource occupation rank, system resource is adjusted, effectively prevent that on the one hand system resource from taking the too high problems such as system operation is slow, application crash, system crash that cause, and makes system operation more smooth; On the other hand, by automatic detection and judgement memory optimization, under the prerequisite that does not affect user's use, reduction program is moved shared internal memory, promotes user and experiences; In addition, if programmer is in the process of exploitation, in application program, creates a detection module and resource occupation rank is set, to realize the problem of internal memory optimization, without exploitation code especially, reducing cost of development.
Fig. 5 is the structured flowchart of the operation management apparatus of the application program of another embodiment according to the present invention.
As shown in Figure 5, the operation management apparatus of application program comprises: resources measurement module 100, rank acquisition module 200, resource adjusting module 300, logging modle 400 and recovery module 500.
Particularly, in the present invention, application program has at least one functional module, and each functional module has Release priority level separately.Release priority level comprises inessential Release priority level and time necessary Release priority level.In one embodiment of the invention, the Release priority level of each functional module is according to current system situation real-time change, for example, can determine according to the current perception situation of user, the appreciable functional module Release priority of user level is lower, and the functional module Release priority level that is difficult for perception is higher, take browser program as example, if user's browsing webpage, the Release priority level of web page browsing function module is lower than the Release priority level of download function module.Should be appreciated that the resource in the present invention mainly refers to internal memory, also can comprise other resources in system.Application program is by the different function of different Implement of Function Modules, and the shared stock number of each functional module is also different.
More specifically, in the embodiment of the present invention, be provided with three resource occupation ranks: when the current shared stock number of application program is greater than the first predetermined threshold value and is less than the second predetermined threshold value, the resource occupation rank of rank acquisition module 200 judgement application programs is first resource occupancy level; When the current shared stock number of application program is greater than the second predetermined threshold value, the resource occupation rank of rank acquisition module 200 judgement application programs is Secondary resource occupancy level; And when the current shared stock number of application program is less than the first predetermined threshold value, the resource occupation rank of rank acquisition module 200 judgement application programs is information resources occupancy level.Wherein, the second predetermined threshold value is greater than the first predetermined threshold value, therefore, Secondary resource occupancy level is the highest rank of occupying, be that certain module in application program has been occupied too much resource, first resource occupancy level is taken second place, and information resources occupancy level is taken second place again, even can be without releasing resource under information resources occupancy level.Wherein, the first predetermined threshold value and the second predetermined threshold value are real-time update.More specifically, when application program proceeds to foreground, system obtains according to the running status of terminal equipment type, OS Type and current terminal device the approximate range that application program can be used internal memory, value range is between the first predetermined threshold value to the second predetermined threshold value, and system, by again detecting and upgrade the approximate range that application program can be used internal memory, is upgraded the first predetermined threshold value and the second predetermined threshold value simultaneously at set intervals.
Resource adjusting module 300 is also for discharging the shared resource of at least part of functional module of a plurality of functional modules according to Release priority level and resource occupation rank.More specifically, if the resource occupation rank of application program is first resource occupancy level, close the functional module of inessential Release priority level correspondence, to discharge the shared resource of functional module of inessential Release priority level correspondence.Now, can each functional module of notification application, first the functional module of each inessential Release priority level correspondence discharges some resources, can also close this functional module if desired.
If the resource occupation rank of application program is Secondary resource occupancy level, close the functional module of inessential Release priority level and time necessary Release priority level correspondence, to discharge the shared resource of functional module of inessential Release priority level and time necessary Release priority level correspondence.Under the prerequisite of the normal operation of assurance system, first the functional module of each inessential Release priority level and time necessary Release priority level correspondence accepts or rejects a part of resource, closes if desired corresponding functional module.
Logging modle 400, for after shuts functional module, is obtained the parameter information of the functional module of closing, and recording parameters information.For example, the parameter information of a download function module comprises download URL (Uniform Resource Locator, URL(uniform resource locator), is also referred to as web page address), download address, download progress and sectional drawing etc., as a parameter information of record is:
Download URL: http://www.soopat.com/Home/DownloadRemote/D.pdf; Download address: D: My Documents; Download progress: 50%; Sectional drawing: picture 1.The value in program is preserved according to (key:value) form during recording parameters information, to call simultaneously.More specifically, in application program compiling procedure, each functional module is used the template of the front design of exploitation moulding, and application program is according to this template record parameter information, and for different functional modules, the template of having write rear formation is different.
When recovery module 500 is information resources occupancy level for the resource occupation rank when application program, according to the parameter information of record, recover buttoned-up functional module.In an embodiment of the present invention, when the resource occupation rank of application program is information resources occupancy level, for convenience of program, reuse pent functional module, recover the parameter information that module 500 can read logging modle 400 records, (key:value) correspondence in parameter information is returned in the process template of functional module, and the state while recovering to move buttoned-up functional module to last time continues operation.
The operation management apparatus of the application program of the embodiment of the present invention, according to the Release priority level of the resource occupation rank of program and functional module, system resource is adjusted, and by using each functional module to solid plate coding, when the shared resource of release function module, preserve the parameter information of this functional module, and according to the parameter information of preserving, recover pent functional module when internal memory is vacant, provide functional module information to preserve and according to the ability of preserving information recovery function module, both reached the object of the low internal memory operation of program, promoted again user's experience.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in storer and by software or the firmware of suitable instruction execution system execution.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: have for data-signal being realized to the discrete logic of the logic gates of logic function, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or feature can be with suitable mode combinations in any one or more embodiment or example.
Although illustrated and described embodiments of the invention, those having ordinary skill in the art will appreciate that: in the situation that not departing from principle of the present invention and aim, can carry out multiple variation, modification, replacement and modification to these embodiment, scope of the present invention is limited by claim and equivalent thereof.

Claims (12)

1. an operation management method for application program, is characterized in that, comprises the following steps:
Detect the current shared stock number of application program, wherein, described application program has at least one functional module;
According to the current shared stock number of described application program, obtain the resource occupation rank of described application program; And
According to the resource occupation rank of described application program, the shared resource of described at least one functional module is adjusted with release portion resource.
2. method according to claim 1, it is characterized in that, described functional module is a plurality of, and functional module has Release priority level separately described in each, describedly according to the resource occupation rank of described application program, the shared resource of described at least one functional module is adjusted with release portion resource and is specifically comprised:
According to described Release priority level and described resource occupation rank, the shared resource of at least part of functional module in described a plurality of functional modules is discharged.
3. method according to claim 2, is characterized in that, wherein,
When the current shared stock number of described application program is greater than the first predetermined threshold value and is less than the second predetermined threshold value, the resource occupation rank of described application program is first resource occupancy level;
When the current shared stock number of described application program is greater than described the second predetermined threshold value, the resource occupation rank of described application program is Secondary resource occupancy level; And
When the current shared stock number of described application program is less than described the first predetermined threshold value, the resource occupation rank of described application program is information resources occupancy level.
4. method according to claim 3, it is characterized in that, described Release priority level comprises inessential Release priority level and time necessary Release priority level, describedly according to Release priority level and resource occupation rank, the shared resource of at least part of functional module in described a plurality of functional modules is discharged specifically and is comprised:
If the resource occupation rank of described application program is first resource occupancy level, close the functional module of described inessential Release priority level correspondence, to discharge the shared resource of functional module of described inessential Release priority level correspondence; And
If the resource occupation rank of described application program is Secondary resource occupancy level, close the functional module of described inessential Release priority level and described necessary Release priority level correspondence, to discharge the shared resource of functional module of described inessential Release priority level and described necessary Release priority level correspondence.
5. according to the method described in claim 1-4 any one, it is characterized in that, after shuts functional module, also comprise:
Obtain the parameter information of the described functional module of closing, and record described parameter information.
6. method according to claim 5, is characterized in that, also comprises:
When the resource occupation rank of described application program is information resources occupancy level, according to the described parameter information of record, recover buttoned-up described functional module.
7. an operation management apparatus for application program, is characterized in that, comprising:
Resources measurement module, for detection of the current shared stock number of application program, wherein, described application program has at least one functional module;
Rank acquisition module, for obtaining the resource occupation rank of described application program according to the current shared stock number of described application program; And
Resource adjusting module, for adjusting with release portion resource the shared resource of described at least one functional module according to the resource occupation rank of described application program.
8. device according to claim 7, it is characterized in that, described functional module is a plurality of, and functional module has Release priority level separately described in each, described resource adjusting module is also for discharging the shared resource of at least part of functional module of described a plurality of functional modules according to described Release priority level and described resource occupation rank.
9. device according to claim 8, is characterized in that, wherein,
When the current shared stock number of described application program is greater than the first predetermined threshold value and is less than the second predetermined threshold value, the resource occupation rank of described application program is first resource occupancy level;
When the current shared stock number of described application program is greater than described the second predetermined threshold value, the resource occupation rank of described application program is Secondary resource occupancy level; And
When the current shared stock number of described application program is less than described the first predetermined threshold value, the resource occupation rank of described application program is information resources occupancy level.
10. device according to claim 9, is characterized in that, described Release priority level comprises inessential Release priority level and time necessary Release priority level, described resource adjusting module also for:
When the resource occupation rank of described application program is first resource occupancy level, close the functional module of described inessential Release priority level correspondence, to discharge the shared resource of functional module of described inessential Release priority level correspondence; And
When the resource occupation rank of described application program is Secondary resource occupancy level, close the functional module of described inessential Release priority level and described necessary Release priority level correspondence, to discharge the shared resource of functional module of described inessential Release priority level and described necessary Release priority level correspondence.
11. according to the device described in claim 7-10 any one, it is characterized in that, also comprises:
Logging modle, for after shuts functional module, obtains the parameter information of the described functional module of closing, and records described parameter information.
12. devices according to claim 11, is characterized in that, also comprise:
Recover module, while being information resources occupancy level for the resource occupation rank when described application program, according to the described parameter information of record, recover buttoned-up described functional module.
CN201310690503.1A 2013-12-16 2013-12-16 Running management method and device for application program Pending CN103645955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310690503.1A CN103645955A (en) 2013-12-16 2013-12-16 Running management method and device for application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310690503.1A CN103645955A (en) 2013-12-16 2013-12-16 Running management method and device for application program

Publications (1)

Publication Number Publication Date
CN103645955A true CN103645955A (en) 2014-03-19

Family

ID=50251176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310690503.1A Pending CN103645955A (en) 2013-12-16 2013-12-16 Running management method and device for application program

Country Status (1)

Country Link
CN (1) CN103645955A (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927230A (en) * 2014-03-25 2014-07-16 优视科技有限公司 Memory usage feedback method and device
CN104461742A (en) * 2014-12-15 2015-03-25 北京奇虎科技有限公司 Method and device for optimizing computing equipment
CN104536907A (en) * 2015-01-26 2015-04-22 联想(北京)有限公司 Memory cleaning method and electronic equipment
CN104572264A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Application running control method and mobile terminal equipment
CN105224469A (en) * 2014-06-16 2016-01-06 陈宏达 Active Memory Storage
CN106155809A (en) * 2015-04-16 2016-11-23 北京智谷睿拓技术服务有限公司 Resource adjusting method and device
CN106326137A (en) * 2015-07-02 2017-01-11 腾讯科技(深圳)有限公司 Memory optimization method and apparatus, and user equipment
CN106371897A (en) * 2015-07-20 2017-02-01 青岛海信移动通信技术股份有限公司 Method and device for optimizing memory of intelligent mobile phone
CN106776030A (en) * 2016-12-21 2017-05-31 维沃移动通信有限公司 The method and mobile terminal of a kind of dynamic managing internal memory
CN106843952A (en) * 2017-01-13 2017-06-13 百度在线网络技术(北京)有限公司 Update the method and apparatus of functional module in application
CN107148072A (en) * 2017-04-27 2017-09-08 上海斐讯数据通信技术有限公司 The acquisition methods and system of a kind of target resource parameter of intelligent terminal application
CN107204967A (en) * 2016-03-18 2017-09-26 阿里巴巴集团控股有限公司 Resources regulation method and device during safe physical examination
WO2017185263A1 (en) * 2016-04-27 2017-11-02 华为技术有限公司 Memory reclaiming method and apparatus
CN107390670A (en) * 2017-06-27 2017-11-24 深圳市爱培科技术股份有限公司 Android system resource control method, storage medium and intelligent terminal
CN107741880A (en) * 2017-10-26 2018-02-27 广东欧珀移动通信有限公司 Processor control method and related product
CN107861813A (en) * 2017-10-26 2018-03-30 广东欧珀移动通信有限公司 Processor control method and related product
CN107908462A (en) * 2014-12-31 2018-04-13 广东欧珀移动通信有限公司 Control the method and mobile terminal device and related media production of application operation
CN109101324A (en) * 2017-06-20 2018-12-28 阿里巴巴集团控股有限公司 Method of adjustment, operating system and the AR equipment of application state
CN109117263A (en) * 2017-06-23 2019-01-01 中兴通讯股份有限公司 A kind of method and device of user terminal memory release
CN109669781A (en) * 2018-12-29 2019-04-23 联想(北京)有限公司 Data processing method and system
WO2019137173A1 (en) * 2018-01-10 2019-07-18 Oppo广东移动通信有限公司 Resource management method, mobile terminal and computer-readable storage medium
CN112306681A (en) * 2020-10-27 2021-02-02 中思博安科技(北京)有限公司 Resource control method and device and electronic equipment
CN113076193A (en) * 2021-03-26 2021-07-06 北京车和家信息技术有限公司 Memory optimization method and device and computer readable storage medium
CN114416208A (en) * 2022-01-24 2022-04-29 杭州迪普科技股份有限公司 Application program adjusting method and device, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020016812A1 (en) * 2000-07-28 2002-02-07 Michihiro Uchishiba Method for automatically imparting reserve resource to logical partition and logical partitioned computer system
CN1573702A (en) * 2003-05-22 2005-02-02 松下电器产业株式会社 Resource management device, resource management method and recording medium
CN101103335A (en) * 2005-03-28 2008-01-09 三菱电机株式会社 Application management device and storage medium containing its software
CN102170625A (en) * 2010-02-26 2011-08-31 中国移动通信集团公司 Method and device for realizing PCC (Policy and Charging Control) policy
CN102510422A (en) * 2011-10-09 2012-06-20 惠州Tcl移动通信有限公司 Mobile terminal and method for regulating operating load thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020016812A1 (en) * 2000-07-28 2002-02-07 Michihiro Uchishiba Method for automatically imparting reserve resource to logical partition and logical partitioned computer system
CN1573702A (en) * 2003-05-22 2005-02-02 松下电器产业株式会社 Resource management device, resource management method and recording medium
CN101103335A (en) * 2005-03-28 2008-01-09 三菱电机株式会社 Application management device and storage medium containing its software
CN102170625A (en) * 2010-02-26 2011-08-31 中国移动通信集团公司 Method and device for realizing PCC (Policy and Charging Control) policy
CN102510422A (en) * 2011-10-09 2012-06-20 惠州Tcl移动通信有限公司 Mobile terminal and method for regulating operating load thereof

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927230B (en) * 2014-03-25 2017-03-29 优视科技有限公司 A kind of feedback method and device of internal memory behaviour in service
CN103927230A (en) * 2014-03-25 2014-07-16 优视科技有限公司 Memory usage feedback method and device
CN105224469A (en) * 2014-06-16 2016-01-06 陈宏达 Active Memory Storage
CN104461742A (en) * 2014-12-15 2015-03-25 北京奇虎科技有限公司 Method and device for optimizing computing equipment
CN107908462B (en) * 2014-12-31 2022-01-25 Oppo广东移动通信有限公司 Method for controlling application operation, mobile terminal equipment and related medium product
CN104572264A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Application running control method and mobile terminal equipment
CN107908462A (en) * 2014-12-31 2018-04-13 广东欧珀移动通信有限公司 Control the method and mobile terminal device and related media production of application operation
CN104536907A (en) * 2015-01-26 2015-04-22 联想(北京)有限公司 Memory cleaning method and electronic equipment
CN106155809A (en) * 2015-04-16 2016-11-23 北京智谷睿拓技术服务有限公司 Resource adjusting method and device
CN106326137B (en) * 2015-07-02 2020-09-22 腾讯科技(深圳)有限公司 Memory optimization method and device and user equipment
CN106326137A (en) * 2015-07-02 2017-01-11 腾讯科技(深圳)有限公司 Memory optimization method and apparatus, and user equipment
CN106371897A (en) * 2015-07-20 2017-02-01 青岛海信移动通信技术股份有限公司 Method and device for optimizing memory of intelligent mobile phone
CN107204967A (en) * 2016-03-18 2017-09-26 阿里巴巴集团控股有限公司 Resources regulation method and device during safe physical examination
WO2017185263A1 (en) * 2016-04-27 2017-11-02 华为技术有限公司 Memory reclaiming method and apparatus
CN107912063B (en) * 2016-04-27 2021-05-18 华为技术有限公司 Memory recovery method and device
US10901890B2 (en) 2016-04-27 2021-01-26 Huawei Technologies Co., Ltd. Memory reclaiming method and apparatus
CN107912063A (en) * 2016-04-27 2018-04-13 华为技术有限公司 A kind of method for recovering internal storage and device
CN106776030A (en) * 2016-12-21 2017-05-31 维沃移动通信有限公司 The method and mobile terminal of a kind of dynamic managing internal memory
CN106843952A (en) * 2017-01-13 2017-06-13 百度在线网络技术(北京)有限公司 Update the method and apparatus of functional module in application
CN107148072B (en) * 2017-04-27 2020-12-18 华讯高科股份有限公司 Method and system for acquiring target resource parameters of intelligent terminal application
CN107148072A (en) * 2017-04-27 2017-09-08 上海斐讯数据通信技术有限公司 The acquisition methods and system of a kind of target resource parameter of intelligent terminal application
CN109101324A (en) * 2017-06-20 2018-12-28 阿里巴巴集团控股有限公司 Method of adjustment, operating system and the AR equipment of application state
CN109117263A (en) * 2017-06-23 2019-01-01 中兴通讯股份有限公司 A kind of method and device of user terminal memory release
CN109117263B (en) * 2017-06-23 2023-08-15 中兴通讯股份有限公司 Method and device for releasing memory of user terminal
CN107390670A (en) * 2017-06-27 2017-11-24 深圳市爱培科技术股份有限公司 Android system resource control method, storage medium and intelligent terminal
CN107861813A (en) * 2017-10-26 2018-03-30 广东欧珀移动通信有限公司 Processor control method and related product
CN107741880A (en) * 2017-10-26 2018-02-27 广东欧珀移动通信有限公司 Processor control method and related product
CN107741880B (en) * 2017-10-26 2021-04-23 Oppo广东移动通信有限公司 Processor control method and related product
CN107861813B (en) * 2017-10-26 2022-01-14 Oppo广东移动通信有限公司 Processor control method and related product
WO2019137173A1 (en) * 2018-01-10 2019-07-18 Oppo广东移动通信有限公司 Resource management method, mobile terminal and computer-readable storage medium
CN109669781A (en) * 2018-12-29 2019-04-23 联想(北京)有限公司 Data processing method and system
CN112306681A (en) * 2020-10-27 2021-02-02 中思博安科技(北京)有限公司 Resource control method and device and electronic equipment
CN113076193A (en) * 2021-03-26 2021-07-06 北京车和家信息技术有限公司 Memory optimization method and device and computer readable storage medium
CN113076193B (en) * 2021-03-26 2024-03-26 北京车和家信息技术有限公司 Memory optimization method, device and computer readable storage medium
CN114416208A (en) * 2022-01-24 2022-04-29 杭州迪普科技股份有限公司 Application program adjusting method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN103645955A (en) Running management method and device for application program
US8352701B2 (en) Method for utilizing a memory interface to control partitioning of a memory module
CN106125896A (en) A kind of application program freezing method and mobile terminal
US8856488B2 (en) Method for utilizing a memory interface to control partitioning of a memory module
CN106528216A (en) Method for starting application and terminal
KR20130021625A (en) Operating method and portable device supporting the same
WO2013189236A9 (en) Method and device for updating software in mobile terminal
CN104076903A (en) Postponing suspend
CN101952808A (en) Extended utilization area for a memory device
CN105224439A (en) Method and device for detecting CPU occupancy rate of terminal APP and terminal
CN104749945A (en) Screen light-up method and device and intelligent watch
CN106802772B (en) Data recovery method and device and solid state disk
US20110119430A1 (en) Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage sysem using the same
CN103827820A (en) Managing data usage of a computing device
CN104808767A (en) Terminal control method
CN106250092A (en) A kind of terminal screen changing method and device
CN106227530A (en) A kind of configuration information pushes method and the mobile terminal of authority
CN104808766A (en) Terminal
CN103870319A (en) Method and device for information processing and electronic device
CN106227569A (en) A kind of application upgrade method and terminal unit
CN101477534B (en) File management method and apparatus for implementing balance abrasion of flash memory
CN105100505A (en) Method and system for assigning battery level to terminal applications
CN113961517A (en) File system management method, electronic device and storage medium
US20160147630A1 (en) Method and system of detecting abnormal power consumption
CN105204801A (en) Information processing method and electronic equipment

Legal Events

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

Application publication date: 20140319