WO2017206403A1 - 一种内存优化方法、优化装置以及终端 - Google Patents

一种内存优化方法、优化装置以及终端 Download PDF

Info

Publication number
WO2017206403A1
WO2017206403A1 PCT/CN2016/100689 CN2016100689W WO2017206403A1 WO 2017206403 A1 WO2017206403 A1 WO 2017206403A1 CN 2016100689 W CN2016100689 W CN 2016100689W WO 2017206403 A1 WO2017206403 A1 WO 2017206403A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
memory
terminal
preset
threshold
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.)
Ceased
Application number
PCT/CN2016/100689
Other languages
English (en)
French (fr)
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Publication of WO2017206403A1 publication Critical patent/WO2017206403A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a memory optimization method, an optimization apparatus, and a terminal.
  • the application of various intelligent operating systems on mobile terminals makes the functions of mobile terminals based on various types of applications more and more abundant, but it is followed by the requirements of mobile terminals.
  • the memory is also getting larger and larger, and because the configuration of the mobile terminal is not uniform, with the upgrade of the intelligent operating system, the memory occupied by the intelligent operating system in the mobile terminal will further increase.
  • the application starts, because the process initialization will occupy a large amount of memory in the foreground, it will still occupy a certain space in the background after entering the stable running period, especially when multiple applications are running in the mobile terminal at the same time.
  • the memory size of the existing mobile terminal is different. If the mobile terminal cannot satisfy the memory space occupied by the application installation, the memory space occupied by the runtime, etc., the memory shortage may occur, and once the mobile terminal has insufficient memory, This can cause problems such as stuck or crashed applications, incomplete page loading, and more.
  • the freeze application technology mainly optimizes the memory space resources occupied by the running application, but does not comprehensively optimize the entire built-in storage of the mobile terminal, which reduces the efficient use of the memory optimization processing of the mobile terminal, Conducive to the improvement of user experience.
  • the embodiment of the invention provides a memory optimization method, an optimization device and a terminal, and the application freezing technology can realize double optimization of running memory and built-in storage, thereby improving user experience.
  • the first aspect of the present invention provides a memory optimization method, which may include:
  • the terminal After the terminal freezes the application, the terminal monitors whether the target parameter meets the preset threshold in real time, and the target parameter includes at least a freeze time parameter or a memory parameter;
  • the terminal prompts the user to perform corresponding operations on the application.
  • the monitoring, by the terminal, whether the current condition meets the preset threshold includes:
  • the terminal monitors whether the occupied memory of the application is greater than a preset occupied memory threshold; and/or,
  • the terminal monitors in real time whether the current remaining memory is less than the first preset remaining memory threshold.
  • the terminal prompts the user to perform the application
  • the prompt content corresponding to the corresponding operation includes compressing the application data and/or cleaning the application data and/or uninstalling the application.
  • the prompt content is compressed application data
  • the prompt content is to clear the application data
  • the prompt content is an uninstall application.
  • a second aspect of the present invention provides an optimization apparatus, which may include:
  • the monitoring module is configured to monitor, in real time, whether the target parameter meets a preset threshold after the terminal freezes the application, and the target parameter includes at least a freeze time parameter or a memory parameter;
  • the prompt module is set to prompt the user to perform corresponding operations on the application when the target parameter meets the preset threshold.
  • the monitoring module includes:
  • a first monitoring unit configured to monitor whether the freeze time of the application exceeds a preset optimization time threshold in real time
  • a second monitoring unit configured to monitor whether the occupied memory of the application is greater than a preset occupied memory threshold
  • the third monitoring unit is configured to monitor in real time whether the current remaining memory is less than a first preset remaining memory threshold.
  • the prompt content corresponding to the prompting module includes Compress application data and/or clean application data and/or uninstall applications.
  • the prompt content is compressed application data
  • the prompt content is to clear the application data
  • the prompt content is an uninstall application.
  • a third aspect of the present invention provides a terminal comprising the optimization device of the second aspect of the above embodiment.
  • the terminal can monitor whether the target parameter meets the preset threshold in real time, and the target parameter includes at least a freeze time parameter or a memory parameter. If the target parameter meets the preset threshold, the terminal may prompt the user to The application performs the appropriate action. Therefore, by setting the freeze time of the application and the threshold of the memory dimension of the terminal, real-time monitoring of the frozen application and terminal memory related information can be realized respectively, and the user can be prompted to process the frozen application according to the monitoring result.
  • the present invention can further manage the frozen application, thereby optimizing the built-in storage of the terminal, thereby improving the user experience.
  • FIG. 1 is a schematic diagram of an embodiment of a memory optimization method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of another embodiment of a memory optimization method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of another embodiment of a memory optimization method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another embodiment of a memory optimization method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an embodiment of an optimization apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another embodiment of an optimization apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the embodiment of the invention provides a memory optimization method, an optimization device and a terminal, which are used to implement dual optimization of the running memory and the built-in storage of the terminal, thereby improving the user experience.
  • an embodiment of the memory optimization method in the embodiment of the present invention includes:
  • step 102 After the terminal freezes the application, the terminal monitors whether the target parameter meets the preset threshold in real time, if not, step 102 is performed, and if yes, step 103 is performed;
  • the terminal in this embodiment has a freeze application function
  • the terminal may include, but is not limited to, a smart phone, a tablet computer, a personal digital assistant PDA, and the like.
  • Freezing the application means turning the application into a suspended state.
  • the user can choose to uninstall the application for a period of time or not sure.
  • the application with the reserved value is frozen, and the frozen application does not perform operations such as background startup, which can reduce the consumption of memory resources of the terminal.
  • the terminal freezes the application the terminal can monitor whether the target parameter satisfies in advance.
  • a threshold is set, and the target parameter may include at least a freeze time parameter or a memory parameter.
  • freeze time parameter in this embodiment may be the freeze time of the frozen application. After the definition here, it will not be repeatedly defined later.
  • the memory parameter in this embodiment may be a frozen application.
  • the memory occupied by the program can also be used for the memory usage of the terminal, which is not limited here.
  • the terminal may not perform other operations, so that the application remains in a frozen state.
  • the terminal prompts the user to perform corresponding operations on the application.
  • the terminal may prompt the user to perform corresponding operations on the application.
  • the prompting content that the terminal prompts the user to perform the corresponding operation on the application program may include compressing the application data and/or clearing the application data and/or uninstalling the application, which is not limited herein.
  • the display interface may display one or more of compressing the application data, clearing the application data, and uninstalling the application, so that the user may display according to the display interface.
  • the prompt content selects one of the operation modes to operate the application, and the terminal can process the application according to the operation mode selected by the user to optimize the memory.
  • the display interface may also have a cancel option to satisfy the user's purpose of not processing the application. For example, if the user installs the LeTV sports application in the terminal and freezes the music, the display interface may display the compressed application data, clean the application data, and uninstall the application when the terminal detects that the target parameter meets the preset threshold.
  • the user can optimize the memory by selecting compression application data, cleaning application data, and uninstalling the application to save memory space to different degrees.
  • the user can select to compress the application data, and the terminal can compress the LeTV sports. If the user can choose to clean the application data, the terminal can clean the music data such as the cached data. If the user can choose to uninstall the application, the terminal can The LeTV sports will be uninstalled, of course, the user can also choose to cancel this option, then the frozen LeTV sports will continue to be frozen. Further, in order to facilitate the user to perform operation processing on the frozen application according to the prompt, the prompt may also be set by the user for a certain time interval, so that the terminal can prompt the user at intervals.
  • the prompting mode described above in this embodiment may be another prompting manner, such as a voice prompt, which is not limited herein.
  • the content of the prompt in this embodiment may be set before the terminal is shipped from the factory, or may be set by the user, which is not limited herein.
  • the terminal may perform real-time monitoring on the target parameter. Once the target parameter meets the preset threshold, the terminal may prompt the user to perform corresponding operations on the application, thereby knowing that the application is set by using the application.
  • the freeze time and the threshold of the terminal memory dimension respectively realize real-time monitoring of the frozen application and terminal memory related information, that is, time parameters and memory parameters, and can prompt the user to process the frozen application according to the monitoring result, thereby achieving not only
  • the optimization of the running memory of the terminal can also optimize the built-in storage of the terminal through further management of the frozen application, thereby improving the user experience.
  • the target parameter may include at least a freeze time parameter or a memory parameter
  • the target parameters when the terminal performs real-time monitoring may be different, and are respectively described below:
  • another embodiment of the memory optimization method in the embodiment of the present invention includes:
  • step 201 after the terminal freezes the application, the terminal real-time monitoring whether the application freeze time exceeds the preset optimization time threshold, and if not, step 202 is performed, and if so, step 203 is performed;
  • the terminal can monitor whether the freeze time of the application exceeds the preset optimization time threshold in real time, and the role of the preset optimization time threshold is the application program. After the freeze time exceeds the preset optimization time threshold, the terminal can prompt the user for the application.
  • the terminal may set the preset optimization time threshold before freezing the application, or may set the preset optimization time threshold after freezing the application, that is, when the user selects the application in the terminal.
  • the terminal may prompt the user to set the preset optimization time threshold after the user performs the operation.
  • the freeze time of the application may be frozen regardless of the manner in which the preset optimization time threshold is set. The length of time from the start time to the current time.
  • the preset optimization time thresholds of the multiple applications may be the same or different, that is, one frozen application corresponds to one preset.
  • the time threshold is optimized, which is not limited here.
  • the terminal may not perform other operations, so that the application remains in a frozen state.
  • the terminal prompts the user to perform corresponding operations on the application.
  • the terminal may prompt the user to perform corresponding operations on the application.
  • the terminal after the terminal prompts the user to perform corresponding operations on the application whose freeze time exceeds the preset optimization time threshold, if the user chooses to cancel the corresponding operation, the terminal may no longer serve the frozen application. Repeat the prompt.
  • the target parameter is the freezing time of the application
  • the preset threshold is the preset optimization time threshold
  • the real-time monitoring of the application freezing time may be performed. Effectively understand the frequency of use of the application, help users to judge applications that are not of great value, and help users to optimize the memory of the terminal while allowing better operation of the application selection.
  • another embodiment of the memory optimization method in the embodiment of the present invention includes:
  • the terminal after the terminal freezes the application, the terminal real-time monitoring whether the occupied memory of the application is greater than the preset occupied memory threshold, and if not, executing step 302, and if yes, executing step 303;
  • the terminal can monitor in real time whether the occupied memory of the application is greater than a preset occupied memory threshold, and the preset uses the memory threshold.
  • the function is that after the occupied memory of the application is greater than the preset optimization time threshold, the terminal can prompt the user for the application.
  • the application frozen by the terminal can be uniformly stored in the frozen folder.
  • the terminal can occupy the memory of the terminal, and the terminal can occupy the memory of the frozen folder, that is, The total memory occupied by the frozen application is set by the preset memory threshold.
  • the terminal may not perform other operations, so that the application remains in a frozen state.
  • the terminal prompts the user to perform corresponding operations on the application.
  • the terminal may prompt the user to perform corresponding operations on the application.
  • the terminal may not repeatedly perform corresponding operations on the frozen application in the frozen folder. Tips. It can be understood that, on the basis that the user selects to cancel the corresponding operation, the terminal may still prompt the user to freeze when the occupied memory of the frozen application is again greater than the preset occupied memory threshold to be greater than the preset occupied memory threshold. The application performs the appropriate action.
  • the target parameter is the occupied memory of the application
  • the preset threshold is the preset occupied memory threshold
  • the real-time monitoring of the occupied memory of the application may be performed. Avoid excessive applications being frozen to take up the memory of the terminal.
  • another embodiment of the memory optimization method in the embodiment of the present invention includes:
  • the terminal freezes the application, the terminal real-time monitoring whether the current remaining memory is less than the first preset remaining memory threshold, if not, proceed to step 402, and if so, proceed to step 403;
  • the terminal can monitor in real time whether the current remaining memory is smaller than the first preset remaining memory threshold, and the preset remaining memory threshold.
  • the function is that after the current remaining memory of the terminal is less than the first preset optimization time threshold, the terminal can prompt the user for the frozen application.
  • the memory size of the terminal is different, and the storage capacity is limited, and the terminal may set the first preset remaining memory threshold to optimize the frozen application by processing when the terminal has insufficient memory.
  • Terminal memory It can be understood that the terminal can also monitor the current occupied memory of all applications, and the sum of the current occupied memory and the current remaining memory is all the memory of the terminal, and the terminal can monitor the current remaining memory by monitoring the current occupied memory.
  • the purpose is to perform a preset memory threshold setting for the current occupied memory, and perform real-time monitoring of the current occupied memory based on the preset occupied memory threshold.
  • the current remaining memory threshold and the first pre- A comparison of the remaining memory thresholds is taken as an example.
  • the terminal may not perform other operations, so that the application remains in a frozen state.
  • the terminal prompts the user to perform corresponding operations on the application.
  • the terminal may prompt the user to perform corresponding operations on the application.
  • the content of the prompt in the embodiment may be different for the value of the current remaining memory, and may be expressed as follows:
  • the prompt content is compressed application data
  • the prompt content is to clear the application data
  • the prompt content is an uninstall application.
  • the terminal may prompt the user to select one or more of the compressed application data, the cleaned application data, and the uninstalled application to implement a corresponding operation on the application, but in order to more finely freeze the The application performs a corresponding operation prompt. If the current remaining memory of the terminal is less than the first preset remaining memory threshold, the terminal may further perform interval division under the first preset remaining memory threshold, and increase the second preset remaining memory threshold and the first Setting three preset memory thresholds to compress application data, clear application data, and uninstall application respectively, for example, assume that 5G is set to a first preset remaining memory threshold, and 3G is set to a second preset remaining memory threshold. The 1G is set to the third preset remaining memory threshold.
  • the terminal may prompt the user to compress the application data.
  • the terminal may Prompt the user to clear the application data.
  • the terminal can prompt the user to uninstall.
  • Application that is, in each interval, only one kind of operation instruction can be prompted or canceled, so that the user can perform corresponding operation selection on the application under the condition that the terminal memory allows.
  • the terminal may not repeatedly perform corresponding operations on the frozen application in the frozen folder.
  • the terminal may also repeatedly prompt the user after the user selects the cancel option, so that the user performs corresponding operations on the frozen application or the non-frozen application.
  • the current remaining memory is not less than the first preset remaining memory threshold, and the frozen application can be processed preferentially.
  • the terminal can still prompt the user to perform corresponding operations on the frozen application.
  • the target parameter is the current remaining memory of the terminal
  • the preset threshold is the first preset remaining memory threshold.
  • the terminal is prompted.
  • the memory is insufficient
  • the user is prompted to run out of memory and cannot perform the corresponding operation.
  • the present invention uses the first preset remaining memory threshold to set the current remaining.
  • the real-time monitoring of the memory can prompt the user to perform corresponding operations on the frozen application before the memory of the terminal is insufficient, which not only optimizes the memory of the terminal, but also prompts the terminal to process the frozen application, from the perspective of optimization processing. In summary, this can help users prioritize the processing of frozen applications, effectively reducing the risk of applications with greater value in use.
  • step 201 in the embodiment shown in FIG. 2, step 301 in the embodiment shown in FIG. 2, and step 401 in the embodiment shown in FIG. 4 can be performed simultaneously in combination. It can be combined and executed at the same time, that is, the terminal can perform real-time monitoring on the application freeze time, the occupied memory of the application, and the current remaining memory, but in combination with real-time monitoring, as long as one of them meets the pre- Set the threshold, that is, the application freeze time exceeds the preset optimization time threshold, or the application's occupied memory is greater than the preset occupied memory threshold, or the current remaining memory is less than the first preset remaining memory threshold, the terminal may prompt the user to the application Corresponding operations are performed, and specific implementation methods of the corresponding operations have been described in the embodiments shown in FIG. 2, FIG. 3, and FIG. 4, and details are not described herein again.
  • an embodiment of the optimization device in the embodiment of the present invention includes:
  • the monitoring module 501 is configured to: when the terminal freezes the application, the real-time monitoring target parameter meets a preset threshold, and the target parameter includes at least a freeze time parameter or a memory parameter;
  • the prompting module 502 is configured to prompt the user to perform corresponding operations on the application when the target parameter meets the preset threshold.
  • the monitoring module 500 can perform real-time monitoring on the target parameter.
  • the prompting module 502 can prompt the user to perform corresponding operations on the application, thereby knowing that By setting the freeze time of the application and the threshold of the terminal memory dimension, real-time monitoring of the frozen application and terminal memory related information, that is, time parameters and memory parameters, and prompting the user to process the frozen application according to the monitoring result Therefore, not only the optimization of the running memory of the terminal is realized, but also the optimization of the built-in storage of the terminal can be realized through further management of the frozen application, thereby improving the user experience.
  • FIG. 6 another embodiment of the optimization apparatus in the embodiment of the present invention includes:
  • the module 601 in this embodiment is the same as the module 501 in the embodiment shown in FIG. 5, and the module 602 is the same as the module 502 in the embodiment shown in FIG. 5, and details are not described herein again.
  • the monitoring module 601 may further include:
  • the first monitoring unit 6011 is configured to monitor whether the freeze time of the application exceeds a preset optimization time threshold in real time; and/or,
  • the second monitoring unit 6012 is configured to monitor, in real time, whether the occupied memory of the application is greater than a preset occupied memory threshold; and/or,
  • the third monitoring unit 6013 is configured to monitor in real time whether the current remaining memory is less than a first preset remaining memory threshold.
  • the prompt content corresponding to the prompting module 602 may include compressing application data and/or cleaning application data and/or uninstalling the application.
  • the prompt content when the current remaining memory is less than the first preset remaining memory threshold and greater than or equal to the second preset remaining memory threshold, the prompt content may be compressed application data;
  • the prompt content may be used to clear the application data
  • the prompt content may be an uninstall application.
  • the present embodiment is to specify the function of the monitoring module 601, that is, to embody the target parameters monitored by the monitoring module 601, and to specifically divide the prompt content corresponding to the prompting module 602.
  • the optimized management of the frozen application can be realized, thereby realizing the memory optimization of the terminal, thereby improving the user experience.
  • FIG. 7 is a schematic structural diagram of still another terminal according to an embodiment of the present invention.
  • the terminal 700 in the embodiment of the present invention may be different types of electronic devices, such as: smart phones, tablet computers, palmtop computers, and mobile internet devices, personal digital assistants, media players, smart televisions, smart watches, smart glasses, smart hands. Ring and so on.
  • the terminal 700 in the embodiment of the present invention includes: at least one processor 710, such as a CPU, at least one receiver 713, at least one memory 714, at least one transmitter 715, and at least one communication bus 712.
  • the communication bus 712 is used to implement connection communication between these components.
  • the receiver 713 and the transmitter 715 may be wired transmission ports, or may be wireless devices, for example, including antenna devices for performing data communication with other devices.
  • the memory 714 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the processor 710 can execute the operating system of the terminal 700 and various installed applications, program codes, and the like.
  • each unit described above includes the monitoring module 501 (601) and the prompting module 502 (602).
  • Program code is stored in the memory 714, and the processor 710 can invoke program code stored in the memory 714 via the communication bus 712 to perform related functions.
  • each unit described in FIG. 5 and FIG. 6 for example, the monitoring module 501 (601), the prompting module 502 (602), the first monitoring unit 6011, the second monitoring unit 6012, The third monitoring unit 6013, etc.
  • the memory 714 stores a plurality of instructions that are executed by the processor 710 to implement a memory optimization method. Specifically, after the terminal freezes the application, the processor 710 monitors in real time whether the target parameter meets a preset threshold, and the target parameter includes at least a freeze time parameter or a memory parameter; if yes, the terminal prompts the user to The application performs the appropriate action.
  • the processor 710 monitors in real time whether the freeze time of the application exceeds a preset optimization time threshold; and/or the processor 710 monitors in real time whether the occupied memory of the application is greater than a pre- The memory threshold is set; and/or the processor 710 monitors in real time whether the current remaining memory is less than the first preset remaining memory threshold.
  • the prompting content of the processor 710 prompting the user to perform corresponding operations on the application includes compressing application data and/or cleaning application data and/or uninstalling the application.
  • the prompt content when the current remaining memory is less than the first preset remaining memory threshold and greater than or equal to a second preset remaining memory threshold, the prompt content is the compressed application data; When the current remaining memory is less than the second preset remaining memory threshold and greater than or equal to the third preset remaining memory threshold, the prompt content is the cleaning application data; when the current remaining memory is smaller than the third When the remaining memory threshold is preset, the prompt content is the uninstall application.
  • the processor 710 may refer to the description of related steps in the corresponding embodiments in FIG. 1 to FIG. 4, and details are not described herein.
  • the terminal provided in this embodiment has all the beneficial effects of the optimization device by setting the optimization device in any of the above embodiments, and details are not described herein again.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种内存优化方法,用于实现对终端的运行内存和内置存储的双优化。方法包括:当终端冻结应用程序后,终端实时监测目标参数是否满足预设阈值(101),目标参数至少包括冻结时间参数或内存参数;若是,则终端提示用户对应用程序进行相应的操作(103)。一种优化装置以及终端,可以通过对应用程序的冻结时间以及终端的内存维度提示用户对冻结的应用程序进行相应的操作,以节省存储空间资源,从而在优化运行内存的同时,也可以优化内置存储。

Description

一种内存优化方法、优化装置以及终端
本申请要求于2016年5月31日提交中国专利局,申请号为201610377405.6、发明名称为“一种内存优化方法、优化装置以及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域,尤其涉及一种内存优化方法、优化装置以及终端。
背景技术
随着移动终端的日益普及与发展,移动终端成为了人们生活与工作中的重要部分。
目前,各类智能操作系统在诸如手机、平板电脑、车载等移动终端上的应用,使得移动终端基于各类应用程序的功能也越来越丰富,但随之而来的是移动终端所需的内存也越来越大,而由于移动终端的配置不统一,随着智能操作系统的升级,智能操作系统在移动终端占用的内存也会进一步增加。此外,当应用程序启动时,由于进程初始化会在前台占用大量内存,进入稳定运行期后仍会在后台占用一定的空间,尤其是当移动终端中同时运行多个应用程序时。然而,现有移动终端的内存大小不一,若移动终端无法满足应用程序安装时占用的内存空间、运行时占用的内存空间等,将会出现内存不足的情况,而一旦移动终端的内存不足,将会导致应用程序卡顿或崩溃、页面加载不全等问题。
为了保证应用程序运行的流畅性,并有效利用移动终端的内存,需要对移动终端的内存做优化处理。现有技术中,冻结应用技术主要是针对运行的应用程序所占用的内存空间资源进行优化处理,但并不能综合优化移动终端整个的内置存储,这降低了移动终端内存优化处理的高效利用,不利于用户体验的提高。
因此,如何对移动终端的内存进行高效优化,提高用户体验,是本领域技术人员亟待解决的问题。
发明内容
本发明实施例提供了一种内存优化方法、优化装置以及终端,结合应用冻结技术能够实现对运行内存和内置存储的双优化,提高了用户体验。
有鉴于此,本发明第一方面提供一种内存优化方法,可包括:
当终端冻结应用程序后,终端实时监测目标参数是否满足预设阈值,目标参数至少包括冻结时间参数或内存参数;
若是,则终端提示用户对应用程序进行相应的操作。
结合本发明实施例的第一方面,在本发明实施例的第一方面的第一种实施方式中,终端监测当前条件是否满足预设阈值包括:
终端实时监测应用程序的冻结时间是否超出预设优化时间阈值;和/或,
终端实时监测应用程序的占用内存是否大于预设占用内存阈值;和/或,
终端实时监测当前剩余内存是否小于第一预设剩余内存阈值。
结合本发明实施例的第一方面,或本发明实施例的第一方面的第一种实施方式,在本发明实施例的第一方面的第二种实施方式中,终端提示用户对应用程序进行相应的操作对应的提示内容包括压缩应用数据和/或清理应用数据和/或卸载应用。
结合本发明实施例的第一方面的第二种实施方式,在本发明实施例的第一方面的第三种实施方式中,当当前剩余内存小于第一预设剩余内存阈值,且大于或等于第二预设剩余内存阈值时,提示内容为压缩应用数据;
当当前剩余内存小于第二预设剩余内存阈值,且大于或等于第三预设剩余内存阈值时,提示内容为清理应用数据;
当当前剩余内存小于第三预设剩余内存阈值时,提示内容为卸载应用。
本发明第二方面提供一种优化装置,可包括:
监测模块,设置为当终端冻结应用程序后,实时监测目标参数是否满足预设阈值,目标参数至少包括冻结时间参数或内存参数;
提示模块,设置为当目标参数满足预设阈值时,则提示用户对应用程序进行相应的操作。
结合本发明实施例的第二方面,在本发明实施例的第二方面的第一种实施方式中,监测模块包括:
第一监测单元,设置为实时监测应用程序的冻结时间是否超出预设优化时间阈值;和/或,
第二监测单元,设置为实时监测应用程序的占用内存是否大于预设占用内存阈值;和/或,
第三监测单元,设置为实时监测当前剩余内存是否小于第一预设剩余内存阈值。
结合本发明实施例的第二方面,或本发明实施例的第二方面的第一种实施方式,在本发明实施例的第二方面的第二种实施方式中,提示模块对应的提示内容包括压缩应用数据和/或清理应用数据和/或卸载应用。
结合本发明实施例的第二方面的第二种实施方式,在本发明实施例的第二方面的第三种实施方式中,当当前剩余内存小于第一预设剩余内存阈值,且大于或等于第二预设剩余内存阈值时,提示内容为压缩应用数据;
当当前剩余内存小于第二预设剩余内存阈值,且大于或等于第三预设剩余内存阈值时,提示内容为清理应用数据;
当当前剩余内存小于第三预设剩余内存阈值时,提示内容为卸载应用。
本发明第三方面提供一种终端,包括上述实施例的第二方面的优化装置。
从以上技术方案可以看出,本发明实施例具有以下优点:
本实施例中,当终端冻结应用程序后,终端可以实时监测目标参数是否满足预设阈值,该目标参数至少包括冻结时间参数或内存参数,若目标参数满足预设阈值,那么终端可以提示用户对应用程序进行相应的操作。由此可知,通过设置应用程序的冻结时间、终端的内存维度的阈值可以分别实现对冻结的应用程序、终端内存相关信息的实时监测,并可以根据监测结果提示用户对冻结的应用程序进行处理,相比于现有技术,除对应用程序进行冻结以优化终端的运行内存之外,本发明还可以进一步对冻结的应用程序进行管理,从而实现对终端内置存储的优化,进而提高用户体验。
附图说明
图1为本发明实施例中内存优化方法一个实施例示意图;
图2为本发明实施例中内存优化方法另一实施例示意图;
图3为本发明实施例中内存优化方法另一实施例示意图;
图4为本发明实施例中内存优化方法另一实施例示意图;
图5为本发明实施例中优化装置一个实施例示意图;
图6为本发明实施例中优化装置另一实施例示意图;
图7为本发明实施例中一种终端的结构示意图。
具体实施方式
本发明实施例提供了一种内存优化方法、优化装置以及终端,用于实现对终端运行内存和内置存储的双优化,进而提高用户体验。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
为便于理解,下面对本发明实施例中的具体流程进行描述,请参阅图1,本发明实施例中内存优化方法一个实施例包括:
101、当终端冻结应用程序后,终端实时监测目标参数是否满足预设阈值,若否,则执行步骤102,若是,则执行步骤103;
本实施例中,本实施例中的终端具有冻结应用程序功能,该终端可以包括但不限于智能手机、平板电脑、个人数字助理PDA等。当终端安装有多个应用程序时,用户可以选择在终端将部分应用程序进行冻结,冻结应用程序是指将应用程序变为假死状态,用户可以选择将一段时间不用的或者不清楚该应用程序卸载与保留价值的应用程序进行冻结处理,冻结后的应用程序不会再进行后台启动等操作,可以减少终端运行内存资源的消耗。具体的,应用程序冻结后,仍会占据终端的部分内置存储,且冻结的应用程序若未解冻,将一直处于假死状态,从而,当终端冻结应用程序后,终端可以实时监测目标参数是否满足预设阈值,该目标参数可以至少包括冻结时间参数或内存参数。
可以理解的是,本实施例中的冻结时间参数可以为已冻结的应用程序的冻结时间,此处限定之后,在后面即不再重复限定,本实施例中的内存参数可以为已冻结的应用程序的占用内存,也可以为终端的内存使用情况,具体此处不做限定。
102、执行其它流程;
若终端实时监测目标参数不满足预设阈值,则终端可以不进行其它操作,使得应用程序维持在冻结状态。
103、终端提示用户对应用程序进行相应的操作。
若终端实时监测目标参数满足预设阈值,则终端可以提示用户对应用程序进行相应的操作。
本实施例中,终端提示用户对所应用程序进行相应的操作对应的提示内容可以包括压缩应用数据和/或清理应用数据和/或卸载应用,具体此处不做限定。
具体的,在实际应用中,若终端以显示的方式对用户进行提示,那么该显示界面可以显示压缩应用数据、清理应用数据和卸载应用中的一个或多个,从而使得用户可以根据显示界面显示的提示内容选择其中一种操作方式对应用程序进行操作,终端则可以根据用户选择的操作方式对应用程序进行处理以优化内存。对应的,该显示界面也可以有取消选项,以满足用户对应用程序不做任何处理的目的。例如,假设用户在终端安装有乐视体育应用程序,并将该乐视体育进行了冻结,那么在终端监测到目标参数满足预设阈值时,显示界面可以诸如显示压缩应用数据、清理应用数据、卸载应用、取消四个选项,以提示用户选择其中一个选项对该乐视体育进行相应的操作,用户可以通过选择压缩应用数据、清理应用数据、卸载应用以不同程度的节省内存空间达到优化内存的目的,若用户可以选择压缩应用数据,那么终端可以将该乐视体育进行压缩,若用户可以选择清理应用数据,那么终端可以将该乐视体育的诸如缓存数据进行清理,若用户可以选择卸载应用,那么终端可以将该乐视体育进行卸载,当然用户也可以选择取消这个选项,那么冻结的乐视体育将继续维持在冻结状态。进一步的,为了方便用户根据提示对冻结的应用程序进行操作处理,该提示也可以由用户设定一定的时间间隔,使得终端可以间隔对用户进行提示。
需要说明的是,本实施例中上述说明的提示方式方式除了显示方式之外,在实际应用中,还可以是其它提示方式,如语音提示,具体此处不做限定。
可以理解的的是,本实施例中的提示内容可以在终端出厂前进行设定,也可以由用户自行设定,具体此处不做限定。
本实施例中,当终端冻结应用程序后,终端可以对目标参数进行实时监测,一旦目标参数满足预设阈值,则终端可以提示用户对应用程序进行相应的操作,由此可知,通过设置应用程序的冻结时间、终端内存维度的阈值分别实现对冻结的应用程序、终端内存相关信息,即时间参数、内存参数的实时监测,并可以根据监测结果提示用户对冻结的应用程序进行处理,从而不仅实现了对终端运行内存的优化,还可以通过对冻结的应用程序的进一步管理,实现对终端内置存储的优化,进而提高了用户体验。
需要说明的是,本实施例中由于目标参数可以至少包括冻结时间参数或内存参数,从而终端进行实时监测时的目标参数可以有所差异,下面分别进行说明:
请参阅图2,本发明实施例中内存优化方法另一实施例包括:
201、当终端冻结应用程序后,终端实时监测应用程序的冻结时间是否超出预设优化时间阈值,若否,则执行步骤202,若是,则执行步骤203;
基于图1所示实施例中的步骤101说明的内容,本实施例中,终端可以实时监测应用程序的冻结时间是否超出预设优化时间阈值,该预设优化时间阈值的作用即为应用程序的冻结时间超过预设优化时间阈值后,终端可以针对该应用程序对用户进行提示。
具体的,在实际应用中,终端可以在冻结应用程序之前对预设优化时间阈值进行设定,也可以在冻结应用程序之后对预设优化时间阈值进行设定,即当用户在终端选择将应用程序进行冻结时,终端可以在用户执行该操作后提示用户进行预设优化时间阈值的设定,无论以何种方式进行预设优化时间阈值的设定,应用程序的冻结时间均可以为冻结的开始时间至当前时间的时长。
可以理解的是,本实施例中,若终端冻结的应用程序为多个,那么这多个应用程序对应的预设优化时间阈值可以一致,也可以不同,即一个冻结的应用程序对应一个预设优化时间阈值,具体此处不做限定。
202、执行其它流程;
若终端实时监测应用程序的冻结时间没有超过预设优化时间阈值,则终端可以不进行其它操作,使得应用程序维持在冻结状态。
203、终端提示用户对应用程序进行相应的操作。
基于图1所示实施例的步骤103说明的内容,本实施例中,若终端实时监测应用程序的冻结时间超过预设优化时间阈值,则终端可以提示用户对应用程序进行相应的操作。
进一步的,本实施例中,当终端提示用户对冻结时间超过预设优化时间阈值的应用程序进行相应的操作后,若用户选择取消执行相应的操作,那么终端针对该冻结的应用程序可以不再重复进行提示。
基于图1所示实施例说明的有益效果,本实施例中,目标参数即为应用程序的冻结时间,预设阈值即为预设优化时间阈值,通过对应用程序的冻结时间进行实时监测,可以有效了解该应用程序的使用频率,帮助用户判断没有太大使用价值的应用程序,有利于用户能够优化终端内存的同时可以对应用程序选择进行较佳的操作处理。
请参阅图3,本发明实施例中内存优化方法另一实施例包括:
301、当终端冻结应用程序后,终端实时监测应用程序的占用内存是否大于预设占用内存阈值,若否,则执行步骤302,若是,则执行步骤303;
基于图1所示实施例中的步骤101说明的内容,本实施例中,当终端冻结应用程序后,终端可以实时监测应用程序的占用内存是否大于预设占用内存阈值,该预设占用内存阈值的作用即为应用程序的占用内存大于预设优化时间阈值后,终端可以针对该应用程序对用户进行提示。
具体的,在实际应用中,终端冻结的应用程序可以统一存放至冻结文件夹,为了避免冻结文件夹中冻结较多的应用程序占用终端的内存,终端可以对该冷冻文件夹的占用内存,即冻结的应用程序总共所占有的内存进行预设占用内存阈值的设定。
302、执行其它流程;
若终端实时监测应用程序的占用内存不大于预设占用内存阈值,则终端可以不进行其它操作,使得应用程序维持在冻结状态。
303、终端提示用户对应用程序进行相应的操作。
基于图1所示实施例的步骤103说明的内容,本实施例中,若终端实时监测应用程序的占用内存大于预设占用内存阈值,则终端可以提示用户对应用程序进行相应的操作。
进一步的,本实施例中,当终端提示用户对应用程序进行相应的操作后,若用户选择取消执行相应的操作,那么终端针对该冻结文件夹中冻结的应用程序可以不再重复对用户进行相应的提示。可以理解的是,在上述用户选择取消执行相应的操作的基础上,当冻结的应用程序的占用内存再次由不大于预设占用内存阈值到大于预设占用内存阈值,终端仍可提示用户对冻结的应用程序进行相应的操作。
基于图1所示实施例说明的有益效果,本实施例中,目标参数即为应用程序的占用内存,预设阈值即为预设占用内存阈值,通过对应用程序的占用内存进行实时监测,可以避免过多的应用程序被冻结以占用终端的内存。
请参阅图4,本发明实施例中内存优化方法另一实施例包括:
401、当终端冻结应用程序后,终端实时监测当前剩余内存是否小于第一预设剩余内存阈值,若否,则执行步骤402,若是,则执行步骤403;
基于图1所示实施例中的步骤101说明的内容,本实施例中,当终端冻结应用程序后,终端可以实时监测当前剩余内存是否小于第一预设剩余内存阈值,该预设剩余内存阈值的作用即为终端的当前剩余内存小于第一预设优化时间阈值后,终端可以针对冻结的应用程序对用户进行提示。
具体的,在实际应用中,终端内存大小不一,存储容量有限,终端可以对第一预设剩余内存阈值进行设定,以在终端内存不足时,能够通过对冻结的应用程序进行处理以优化终端内存。可以理解的是,终端也可以通过监测所有应用程序的当前占用内存,该当前占用内存与当前剩余内存的总和即为终端所有的内存,那么终端一方面可以通过监测当前占用内存达到监测当前剩余内存的目的,也可以针对当前占有内存进行预设占有内存阈值的设定,并以该预设占有内存阈值为基准进行当前占有内存的实时监测,本实施例即以当前剩余内存阈值和第一预设剩余内存阈值的比较为例进行说明。
402、执行其它流程;
若终端实时监测当前剩余内存不小于第一预设剩余内存阈值,则终端可以不进行其它操作,使得应用程序维持在冻结状态。
403、终端提示用户对应用程序进行相应的操作。
基于图1所示实施例的步骤103说明的内容,本实施例中,若终端实时监测应用程序的占用内存大于预设占用内存阈值,则终端可以提示用户对应用程序进行相应的操作。
与提示内容包括压缩应用数据和/或清理应用数据和/或卸载应用相比,进一步的,本实施例中的提示内容针对当前剩余内存的取值可以有所不同,具体可以表现为:
当当前剩余内存小于第一预设剩余内存阈值,且大于或等于第二预设剩余内存阈值时,提示内容为压缩应用数据;
当当前剩余内存小于第二预设剩余内存阈值,且大于或等于第三预设剩余内存阈值时,提示内容为清理应用数据;
当当前剩余内存小于第三预设剩余内存阈值时,提示内容为卸载应用。
具体的,在实际应用中,终端可以提示用户在压缩应用数据、清理应用数据和卸载应用中的一个或多个加以选择,实现对应用程序执行相应的操作,但为了更精细化地对冻结的应用程序进行相应的操作提示,若终端的当前剩余内存小于第一预设剩余内存阈值,那么终端还可以在第一预设剩余内存阈值下进行区间划分,增加第二预设剩余内存阈值以及第三预设剩余内存阈值的设定,以分别针对压缩应用数据、清理应用数据和卸载应用,例如,假设以5G设为第一预设剩余内存阈值,3G设为第二预设剩余内存阈值,1G设为第三预设剩余内存阈值,那么当当前剩余内存小于5G,且大于或等于3G时,终端可以提示用户压缩应用数据,当当前剩余内存小于3G,且大于或等于1G时,终端可以提示用户清理应用数据,当当当前剩余内存小于1G时,终端则可以提示用户卸载应用,即在每一个区间可以只进行一种操作指令的提示,要么取消,以此可以在终端内存允许的条件下,帮助用户对应用程序进行相应的操作选择。
进一步的,本实施例中,当终端提示用户对应用程序进行相应的操作后,若用户选择取消执行相应的操作,那么终端针对该冻结文件夹中冻结的应用程序可以不再重复对用户进行相应的提示,为了避免终端内存不足导致运行不畅等特殊情况,终端也可以在用户选择取消选项之后对用户进行反复提示,以使得用户针对冻结的应用程序或非冻结的应用程序作出相应的操作,且当前剩余内存不小于第一预设剩余内存阈值为止,其中冻结的应用程序可以优先处理。可以理解的是,在上述用户选择两种操作方式的基础上,当终端的当前剩余内存再次由不小于第一预设剩余内存阈值到小于第一预设剩余内存阈值,且存在冻结的应用程序时,终端仍可提示用户对冻结的应用程序进行相应的操作。
基于图1所示实施例说明的有益效果,本实施例中,目标参数即为终端的当前剩余内存,预设阈值即为第一预设剩余内存阈值,相比于现有技术,终端在提示内存不足时,一般是在用户下载某个应用程序或文件或拍照等操作时,会提示用户内存不足,无法执行相应的操作,本发明通过第一预设剩余内存阈值的设定,对当前剩余内存进行实时监测,可以使得在终端的内存不足之前,提示用户对冻结的应用程序进行相应的操作,这不仅优化了终端的内存,而且终端只提示对冻结的应用程序进行处理,从优化处理角度上来说,这可以帮助用户优先处理冻结的应用程序,有效降低具有较大使用价值意义的应用程序被处理的风险。
需要说明的是,在实际应用中,图2所示实施例中的步骤201、图2所示实施例中的步骤301以及图4所示实施例中的步骤401可以两两结合同时执行,也可以全部结合同时执行,即终端可以对应用程序的冻结时间、应用程序的占用内存、当前剩余内存中的两个或以上进行实时监测,但在结合进行实时监测的同时,只要有其中一个满足预设阈值,即应用程序的冻结时间超过预设优化时间阈值,或应用程序的占用内存大于预设占用内存阈值,或当前剩余内存小于第一预设剩余内存阈值,终端就可以提示用户对应用程序进行相应的操作,该相应操作的具体实现方法已在图2、图3以及图4所示实施例中说明,此处不再赘述。
上面对本发明实施例中的内存优化方法进行了描述,下面对本发明实施例中的优化装置进行描述,请参阅图5,本发明实施例中优化装置一个实施例包括:
监测模块501,设置为当终端冻结应用程序后,实时监测目标参数是否满足预设阈值,目标参数至少包括冻结时间参数或内存参数;
提示模块502,设置为当目标参数满足预设阈值时,则提示用户对应用程序进行相应的操作。
本实施例中,当终端冻结应用程序后,监测模块500可以对目标参数进行实时监测,一旦目标参数满足预设阈值,则提示模块502可以提示用户对应用程序进行相应的操作,由此可知,通过设置应用程序的冻结时间、终端内存维度的阈值分别实现对冻结的应用程序、终端内存相关信息,即时间参数、内存参数的实时监测,并可以根据监测结果提示用户对冻结的应用程序进行处理,从而不仅实现了对终端运行内存的优化,还可以通过对冻结的应用程序的进一步管理,实现对终端内置存储的优化,进而提高了用户体验。
请参阅图6,本发明实施例中优化装置另一实施例包括:
本实施例中的模块601和图5所示实施例中的模块501相同,模块602与图5所示实施例中的模块502相同,此处不再赘述。
本实施例中,监测模块601可以进一步包括:
第一监测单元6011,设置为实时监测应用程序的冻结时间是否超出预设优化时间阈值;和/或,
第二监测单元6012,设置为实时监测应用程序的占用内存是否大于预设占用内存阈值;和/或,
第三监测单元6013,设置为实时监测当前剩余内存是否小于第一预设剩余内存阈值。
本实施例中,提示模块602对应的提示内容可以包括压缩应用数据和/或清理应用数据和/或卸载应用。
进一步的,本实施例中,当当前剩余内存小于第一预设剩余内存阈值,且大于或等于第二预设剩余内存阈值时,提示内容可以为压缩应用数据;
当当前剩余内存小于第二预设剩余内存阈值,且大于或等于第三预设剩余内存阈值时,提示内容可以为清理应用数据;
当当前剩余内存小于第三预设剩余内存阈值时,提示内容可以为卸载应用。
基于图5所示实施例说明的有益效果,本实施例在于将监测模块601的功能具体化,即将监测模块601监测的目标参数具体化,同时对于提示模块602所对应的提示内容进行具体的划分,通过对监测模块601中各个单元的单独或结合应用,均可以实现冻结的应用程序的优化管理,从而实现终端的内存优化,进而提高用户体验。
图7是本发明实施例公开的又一种终端的结构示意图。本发明实施例中的终端700可以是不同类型的电子设备,例如:智能手机、平板电脑、掌上电脑以及移动互联网设备、个人数字助理、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等。如图7所示,本发明实施例中的终端700包括:至少一个处理器710,例如CPU,至少一个接收器713,至少一个存储器714,至少一个发送器715,至少一个通信总线712。其中,所述通信总线712用于实现这些组件之间的连接通信。其中,所述接收器713和所述发送器715可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他设备进行数据通信。所述存储器714可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。
所述处理器710可执行所述终端700的操作系统以及安装的各类应用程序、程序代码等,例如,上述的各个单元,包括所述监测模块501(601)、所述提示模块502(602)、所述第一监测单元6011、所述第二监测单元6012、所述第三监测单元6013等。
所述存储器714中存储有程序代码,且所述处理器710可通过通信总线712,调用所述存储器714中存储的程序代码以执行相关的功能。例如,图5、图6中所述的各个单元(例如,所述监测模块501(601)、所述提示模块502(602)、所述第一监测单元6011、所述第二监测单元6012、所述第三监测单元6013等)是存储在所述存储器714中的程序代码,并由所述处理器710所执行,从而实现所述各个单元的功能以实现对内存优化的处理。
在本发明的一个实施例中,所述存储器714存储多个指令,所述多个指令被所述处理器710所执行以实现内存优化方法。具体而言,当终端冻结应用程序后,所述处理器710实时监测目标参数是否满足预设阈值,所述目标参数至少包括冻结时间参数或内存参数;若是,则所述终端提示用户对所述应用程序进行相应的操作。
在进一步的实施例中,所述处理器710实时监测所述应用程序的冻结时间是否超出预设优化时间阈值;和/或,所述处理器710实时监测所述应用程序的占用内存是否大于预设占用内存阈值;和/或,所述处理器710实时监测当前剩余内存是否小于第一预设剩余内存阈值。
在进一步的实施例中,所述处理器710提示用户对所述应用程序进行相应的操作对应的提示内容包括压缩应用数据和/或清理应用数据和/或卸载应用。
在进一步的实施例中,当所述当前剩余内存小于所述第一预设剩余内存阈值,且大于或等于第二预设剩余内存阈值时,所述提示内容为所述压缩应用数据;当所述当前剩余内存小于所述第二预设剩余内存阈值,且大于或等于第三预设剩余内存阈值时,所述提示内容为所述清理应用数据;当所述当前剩余内存小于所述第三预设剩余内存阈值时,所述提示内容为所述卸载应用。
具体地,所述处理器710对上述指令的具体实现方法可参考图1至图4对应实施例中相关步骤的描述,在此不赘述。
本实施例提供的终端,通过设置上述任一项实施例中的优化装置,从而具有优化装置所具有的一切有益效果,在此不再赘述。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (9)

  1. 一种内存优化方法,其特征在于,包括:
    当终端冻结应用程序后,所述终端实时监测目标参数是否满足预设阈值,所述目标参数至少包括冻结时间参数或内存参数;
    若是,则所述终端提示用户对所述应用程序进行相应的操作。
  2. 根据权利要求1所述的内存优化方法,其特征在于,所述终端监测当前条件是否满足预设阈值包括:
    所述终端实时监测所述应用程序的冻结时间是否超出预设优化时间阈值;和/或,
    所述终端实时监测所述应用程序的占用内存是否大于预设占用内存阈值;和/或,
    所述终端实时监测当前剩余内存是否小于第一预设剩余内存阈值。
  3. 根据权利要求1或2所述的内存优化方法,其特征在于,所述终端提示用户对所述应用程序进行相应的操作对应的提示内容包括压缩应用数据和/或清理应用数据和/或卸载应用。
  4. 根据权利要求3所述的内存优化方法,其特征在于,当所述当前剩余内存小于所述第一预设剩余内存阈值,且大于或等于第二预设剩余内存阈值时,所述提示内容为所述压缩应用数据;
    当所述当前剩余内存小于所述第二预设剩余内存阈值,且大于或等于第三预设剩余内存阈值时,所述提示内容为所述清理应用数据;
    当所述当前剩余内存小于所述第三预设剩余内存阈值时,所述提示内容为所述卸载应用。
  5. 一种优化装置,其特征在于,包括:
    监测模块,设置为当终端冻结应用程序后,实时监测目标参数是否满足预设阈值,所述目标参数至少包括冻结时间参数或内存参数;
    提示模块,设置为当所述目标参数满足预设阈值时,则提示用户对所述应用程序进行相应的操作。
  6. 根据权利要求5所述的优化装置,其特征在于,所述监测模块包括:
    第一监测单元,设置为实时监测所述应用程序的冻结时间是否超出预设优化时间阈值;和/或,
    第二监测单元,设置为实时监测所述应用程序的占用内存是否大于预设占用内存阈值;和/或,
    第三监测单元,设置为实时监测当前剩余内存是否小于第一预设剩余内存阈值。
  7. 根据权利要求5或6所述的优化装置,其特征在于,所述提示模块对应的提示内容包括压缩应用数据和/或清理应用数据和/或卸载应用。
  8. 根据权利要求7所述的优化装置,其特征在于,当所述当前剩余内存小于所述第一预设剩余内存阈值,且大于或等于第二预设剩余内存阈值时,所述提示内容为所述压缩应用数据;
    当所述当前剩余内存小于所述第二预设剩余内存阈值,且大于或等于第三预设剩余内存阈值时,所述提示内容为所述清理应用数据;
    当所述当前剩余内存小于所述第三预设剩余内存阈值时,所述提示内容为所述卸载应用。
  9. 一种终端,其特征在于,包括如权利要求5至8中任一项所述的优化装置。
PCT/CN2016/100689 2016-05-31 2016-09-28 一种内存优化方法、优化装置以及终端 Ceased WO2017206403A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610377405.6 2016-05-31
CN201610377405.6A CN105975348A (zh) 2016-05-31 2016-05-31 一种内存优化方法、优化装置以及终端

Publications (1)

Publication Number Publication Date
WO2017206403A1 true WO2017206403A1 (zh) 2017-12-07

Family

ID=57010607

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100689 Ceased WO2017206403A1 (zh) 2016-05-31 2016-09-28 一种内存优化方法、优化装置以及终端

Country Status (2)

Country Link
CN (1) CN105975348A (zh)
WO (1) WO2017206403A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992393A (zh) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 应用处理方法和装置、电子设备、计算机可读存储介质
CN110018904A (zh) * 2018-01-10 2019-07-16 广东欧珀移动通信有限公司 信息处理方法、装置、计算机设备和计算机可读存储介质
CN110471622A (zh) * 2019-07-30 2019-11-19 惠州Tcl移动通信有限公司 一种sd卡数据写入方法、装置、存储介质及终端
CN114116231A (zh) * 2021-12-14 2022-03-01 中国平安财产保险股份有限公司 一种数据加载方法、装置、计算机设备及存储介质
CN115309664A (zh) * 2022-10-11 2022-11-08 深圳市诚王创硕科技有限公司 一种软件问题跟踪方法和系统
CN119248513A (zh) * 2024-12-03 2025-01-03 成都赛力斯科技有限公司 服务多实例内存优化方法、装置、电子设备及存储介质

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107957907A (zh) * 2016-10-14 2018-04-24 北京搜狗科技发展有限公司 一种应用程序处理方法及装置
CN106803860B (zh) * 2017-01-23 2020-12-29 努比亚技术有限公司 一种终端应用的存储处理方法和装置
CN107301069A (zh) * 2017-06-20 2017-10-27 广东小天才科技有限公司 一种应用程序的更新方法及用户终端、服务器
CN107229500A (zh) * 2017-06-26 2017-10-03 珠海市魅族科技有限公司 应用处理方法、装置、终端及存储介质
CN108287760B (zh) * 2017-08-08 2021-02-19 珠海市魅族科技有限公司 终端设备控制方法及装置、终端设备及计算机可读存储介质
CN107678698B (zh) * 2017-10-31 2020-11-17 太仓市昊博技术服务有限公司 缓存数据清理方法、服务器、终端及计算机可读存储介质
CN107894916A (zh) * 2017-11-10 2018-04-10 深圳天珑无线科技有限公司 一种冻结应用的方法、移动终端以及存储装置
CN109992360B (zh) * 2017-12-29 2022-01-11 Oppo广东移动通信有限公司 进程处理方法和装置、电子设备、计算机可读存储介质
CN109992322B (zh) * 2017-12-29 2022-05-13 Oppo广东移动通信有限公司 应用程序卸载方法、装置、存储介质和终端
CN108932163A (zh) * 2018-06-15 2018-12-04 奇酷互联网络科技(深圳)有限公司 内存管理方法、装置、可读存储介质及终端
CN109375995B (zh) * 2018-09-26 2021-03-02 Oppo广东移动通信有限公司 应用冻结方法和装置、存储介质、电子设备
CN116774808A (zh) * 2019-09-09 2023-09-19 中兴通讯股份有限公司 应用程序管理方法、装置和存储介质
JP7334688B2 (ja) * 2020-07-07 2023-08-29 トヨタ自動車株式会社 車載装置及び車両
CN112416600A (zh) * 2020-12-08 2021-02-26 努比亚技术有限公司 一种内存管控的方法、装置、移动终端及存储介质
CN112948073A (zh) * 2021-01-29 2021-06-11 京东方科技集团股份有限公司 一种运行内存的优化方法、装置及存储介质
CN112948208B (zh) * 2021-02-24 2022-06-21 视若飞信息科技(上海)有限公司 一种内存监测和回收方法、系统、设备及存储介质
CN113076193B (zh) * 2021-03-26 2024-03-26 北京车和家信息技术有限公司 一种内存优化的方法、装置及计算机可读存储介质
CN113886060B (zh) * 2021-05-28 2022-09-23 荣耀终端有限公司 压缩内存的方法和装置
CN114547502A (zh) * 2022-01-17 2022-05-27 北京中交兴路信息科技有限公司 一种浏览器的数据存储量监测方法、装置、存储介质及终端
CN115437783B (zh) * 2022-08-17 2023-08-04 荣耀终端有限公司 一种查杀方法、电子设备及可读存储介质
CN117265832B (zh) * 2023-08-30 2026-01-23 珠海格力电器股份有限公司 云端内存分配方法和云端服务器、衣物处理设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902266A (zh) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 清理后台运行应用的方法和装置
CN104731683A (zh) * 2015-03-10 2015-06-24 惠州Tcl移动通信有限公司 一种手机内存监控的方法及系统
CN104881299A (zh) * 2014-02-28 2015-09-02 可牛网络技术(北京)有限公司 一种应用程序冻结方法及装置
CN105468426A (zh) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 一种应用冻结的方法及终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996101B (zh) * 2009-08-13 2013-08-28 北京搜狗科技发展有限公司 输入法系统性能优化方法及装置
CN104598315A (zh) * 2014-12-12 2015-05-06 广州三星通信技术研究有限公司 管理内存的方法、装置及终端
CN104536813B (zh) * 2014-12-29 2016-10-12 北京奇虎科技有限公司 计算设备的加速方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902266A (zh) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 清理后台运行应用的方法和装置
CN104881299A (zh) * 2014-02-28 2015-09-02 可牛网络技术(北京)有限公司 一种应用程序冻结方法及装置
CN104731683A (zh) * 2015-03-10 2015-06-24 惠州Tcl移动通信有限公司 一种手机内存监控的方法及系统
CN105468426A (zh) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 一种应用冻结的方法及终端

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992393A (zh) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 应用处理方法和装置、电子设备、计算机可读存储介质
US11144477B2 (en) 2017-12-29 2021-10-12 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for processing reclaimable memory pages, electronic device, and computer-readable storage medium
CN110018904A (zh) * 2018-01-10 2019-07-16 广东欧珀移动通信有限公司 信息处理方法、装置、计算机设备和计算机可读存储介质
CN110471622A (zh) * 2019-07-30 2019-11-19 惠州Tcl移动通信有限公司 一种sd卡数据写入方法、装置、存储介质及终端
CN110471622B (zh) * 2019-07-30 2024-02-20 惠州Tcl移动通信有限公司 一种sd卡数据写入方法、装置、存储介质及终端
CN114116231A (zh) * 2021-12-14 2022-03-01 中国平安财产保险股份有限公司 一种数据加载方法、装置、计算机设备及存储介质
CN115309664A (zh) * 2022-10-11 2022-11-08 深圳市诚王创硕科技有限公司 一种软件问题跟踪方法和系统
CN119248513A (zh) * 2024-12-03 2025-01-03 成都赛力斯科技有限公司 服务多实例内存优化方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN105975348A (zh) 2016-09-28

Similar Documents

Publication Publication Date Title
WO2017206403A1 (zh) 一种内存优化方法、优化装置以及终端
EP2977854B1 (en) Method, apparatus, and user terminal for removing malicious power consuming application
CN103597801B (zh) 用于多阶段多源备份的方法和装置
WO2014117653A1 (zh) 内存清理方法、装置和终端设备
CN113342422B (zh) 一种Linux兼容Android的多应用访问摄像头方法及装置
CN107357617B (zh) 应用更新方法、装置、存储介质及电子设备
CN102981906A (zh) 一种应用程序后台进程管理方法及装置
WO2018000675A1 (zh) 一种后台应用管理装置、终端及后台应用管理方法
CN103582875A (zh) 用于多源恢复的方法及装置
WO2017088549A1 (zh) 一种预留智能终端电池电量的实现方法及系统
CN103324500A (zh) 一种回收内存的方法及装置
WO2020139048A1 (en) Intelligent terminal energy saving method and device based on ai prediction
WO2018018701A1 (zh) 应用程序分级管理方法及系统
CN107463435B (zh) 应用进程优先级管理方法、装置、存储介质及电子设备
CN106569917A (zh) 一种数据备份方法及移动移动终端
WO2012065374A1 (zh) 一种控制数据链路通断的方法及装置
WO2016195422A1 (en) Method and apparatus for managing memory
WO2017219661A1 (zh) 一种控制终端进程的方法及系统
WO2016023493A1 (zh) 人机交互界面对操作指令响应的控制方法及终端
WO2017219535A1 (zh) 应用程序的管理方法、管理装置及终端
CN111367828A (zh) 内存压缩方法、装置、终端及存储介质
CN116028452A (zh) 应用程序的存储管理方法、设备、存储介质及产品
WO2016013815A1 (ko) 데이터 운용 방법 및 전자 장치
WO2018068740A1 (zh) 终端及其应用程序的启动管理方法
WO2017219534A1 (zh) 一种应用程序的处理方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16903785

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16903785

Country of ref document: EP

Kind code of ref document: A1