WO2018157565A1 - Memory reclamation method and device and computer storage medium - Google Patents

Memory reclamation method and device and computer storage medium Download PDF

Info

Publication number
WO2018157565A1
WO2018157565A1 PCT/CN2017/097899 CN2017097899W WO2018157565A1 WO 2018157565 A1 WO2018157565 A1 WO 2018157565A1 CN 2017097899 W CN2017097899 W CN 2017097899W WO 2018157565 A1 WO2018157565 A1 WO 2018157565A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory
mobile device
target
application
interaction operation
Prior art date
Application number
PCT/CN2017/097899
Other languages
French (fr)
Chinese (zh)
Inventor
董淑芳
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018157565A1 publication Critical patent/WO2018157565A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Definitions

  • the present disclosure relates to the field of memory management, and in particular to a memory recovery method and apparatus and computer storage medium.
  • the memory recovery mechanism used by current smart mobile devices can be divided into three types. The first one is the background automatic recovery mechanism, and the second is the manual one-key recovery mechanism. One of the two mechanisms is to determine whether the memory exceeds the default limit in the background. And the unified recycling, the other is to recycle the memory after the user clicks, and the two methods are essentially the same, the timing and the judgment logic are the same, the principle of recycling is the same, That is, all the memory is directly recovered; the third way is to recycle the memory of one application in the memory recovery management interface.
  • the first two memory recycling mechanisms are used. Although the memory can be released instantaneously, some applications that need to be running in the background will be taken out of operation, which will affect the user experience. For the third memory recovery mechanism, the user needs to apply the application one by one. Memory recycling is performed with low ease of operation.
  • the embodiment of the invention provides a method and a device for recovering a memory, so as to at least solve the technical problem that the operation of the memory in the related art is complicated.
  • a method for recovering a memory comprising: detecting a first interaction operation for reclaiming a memory of a mobile device; and determining a target memory recovery mode corresponding to the first interaction operation; Performs memory reclamation on a type of application on the mobile device that corresponds to the target memory reclamation mode.
  • performing memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device includes: acquiring target application feature information corresponding to the target memory recovery mode; determining one of the feature information matching the target application feature information Class application; reclaims memory used by a class of applications that match the target application feature information.
  • the method prior to detecting the first interaction operation for reclaiming memory of the mobile device, the method further comprises: running a client on the mobile device, wherein the client is configured to provide a memory management function;
  • the existing memory management scheme is displayed on the side, wherein each memory management scheme includes multiple memory recycling modes; the memory management scheme corresponding to the detected second interaction operation is used as the current memory management scheme.
  • the method further comprises: receiving the input application feature information and the corresponding memory recovery mode on the mobile device; saving all the input application feature information and the corresponding memory recovery
  • the mode is a new memory management scheme.
  • the application feature information includes at least one of an application name, an application usage frequency, and a size of memory occupied by the application.
  • detecting the first interaction operation for reclaiming memory of the mobile device includes one of: detecting a first interaction operation for determining a target memory recovery mode on a touch screen of the mobile device;
  • the image recognition module of the mobile device identifies a first interaction operation for selecting a target memory reclamation mode.
  • determining a target memory recovery mode corresponding to the first interaction operation includes one of: determining a memory recovery mode selected by the first interaction operation among the plurality of memory collection modes as a target memory recovery mode; The memory recovery mode corresponding to the pressure value of the first interaction operation in the memory recovery mode is the target memory recovery mode.
  • a memory recovery apparatus comprising: a detecting unit, configured to detect a first interaction operation for reclaiming a memory of the mobile device; and a determining unit, configured to determine The target memory recovery mode corresponding to the first interaction operation; the recovery unit is configured to perform memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device.
  • the recovery unit includes: an acquisition module, configured to acquire target application feature information corresponding to the target memory recovery mode; and a first determining module, configured to determine a type of application that matches the feature information with the target application feature information; A recycling module for reclaiming memory occupied by a type of application that matches the target application feature information.
  • the apparatus further includes: an operation unit, configured to run the client on the mobile device before detecting the first interaction operation for reclaiming the memory of the mobile device, wherein the client is configured to provide memory a management unit; a display unit, configured to display an existing memory management scheme on the client, where each memory management scheme includes multiple memory recycling modes; and a processing unit configured to correspond to the detected second interaction operation
  • the memory management scheme is the current memory management solution.
  • the apparatus further includes: a receiving unit, configured to receive the input application feature information and the corresponding memory recovery mode on the mobile device after the client is run on the mobile device; the saving unit is configured to save all The input application feature information and the corresponding memory recovery mode are newly added memory management schemes.
  • the application feature information includes at least one of an application name, an application usage frequency, and a size of memory occupied by the application.
  • the detecting unit includes: a first detecting module, configured to detect a first interaction operation for determining a target memory recycling mode on a touch screen of the mobile device; and a second detecting module, configured to move The image recognition module of the device identifies a first interaction operation for selecting a target memory reclamation mode.
  • the determining unit includes: a second determining module, configured to determine, in a plurality of memory recycling modes, a memory recycling mode selected by the first interaction operation as a target memory recycling mode; and a third determining module, configured to determine The memory recovery mode corresponding to the pressure value of the first interaction operation in the multiple memory collection mode is the target memory recovery mode.
  • a storage medium which may be configured to store program code for performing the following steps: detecting a first interaction operation for reclaiming memory of a mobile device; determining A target memory recovery mode corresponding to the interaction operation; performing memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device.
  • a first interaction operation for recovering a memory of the mobile device is detected; a target memory recovery mode corresponding to the first interaction operation is determined; and a type of application corresponding to the target memory recovery mode on the mobile device is performed.
  • the memory is reclaimed, thereby solving the technical problem of cumbersome operation when recovering the memory in the related art, and realizing the technical effect of conveniently recycling the memory.
  • FIG. 1 is a schematic diagram of an optional mobile terminal in accordance with an embodiment of the present invention.
  • FIG. 2 is a flow chart of a method for recycling a memory according to an embodiment of the present invention
  • FIG. 3 is a flow chart of an alternative memory recycling method in accordance with an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an optional memory management scheme interface in accordance with an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a memory recovery apparatus according to an embodiment of the present invention.
  • the method embodiment provided in Embodiment 1 of the present application can be executed in a mobile terminal (such as a wearable device), a computer terminal, or the like.
  • the mobile terminal may include one or more (only one shown in FIG. 1) processor 101 (the processor 101 may include but is not limited to a microprocessor MCU or may A processing device such as a programming logic device FPGA, a memory 103 for storing data, and a transmission device 105 for communication functions.
  • the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • the memory 103 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the control method of the device in the embodiment of the present invention, and the processor 101 executes each of the software programs and modules stored in the memory 103.
  • a functional application and data processing, that is, the above method is implemented.
  • the memory can include high speed random access memory and can also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • the memory can further include memory remotely located relative to the processor, which can be connected to the computer terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the above storage medium ie, memory
  • the above storage medium may be configured to store program code for performing the following steps: detecting a first interaction operation for reclaiming memory of the mobile device; determining a target corresponding to the first interaction operation Memory reclamation mode; performs memory reclamation on a type of application corresponding to the target memory reclamation mode on the mobile device.
  • the transmission device is for receiving or transmitting data via a network.
  • the above-described network specific examples may include a wireless network provided by a communication provider of a computer terminal.
  • the transmission device includes a Network Interface Controller (NIC) that can be connected to other network devices through the base station to communicate with the Internet.
  • the transmission device can be a radio frequency (RF) module. It is used to communicate wirelessly with the Internet.
  • NIC Network Interface Controller
  • RF radio frequency
  • a method embodiment of a memory recycling method is provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and Although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 2 is a flowchart of a method for recovering a memory according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step S201 detecting a first interaction operation for reclaiming memory of the mobile device.
  • Step S202 determining a target memory recovery mode corresponding to the first interaction operation.
  • Step S203 Perform memory recovery on a type of application corresponding to the target memory collection mode on the mobile device.
  • the first interaction operation for recovering the memory of the mobile device is detected; the target memory recovery mode corresponding to the first interaction operation is determined; and the memory recovery is performed on a type of application corresponding to the target memory recovery mode on the mobile device. Therefore, the technical problem of cumbersome operation when recovering memory in the related art is solved, and the technical effect of conveniently recycling the memory is realized.
  • the execution body of the foregoing steps may be a control module of the mobile device, etc., but is not limited thereto.
  • step S201 detecting that the first interaction operation for reclaiming the memory of the mobile device includes one of: detecting a first interaction operation for determining a target memory recovery mode on the touch screen of the mobile device;
  • the image recognition module identifies a first interaction operation for selecting a target memory reclamation mode.
  • the first interaction operation detected on the touch screen of the mobile device includes two types: one is a touch selection operation of the user detected by the touch screen; and the other is pressure detected on the pressure sensitive touch screen.
  • the touch selection operation of the value can determine the corresponding selection according to the pressure value.
  • the first interaction operation identified by the image recognition module of the mobile device includes the following manners: one is that the front camera of the mobile device is operated by the gesture of the user; the second is that the gesture of the user is recognized by the rear camera of the mobile device.
  • the third is that when the mobile device is wirelessly connected to other mobile devices (such as through Bluetooth, NFC, etc.), the mobile device can pass image recognition modules of other mobile devices (such as front camera, rear camera, etc.) Identify the user's gestures.
  • determining that the target memory recovery mode corresponding to the first interaction operation comprises one of: determining that the memory recovery mode selected by the first interaction operation among the plurality of memory collection modes is the target memory collection mode; determining the plurality of memory The memory recovery mode corresponding to the pressure value of the first interaction operation in the recovery mode is within the target Save and recycle mode.
  • the first interaction operation may be the current instant operation of the user, or may be an operation preset by the user, for example, the user periodically performs memory cleaning or a predefined one at a fixed time (such as 1 hour). A fixed time for memory cleaning.
  • the user when it is determined that the memory recovery mode selected by the first interaction operation is the target memory recovery mode among the plurality of memory collection modes, the user directly performs a touch selection operation on the touch screen or by moving
  • the gesture selection operation recognized by the image recognition module of the device can directly determine the selected memory recovery mode (ie, the target memory recovery mode); and determine the memory recovery corresponding to the pressure value of the first interaction operation in determining multiple memory recovery modes.
  • the mode is the target memory recovery mode, and the memory recovery mode corresponding to the pressure value (ie, the target memory recovery mode) can be determined according to the pressure value of the user's first interaction operation.
  • step S203 performing memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device includes: acquiring target application feature information corresponding to the target memory recovery mode; and determining a type of application that matches the feature information with the target application feature information. Reclaims memory used by a class of applications that match the target application feature information.
  • the application feature information includes at least one of the following: an application name, an application usage frequency, and a size of memory occupied by the application.
  • the client may be run on the mobile device, the client is used to provide a memory management function; and the existing memory is displayed on the client.
  • the management scheme wherein each memory management scheme includes multiple memory recycling modes; and the memory management scheme corresponding to the detected second interaction operation is used as a current memory management scheme. For example, when the client is first run or when a memory management scheme needs to be selected, the user can select a corresponding memory management scheme in the client according to his actual needs.
  • the memory recovery mode in the memory management scheme can be selected by the interaction operation on the client, and after the selection, the mobile device can obtain the corresponding The target of the memory reclamation mode applies feature information; and finds a type of application having the target application feature information of all applications in the mobile device, and then reclaims the memory occupied by the application.
  • the user may customize the memory management scheme in the client: receiving the application feature information input by the user and the corresponding memory recycling mode on the mobile device; saving all the input application feature information And the corresponding memory recycling mode is a new memory management scheme. In this way, the user can pass Self-defined memory recycling mode for memory management.
  • the user can customize the memory management mode on the mobile device according to requirements, thereby improving the flexibility and convenience of memory management.
  • the above-mentioned mobile phone is a smart mobile device capable of reclaiming memory, and has an operation interface and a setting interface (ie, a client) for recycling memory, and a device capable of receiving touch-sensitive touch (such as a pressure sensitive touch screen).
  • a setting interface ie, a client
  • touch-sensitive touch such as a pressure sensitive touch screen
  • the embodiment of the invention describes a solution for determining the size of a pressure sensitive touch using a mobile phone and applying it to memory recovery.
  • the program can include the following steps:
  • step S301 a default memory recycling level is built in the mobile phone.
  • the existing MTK 7-layer memory management scheme is used to organize the scheme into an optional option; the user-defined scheme can also be improved (such as scheme 1 and scheme 2); and the user is allowed to new Increase management plan.
  • step S302 the user sets the memory recycling level according to, for example, the memory occupancy size, the frequency of use, or the application name (ie, application feature information).
  • the above default options and option schemes that the user has given are displayed; if the user has not set the scheme, there may be new options. This can be achieved by the following substeps:
  • Step S3021 confirming the finishing scheme selected by the user and giving a use button
  • Step S3022 waiting for the user to click the button until the user presses the button
  • Step S3023 confirming the memory recovery level selected by the user, such as 4, 5, 6, etc., to determine a specific operation interface display;
  • Step S3024 when the user clicks the recycle button, a multi-level menu pops up, and a pressure grading display interface and a current selection state interface are displayed, and the current user pressure is displayed;
  • Step S3025 detecting whether the user releases the button
  • Step S3026 when the user releases the button, recording the level selected by the user
  • step S3027 the memory is recovered according to the level finally selected by the user, and the related information is recorded.
  • Step S303 setting a memory recycling interface or button on the mobile phone.
  • step S304 when the user operates on the memory recovery interface on the mobile phone, the recovered pressure level is recorded.
  • step S305 memory recovery is performed based on the confirmed pressure level.
  • the memory recovery of the mobile device is performed by using the solution of the present application, so that the mobile phone can more conveniently and multiplex the memory, and the recovery of the memory by the mobile phone becomes more convenient and reasonable.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a memory recovery device is also provided in the embodiment of the present invention.
  • the device is used to implement the above embodiments and preferred embodiments, and the description thereof has been omitted.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 5 is a schematic diagram of a memory recovery apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus may include a detecting unit 51, a determining unit 53, and a recycling unit 55.
  • a detecting unit 51 configured to detect a first interaction operation for reclaiming a memory of the mobile device
  • a determining unit 53 configured to determine a target memory recovery mode corresponding to the first interaction operation
  • the recycling unit 55 is configured to perform memory recovery on a type of application corresponding to the target memory collection mode on the mobile device.
  • the detecting unit detects a first interaction operation for reclaiming the memory of the mobile device; the determining unit determines a target memory recovery mode corresponding to the first interaction operation; and the recovery unit corresponds to the target memory recovery mode on the mobile device
  • a kind of application performs memory recovery, thereby solving the technical problem that the operation of the related technology is more complicated when the memory is recycled, and realizes the technical effect of conveniently recycling the memory.
  • the detecting unit includes: a first detecting module, configured to detect a first interaction operation for determining a target memory recycling mode on the touch screen of the mobile device; and a second detecting module, configured to pass the image of the mobile device
  • the identification module identifies a first interaction operation for selecting a target memory reclamation mode.
  • the first interaction operation detected on the touch screen of the mobile device includes two types: one is a touch selection operation of the user detected by the touch screen; and the other is pressure detected on the pressure sensitive touch screen.
  • Value touch The selection operation can determine the corresponding selection based on the pressure value.
  • the first interaction operation identified by the image recognition module of the mobile device includes the following manners: one is that the front camera of the mobile device is operated by the gesture of the user; the second is that the gesture of the user is recognized by the rear camera of the mobile device.
  • the third is that when the mobile device is wirelessly connected to other mobile devices (such as through Bluetooth, NFC, etc.), the mobile device can pass image recognition modules of other mobile devices (such as front camera, rear camera, etc.) Identify the user's gestures.
  • the determining unit includes: a second determining module, configured to determine, in the plurality of memory recycling modes, the memory recycling mode selected by the first interaction operation is a target memory recycling mode; and the third determining module is configured to determine the multiple memory
  • the memory recovery mode corresponding to the pressure value of the first interaction in the recycle mode is the target memory recovery mode.
  • the user when it is determined that the memory recovery mode selected by the first interaction operation is the target memory recovery mode among the plurality of memory collection modes, the user directly performs a touch selection operation on the touch screen or by moving
  • the gesture selection operation recognized by the image recognition module of the device can directly determine the selected memory recovery mode (ie, the target memory recovery mode); and determine the memory recovery corresponding to the pressure value of the first interaction operation in determining multiple memory recovery modes.
  • the mode is the target memory recovery mode, and the memory recovery mode corresponding to the pressure value (ie, the target memory recovery mode) can be determined according to the pressure value of the user's first interaction operation.
  • the recovery unit includes: an acquisition module, configured to acquire target application feature information corresponding to the target memory recovery mode; and a first determining module, configured to determine a type of application that matches the feature information with the target application feature information; A module that reclaims memory used by a class of applications that match the target application feature information.
  • the foregoing application feature information includes at least one of the following: an application name, an application usage frequency, and a size of memory occupied by the application.
  • the apparatus may further include: an operation unit, configured to run the client on the mobile device before detecting the first interaction operation for reclaiming the memory of the mobile device, where the client is configured to provide a memory management function a display unit for displaying an existing memory management scheme on the client, wherein each memory management scheme includes multiple memory recycling modes; and a processing unit for performing memory management corresponding to the detected second interaction operation
  • the solution is the current memory management solution.
  • the apparatus may further include: a receiving unit, configured to receive the input application feature information and the corresponding memory recovery mode on the mobile device after running the client on the mobile device; Save all input application feature information and corresponding memory recovery mode as a new memory management scheme.
  • the user can customize the memory management mode on the mobile device according to requirements, thereby improving the flexibility and convenience of memory management.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes, according to the stored program code in the storage medium, detecting a first interaction operation for reclaiming memory of the mobile device, and determining a target memory recovery mode corresponding to the first interaction operation. Memory reclamation for a class of applications on the mobile device that correspond to the target memory reclamation mode.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the technical solution provided by the embodiment of the present invention can be applied to the field of memory management.
  • the first interaction operation for recovering the memory of the mobile device is detected by using the technical solution provided by the embodiment of the present invention; determining a target memory recovery mode corresponding to the first interaction operation; and corresponding to the target memory recovery mode on the mobile device.
  • the class application performs memory recovery, thereby solving the technical problem of cumbersome operation when recovering memory in the related art, and realizing the technical effect of conveniently recycling the memory.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

Provided are a memory reclamation method and device and computer storage medium. The method comprises: detecting a first interaction operation used for reclaiming the memory of a mobile device (S201); determining a target memory reclamation mode corresponding to the first interaction operation (S202); performing memory reclamation on a type of application which is on the mobile device and which corresponds to the target memory reclamation mode (S203). The invention solves the technical problem in the related art of operation being relatively complicated when performing memory reclamation.

Description

内存的回收方法和装置和计算机存储介质Memory recycling method and device and computer storage medium 技术领域Technical field
本公开涉及内存管理领域,具体而言,涉及一种内存的回收方法和装置和计算机存储介质。The present disclosure relates to the field of memory management, and in particular to a memory recovery method and apparatus and computer storage medium.
背景技术Background technique
目前的智能移动设备所使用的内存回收机制可分为三种,第一种是后台自动回收机制,第二种是手动一键回收机制,这两种机制一个是在后台判断内存是否超出默认限制,并进行统一回收,另一种是当用户进行点击操作后,对内存进行回收,而这两种方式从本质上讲,只是时间点和判断逻辑不相同,回收的原理却都是一致的,即直接回收了所有的内存;第三种方式是在内存回收管理界面逐一对应用的内存进行回收。The memory recovery mechanism used by current smart mobile devices can be divided into three types. The first one is the background automatic recovery mechanism, and the second is the manual one-key recovery mechanism. One of the two mechanisms is to determine whether the memory exceeds the default limit in the background. And the unified recycling, the other is to recycle the memory after the user clicks, and the two methods are essentially the same, the timing and the judgment logic are the same, the principle of recycling is the same, That is, all the memory is directly recovered; the third way is to recycle the memory of one application in the memory recovery management interface.
采用前两种内存回收机制,虽然可以瞬间释放内存,但是也会使一些需要一直在后台运行的应用退出运行,从而会影响用户的体验;对于第三种内存回收机制,需要用户对应用进行逐一进行内存回收,操作便捷性较低。The first two memory recycling mechanisms are used. Although the memory can be released instantaneously, some applications that need to be running in the background will be taken out of operation, which will affect the user experience. For the third memory recovery mechanism, the user needs to apply the application one by one. Memory recycling is performed with low ease of operation.
针对相关技术中对内存进行回收时操作较繁琐的技术问题,目前尚未提出有效的解决方案。In view of the technical problems in the related art in which the memory is recycled, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种内存的回收方法和装置,以至少解决相关技术中对内存进行回收时操作较繁琐的技术问题。The embodiment of the invention provides a method and a device for recovering a memory, so as to at least solve the technical problem that the operation of the memory in the related art is complicated.
根据本发明实施例的一个方面,提供了一种内存的回收方法,该方法包括:检测到用于回收移动设备的内存的第一交互操作;确定与第一交互操作对应的目标内存回收模式;对移动设备上与目标内存回收模式对应的一类应用进行内存回收。According to an aspect of the embodiments of the present invention, a method for recovering a memory is provided, the method comprising: detecting a first interaction operation for reclaiming a memory of a mobile device; and determining a target memory recovery mode corresponding to the first interaction operation; Performs memory reclamation on a type of application on the mobile device that corresponds to the target memory reclamation mode.
根据一个示例性实施例,对移动设备上与目标内存回收模式对应的一类应用进行内存回收包括:获取与目标内存回收模式对应的目标应用特征信息;确定特征信息与目标应用特征信息匹配的一类应用;回收与目标应用特征信息匹配的一类应用所占用的内存。 According to an exemplary embodiment, performing memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device includes: acquiring target application feature information corresponding to the target memory recovery mode; determining one of the feature information matching the target application feature information Class application; reclaims memory used by a class of applications that match the target application feature information.
根据一个示例性实施例,在检测到用于回收移动设备的内存的第一交互操作之前,该方法还包括:在移动设备上运行客户端,其中,客户端用于提供内存管理功能;在客户端上展示已有的内存管理方案,其中,每个内存管理方案包括多个内存回收模式;将与检测到的第二交互操作对应的内存管理方案作为当前的内存管理方案。According to an exemplary embodiment, prior to detecting the first interaction operation for reclaiming memory of the mobile device, the method further comprises: running a client on the mobile device, wherein the client is configured to provide a memory management function; The existing memory management scheme is displayed on the side, wherein each memory management scheme includes multiple memory recycling modes; the memory management scheme corresponding to the detected second interaction operation is used as the current memory management scheme.
根据一个示例性实施例,在移动设备上运行客户端之后,该方法还包括:在移动设备上接收输入的应用特征信息和对应的内存回收模式;保存所有输入的应用特征信息和对应的内存回收模式为新增的内存管理方案。According to an exemplary embodiment, after the client is run on the mobile device, the method further comprises: receiving the input application feature information and the corresponding memory recovery mode on the mobile device; saving all the input application feature information and the corresponding memory recovery The mode is a new memory management scheme.
根据一个示例性实施例,应用特征信息包括以下至少之一:应用名称、应用使用频率以及应用所占用内存的大小。According to an exemplary embodiment, the application feature information includes at least one of an application name, an application usage frequency, and a size of memory occupied by the application.
根据一个示例性实施例,检测到用于回收移动设备的内存的第一交互操作包括以下之一:在移动设备的触控屏上检测到用于确定目标内存回收模式的第一交互操作;通过移动设备的图像识别模块识别到用于选择目标内存回收模式的第一交互操作。According to an exemplary embodiment, detecting the first interaction operation for reclaiming memory of the mobile device includes one of: detecting a first interaction operation for determining a target memory recovery mode on a touch screen of the mobile device; The image recognition module of the mobile device identifies a first interaction operation for selecting a target memory reclamation mode.
根据一个示例性实施例,确定与第一交互操作对应的目标内存回收模式包括以下之一:确定多个内存回收模式中被第一交互操作所选中的内存回收模式为目标内存回收模式;确定多个内存回收模式中与第一交互操作的压力值对应的内存回收模式为目标内存回收模式。According to an exemplary embodiment, determining a target memory recovery mode corresponding to the first interaction operation includes one of: determining a memory recovery mode selected by the first interaction operation among the plurality of memory collection modes as a target memory recovery mode; The memory recovery mode corresponding to the pressure value of the first interaction operation in the memory recovery mode is the target memory recovery mode.
根据本发明实施例的另一个方面,提供了一种内存的回收装置,该装置包括:检测单元,用于检测到用于回收移动设备的内存的第一交互操作;确定单元,用于确定与第一交互操作对应的目标内存回收模式;回收单元,用于对移动设备上与目标内存回收模式对应的一类应用进行内存回收。According to another aspect of the embodiments of the present invention, a memory recovery apparatus is provided, the apparatus comprising: a detecting unit, configured to detect a first interaction operation for reclaiming a memory of the mobile device; and a determining unit, configured to determine The target memory recovery mode corresponding to the first interaction operation; the recovery unit is configured to perform memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device.
根据一个示例性实施例,回收单元包括:获取模块,用于获取与目标内存回收模式对应的目标应用特征信息;第一确定模块,用于确定特征信息与目标应用特征信息匹配的一类应用;回收模块,用于回收与目标应用特征信息匹配的一类应用所占用的内存。According to an exemplary embodiment, the recovery unit includes: an acquisition module, configured to acquire target application feature information corresponding to the target memory recovery mode; and a first determining module, configured to determine a type of application that matches the feature information with the target application feature information; A recycling module for reclaiming memory occupied by a type of application that matches the target application feature information.
根据一个示例性实施例,该装置还包括:运行单元,用于在检测到用于回收移动设备的内存的第一交互操作之前,在移动设备上运行客户端,其中,客户端用于提供内存管理功能;展示单元,用于在客户端上展示已有的内存管理方案,其中,每个内存管理方案包括多个内存回收模式;处理单元,用于将与检测到的第二交互操作对应的内存管理方案作为当前的内存管理方案。 According to an exemplary embodiment, the apparatus further includes: an operation unit, configured to run the client on the mobile device before detecting the first interaction operation for reclaiming the memory of the mobile device, wherein the client is configured to provide memory a management unit; a display unit, configured to display an existing memory management scheme on the client, where each memory management scheme includes multiple memory recycling modes; and a processing unit configured to correspond to the detected second interaction operation The memory management scheme is the current memory management solution.
根据一个示例性实施例,该装置还包括:接收单元,用于在移动设备上运行客户端之后,在移动设备上接收输入的应用特征信息和对应的内存回收模式;保存单元,用于保存所有输入的应用特征信息和对应的内存回收模式为新增的内存管理方案。According to an exemplary embodiment, the apparatus further includes: a receiving unit, configured to receive the input application feature information and the corresponding memory recovery mode on the mobile device after the client is run on the mobile device; the saving unit is configured to save all The input application feature information and the corresponding memory recovery mode are newly added memory management schemes.
根据一个示例性实施例,应用特征信息包括以下至少之一:应用名称、应用使用频率以及应用所占用内存的大小。According to an exemplary embodiment, the application feature information includes at least one of an application name, an application usage frequency, and a size of memory occupied by the application.
根据一个示例性实施例,检测单元包括:第一检测模块,用于在移动设备的触控屏上检测到用于确定目标内存回收模式的第一交互操作;第二检测模块,用于通过移动设备的图像识别模块识别到用于选择目标内存回收模式的第一交互操作。According to an exemplary embodiment, the detecting unit includes: a first detecting module, configured to detect a first interaction operation for determining a target memory recycling mode on a touch screen of the mobile device; and a second detecting module, configured to move The image recognition module of the device identifies a first interaction operation for selecting a target memory reclamation mode.
根据一个示例性实施例,确定单元包括:第二确定模块,用于确定多个内存回收模式中被第一交互操作所选中的内存回收模式为目标内存回收模式;第三确定模块,用于确定多个内存回收模式中与第一交互操作的压力值对应的内存回收模式为目标内存回收模式。According to an exemplary embodiment, the determining unit includes: a second determining module, configured to determine, in a plurality of memory recycling modes, a memory recycling mode selected by the first interaction operation as a target memory recycling mode; and a third determining module, configured to determine The memory recovery mode corresponding to the pressure value of the first interaction operation in the multiple memory collection mode is the target memory recovery mode.
根据本发明的另一个实施例,提供了一种存储介质,存储介质可以被设置为存储用于执行以下步骤的程序代码:检测到用于回收移动设备的内存的第一交互操作;确定与第一交互操作对应的目标内存回收模式;对移动设备上与目标内存回收模式对应的一类应用进行内存回收。According to another embodiment of the present invention, a storage medium is provided, which may be configured to store program code for performing the following steps: detecting a first interaction operation for reclaiming memory of a mobile device; determining A target memory recovery mode corresponding to the interaction operation; performing memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device.
在本发明实施例中,检测到用于回收移动设备的内存的第一交互操作;确定与第一交互操作对应的目标内存回收模式;对移动设备上与目标内存回收模式对应的一类应用进行内存回收,从而解决了相关技术中对内存进行回收时操作较繁琐的技术问题,实现了对内存进行便捷回收的技术效果。In the embodiment of the present invention, a first interaction operation for recovering a memory of the mobile device is detected; a target memory recovery mode corresponding to the first interaction operation is determined; and a type of application corresponding to the target memory recovery mode on the mobile device is performed. The memory is reclaimed, thereby solving the technical problem of cumbersome operation when recovering the memory in the related art, and realizing the technical effect of conveniently recycling the memory.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的可选的移动终端的示意图;1 is a schematic diagram of an optional mobile terminal in accordance with an embodiment of the present invention;
图2是根据本发明实施例的内存的回收方法的流程图;2 is a flow chart of a method for recycling a memory according to an embodiment of the present invention;
图3是根据本发明实施例的可选的内存的回收方法的流程图;3 is a flow chart of an alternative memory recycling method in accordance with an embodiment of the present invention;
图4是根据本发明实施例的可选的内存管理方案界面的示意图; 4 is a schematic diagram of an optional memory management scheme interface in accordance with an embodiment of the present invention;
图5是根据本发明实施例的内存的回收装置的示意图。FIG. 5 is a schematic diagram of a memory recovery apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例一所提供的方法实施例可以在移动终端(如可穿戴设备)、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器101(处理器101可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器103、以及用于通信功能的传输装置105。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。The method embodiment provided in Embodiment 1 of the present application can be executed in a mobile terminal (such as a wearable device), a computer terminal, or the like. For example, running on a mobile terminal, as shown in FIG. 1, the mobile terminal may include one or more (only one shown in FIG. 1) processor 101 (the processor 101 may include but is not limited to a microprocessor MCU or may A processing device such as a programming logic device FPGA, a memory 103 for storing data, and a transmission device 105 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
存储器103可用于存储应用软件的软件程序以及模块,如本发明实施例中的设备的控制方法对应的程序指令/模块,处理器101通过运行存储在存储器103内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 103 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the control method of the device in the embodiment of the present invention, and the processor 101 executes each of the software programs and modules stored in the memory 103. A functional application and data processing, that is, the above method is implemented. The memory can include high speed random access memory and can also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory can further include memory remotely located relative to the processor, which can be connected to the computer terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
可选地,上述的存储介质(即存储器)可以被设置为存储用于执行以下步骤的程序代码:检测到用于回收移动设备的内存的第一交互操作;确定与第一交互操作对应的目标内存回收模式;对移动设备上与目标内存回收模式对应的一类应用进行内存回收。Optionally, the above storage medium (ie, memory) may be configured to store program code for performing the following steps: detecting a first interaction operation for reclaiming memory of the mobile device; determining a target corresponding to the first interaction operation Memory reclamation mode; performs memory reclamation on a type of application corresponding to the target memory reclamation mode on the mobile device.
传输装置用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输装置包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置可以为射频(Radio Frequency,RF)模块, 其用于通过无线方式与互联网进行通讯。The transmission device is for receiving or transmitting data via a network. The above-described network specific examples may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device includes a Network Interface Controller (NIC) that can be connected to other network devices through the base station to communicate with the Internet. In one example, the transmission device can be a radio frequency (RF) module. It is used to communicate wirelessly with the Internet.
根据本发明实施例,提供了一种内存的回收方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。In accordance with an embodiment of the present invention, a method embodiment of a memory recycling method is provided, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and Although the logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图2是根据本发明实施例的内存的回收方法的流程图,如图2所示,该方法包括如下步骤:FIG. 2 is a flowchart of a method for recovering a memory according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
步骤S201,检测到用于回收移动设备的内存的第一交互操作。Step S201, detecting a first interaction operation for reclaiming memory of the mobile device.
步骤S202,确定与第一交互操作对应的目标内存回收模式。Step S202, determining a target memory recovery mode corresponding to the first interaction operation.
步骤S203,对移动设备上与目标内存回收模式对应的一类应用进行内存回收。Step S203: Perform memory recovery on a type of application corresponding to the target memory collection mode on the mobile device.
通过上述实施例,检测到用于回收移动设备的内存的第一交互操作;确定与第一交互操作对应的目标内存回收模式;对移动设备上与目标内存回收模式对应的一类应用进行内存回收,从而解决了相关技术中对内存进行回收时操作较繁琐的技术问题,实现了对内存进行便捷回收的技术效果。Through the foregoing embodiment, the first interaction operation for recovering the memory of the mobile device is detected; the target memory recovery mode corresponding to the first interaction operation is determined; and the memory recovery is performed on a type of application corresponding to the target memory recovery mode on the mobile device. Therefore, the technical problem of cumbersome operation when recovering memory in the related art is solved, and the technical effect of conveniently recycling the memory is realized.
可选地,上述步骤的执行主体可以为移动设备的控制模块等,但不限于此。Optionally, the execution body of the foregoing steps may be a control module of the mobile device, etc., but is not limited thereto.
在步骤S201中,检测到用于回收移动设备的内存的第一交互操作包括以下之一:在移动设备的触控屏上检测到用于确定目标内存回收模式的第一交互操作;通过移动设备的图像识别模块识别到用于选择目标内存回收模式的第一交互操作。In step S201, detecting that the first interaction operation for reclaiming the memory of the mobile device includes one of: detecting a first interaction operation for determining a target memory recovery mode on the touch screen of the mobile device; The image recognition module identifies a first interaction operation for selecting a target memory reclamation mode.
在移动设备的触控屏上检测到的第一交互操作包括两种类型:一种是通过触摸屏检测到的用户的触控选择操作;另一种是在压感触控屏上检测到的具有压力值的触控选择操作,可以根据该压力值确定对应的选择。The first interaction operation detected on the touch screen of the mobile device includes two types: one is a touch selection operation of the user detected by the touch screen; and the other is pressure detected on the pressure sensitive touch screen. The touch selection operation of the value can determine the corresponding selection according to the pressure value.
通过移动设备的图像识别模块识别到的第一交互操作包括以下方式:一种是通过移动设备的前置摄像头是被用户的手势操作;第二种是通过移动设备的后置摄像头识别用户的手势操作;第三种是,当该移动设备与其它移动设备无线连接(如通过蓝牙、NFC等)时,该移动设备可以通过其它移动设备的图像识别模块(如前置摄像头、后置摄像头等)识别出用户的手势操作。The first interaction operation identified by the image recognition module of the mobile device includes the following manners: one is that the front camera of the mobile device is operated by the gesture of the user; the second is that the gesture of the user is recognized by the rear camera of the mobile device The third is that when the mobile device is wirelessly connected to other mobile devices (such as through Bluetooth, NFC, etc.), the mobile device can pass image recognition modules of other mobile devices (such as front camera, rear camera, etc.) Identify the user's gestures.
在步骤S202中,确定与第一交互操作对应的目标内存回收模式包括以下之一:确定多个内存回收模式中被第一交互操作所选中的内存回收模式为目标内存回收模式;确定多个内存回收模式中与第一交互操作的压力值对应的内存回收模式为目标内 存回收模式。In step S202, determining that the target memory recovery mode corresponding to the first interaction operation comprises one of: determining that the memory recovery mode selected by the first interaction operation among the plurality of memory collection modes is the target memory collection mode; determining the plurality of memory The memory recovery mode corresponding to the pressure value of the first interaction operation in the recovery mode is within the target Save and recycle mode.
可选地,上述的第一交互操作可以为用户当前的即时操作;也可以是用户预先设置好的操作,如用户定时每隔固定时间(如1个小时)进行内存清理或者预定义好的某个固定时间进行内存清理。Optionally, the first interaction operation may be the current instant operation of the user, or may be an operation preset by the user, for example, the user periodically performs memory cleaning or a predefined one at a fixed time (such as 1 hour). A fixed time for memory cleaning.
根据一个示例性实施例,在确定多个内存回收模式中被第一交互操作所选中的内存回收模式为目标内存回收模式时,对于用户在触控屏上直接进行触控选择的操作或者通过移动设备的图像识别模块识别出来的手势选择操作,可以直接确定被选中的内存回收模式(即目标内存回收模式);而在确定多个内存回收模式中与第一交互操作的压力值对应的内存回收模式为目标内存回收模式,可以根据用户的第一交互操作的压力值确定与该压力值对应的内存回收模式(即目标内存回收模式)。According to an exemplary embodiment, when it is determined that the memory recovery mode selected by the first interaction operation is the target memory recovery mode among the plurality of memory collection modes, the user directly performs a touch selection operation on the touch screen or by moving The gesture selection operation recognized by the image recognition module of the device can directly determine the selected memory recovery mode (ie, the target memory recovery mode); and determine the memory recovery corresponding to the pressure value of the first interaction operation in determining multiple memory recovery modes. The mode is the target memory recovery mode, and the memory recovery mode corresponding to the pressure value (ie, the target memory recovery mode) can be determined according to the pressure value of the user's first interaction operation.
在步骤S203中,对移动设备上与目标内存回收模式对应的一类应用进行内存回收包括:获取与目标内存回收模式对应的目标应用特征信息;确定特征信息与目标应用特征信息匹配的一类应用;回收与目标应用特征信息匹配的一类应用所占用的内存。In step S203, performing memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device includes: acquiring target application feature information corresponding to the target memory recovery mode; and determining a type of application that matches the feature information with the target application feature information. Reclaims memory used by a class of applications that match the target application feature information.
可选地,应用特征信息包括以下至少之一:应用名称、应用使用频率以及应用所占用内存的大小。Optionally, the application feature information includes at least one of the following: an application name, an application usage frequency, and a size of memory occupied by the application.
需要说明的是,在检测到用于回收移动设备的内存的第一交互操作之前,可以在移动设备上运行客户端,该客户端用于提供内存管理功能;在客户端上展示已有的内存管理方案,其中,每个内存管理方案包括多个内存回收模式;将与检测到的第二交互操作对应的内存管理方案作为当前的内存管理方案。如在初次运行该客户端或者在需要选择内存管理方案时,用户可以根据自己的实际需要在客户端中选择对应的内存管理方案。It should be noted that before detecting the first interaction operation for reclaiming the memory of the mobile device, the client may be run on the mobile device, the client is used to provide a memory management function; and the existing memory is displayed on the client. The management scheme, wherein each memory management scheme includes multiple memory recycling modes; and the memory management scheme corresponding to the detected second interaction operation is used as a current memory management scheme. For example, when the client is first run or when a memory management scheme needs to be selected, the user can select a corresponding memory management scheme in the client according to his actual needs.
在确定了对应的内存方案之后,在用户每次对内存进行清理时,可以通过在客户端上的交互操作选择该内存管理方案中的内存回收模式,在选中之后,移动设备可以获取对应于该内存回收模式的目标应用特征信息;并查找移动设备中所有应用中具有该目标应用特征信息的一类应用,然后回收这一类应用所占用的内存。After the corresponding memory scheme is determined, each time the user cleans the memory, the memory recovery mode in the memory management scheme can be selected by the interaction operation on the client, and after the selection, the mobile device can obtain the corresponding The target of the memory reclamation mode applies feature information; and finds a type of application having the target application feature information of all applications in the mobile device, and then reclaims the memory occupied by the application.
可选地,在移动设备上运行客户端之后,用户可在客户端中自定义内存管理方案:在移动设备上接收用户输入的应用特征信息和对应的内存回收模式;保存所有输入的应用特征信息和对应的内存回收模式为新增的内存管理方案。这样,用户就可以通过 自己定义的内存回收模式来进行内存管理.Optionally, after running the client on the mobile device, the user may customize the memory management scheme in the client: receiving the application feature information input by the user and the corresponding memory recycling mode on the mobile device; saving all the input application feature information And the corresponding memory recycling mode is a new memory management scheme. In this way, the user can pass Self-defined memory recycling mode for memory management.
通过上述实施例,用户可以在移动设备上按照需求自定义好内存管理模式,从而可以提高内存管理的灵活性和便捷性。Through the above embodiments, the user can customize the memory management mode on the mobile device according to requirements, thereby improving the flexibility and convenience of memory management.
下面结合图3和图4,以手机(即移动设备)为例详述本申请的实施例。Hereinafter, an embodiment of the present application will be described in detail by taking a mobile phone (ie, a mobile device) as an example in conjunction with FIG. 3 and FIG.
上述的手机为可以回收内存的智能移动设备,具有用于回收内存的操作界面和设置界面(即客户端),可以进行压感触控接收的装置(如压感触控屏)等。如图3所示:The above-mentioned mobile phone is a smart mobile device capable of reclaiming memory, and has an operation interface and a setting interface (ie, a client) for recycling memory, and a device capable of receiving touch-sensitive touch (such as a pressure sensitive touch screen). As shown in Figure 3:
本发明实施例描述了一种利用手机来判断获取压感触控大小,并应用于内存回收的一种方案。该方案可以包括如下步骤:The embodiment of the invention describes a solution for determining the size of a pressure sensitive touch using a mobile phone and applying it to memory recovery. The program can include the following steps:
步骤S301,在手机内置一个默认的内存回收级别。In step S301, a default memory recycling level is built in the mobile phone.
如图4所示,利用现有的MTK的7层内存管理方案,将该方案整理成一个可选择的选项;还可以提高用户自定的方案(如方案一、方案二);并允许用户新增管理方案。As shown in FIG. 4, the existing MTK 7-layer memory management scheme is used to organize the scheme into an optional option; the user-defined scheme can also be improved (such as scheme 1 and scheme 2); and the user is allowed to new Increase management plan.
步骤S302,用户根据诸如内存占用大小、使用频率或应用名等(即应用特征信息)来设定内存回收级别。In step S302, the user sets the memory recycling level according to, for example, the memory occupancy size, the frequency of use, or the application name (ie, application feature information).
根据一个示例性实施例,初始化时,显示上述默认选项和用户已经给出的选项方案;如果用户还未设置方案,可以有新增选项。可以通过如下子步骤实现:According to an exemplary embodiment, upon initialization, the above default options and option schemes that the user has given are displayed; if the user has not set the scheme, there may be new options. This can be achieved by the following substeps:
步骤S3021,确认用户选择的整理方案并给出使用按钮;Step S3021, confirming the finishing scheme selected by the user and giving a use button;
步骤S3022,等待用户点击按钮,直至用户按下该按钮;Step S3022, waiting for the user to click the button until the user presses the button;
步骤S3023,确认用户选择的内存回收等级,如4、5、6等,来确定具体的操作界面显示;Step S3023, confirming the memory recovery level selected by the user, such as 4, 5, 6, etc., to determine a specific operation interface display;
步骤S3024,当用户点击回收按钮后,弹出多级菜单,给出压力分级显示界面和当前选择状态界面,显示当前的用户压力等;Step S3024, when the user clicks the recycle button, a multi-level menu pops up, and a pressure grading display interface and a current selection state interface are displayed, and the current user pressure is displayed;
步骤S3025,检测用户是否放开按钮;Step S3025, detecting whether the user releases the button;
步骤S3026,在用户放开按钮时,记录用户选择的等级;Step S3026, when the user releases the button, recording the level selected by the user;
步骤S3027,根据用户最终选择的等级来进行内存回收,并记录下相关信息。In step S3027, the memory is recovered according to the level finally selected by the user, and the related information is recorded.
步骤S303,在手机上设置一个内存回收界面或按钮。Step S303, setting a memory recycling interface or button on the mobile phone.
步骤S304,用户在手机上内存回收界面进行操作时,记录回收的压力等级。In step S304, when the user operates on the memory recovery interface on the mobile phone, the recovered pressure level is recorded.
步骤S305,根据确认的压力等级来进行内存回收。 In step S305, memory recovery is performed based on the confirmed pressure level.
通过上述实施例,使用本申请的方案进行移动设备的内存回收,使得手机可以更为便捷多样的回收内存,使手机对内存的回收变得更为方便合理。Through the above embodiments, the memory recovery of the mobile device is performed by using the solution of the present application, so that the mobile phone can more conveniently and multiplex the memory, and the recovery of the memory by the mobile phone becomes more convenient and reasonable.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
实施例2Example 2
本发明实施例中还提供了一种内存的回收装置。该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。A memory recovery device is also provided in the embodiment of the present invention. The device is used to implement the above embodiments and preferred embodiments, and the description thereof has been omitted. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本发明实施例的内存的回收装置的示意图。如图5所示,该装置可以包括:检测单元51、确定单元53以及回收单元55。FIG. 5 is a schematic diagram of a memory recovery apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus may include a detecting unit 51, a determining unit 53, and a recycling unit 55.
检测单元51,用于检测到用于回收移动设备的内存的第一交互操作;a detecting unit 51, configured to detect a first interaction operation for reclaiming a memory of the mobile device;
确定单元53,用于确定与第一交互操作对应的目标内存回收模式;a determining unit 53 configured to determine a target memory recovery mode corresponding to the first interaction operation;
回收单元55,用于对移动设备上与目标内存回收模式对应的一类应用进行内存回收。The recycling unit 55 is configured to perform memory recovery on a type of application corresponding to the target memory collection mode on the mobile device.
通过上述实施例,检测单元检测到用于回收移动设备的内存的第一交互操作;确定单元确定与第一交互操作对应的目标内存回收模式;回收单元对移动设备上与目标内存回收模式对应的一类应用进行内存回收,从而解决了相关技术中对内存进行回收时操作较繁琐的技术问题,实现了对内存进行便捷回收的技术效果。With the above embodiment, the detecting unit detects a first interaction operation for reclaiming the memory of the mobile device; the determining unit determines a target memory recovery mode corresponding to the first interaction operation; and the recovery unit corresponds to the target memory recovery mode on the mobile device A kind of application performs memory recovery, thereby solving the technical problem that the operation of the related technology is more complicated when the memory is recycled, and realizes the technical effect of conveniently recycling the memory.
可选地,检测单元包括:第一检测模块,用于在移动设备的触控屏上检测到用于确定目标内存回收模式的第一交互操作;第二检测模块,用于通过移动设备的图像识别模块识别到用于选择目标内存回收模式的第一交互操作。Optionally, the detecting unit includes: a first detecting module, configured to detect a first interaction operation for determining a target memory recycling mode on the touch screen of the mobile device; and a second detecting module, configured to pass the image of the mobile device The identification module identifies a first interaction operation for selecting a target memory reclamation mode.
在移动设备的触控屏上检测到的第一交互操作包括两种类型:一种是通过触摸屏检测到的用户的触控选择操作;另一种是在压感触控屏上检测到的具有压力值的触控 选择操作,可以根据该压力值确定对应的选择。The first interaction operation detected on the touch screen of the mobile device includes two types: one is a touch selection operation of the user detected by the touch screen; and the other is pressure detected on the pressure sensitive touch screen. Value touch The selection operation can determine the corresponding selection based on the pressure value.
通过移动设备的图像识别模块识别到的第一交互操作包括以下方式:一种是通过移动设备的前置摄像头是被用户的手势操作;第二种是通过移动设备的后置摄像头识别用户的手势操作;第三种是,当该移动设备与其它移动设备无线连接(如通过蓝牙、NFC等)时,该移动设备可以通过其它移动设备的图像识别模块(如前置摄像头、后置摄像头等)识别出用户的手势操作。The first interaction operation identified by the image recognition module of the mobile device includes the following manners: one is that the front camera of the mobile device is operated by the gesture of the user; the second is that the gesture of the user is recognized by the rear camera of the mobile device The third is that when the mobile device is wirelessly connected to other mobile devices (such as through Bluetooth, NFC, etc.), the mobile device can pass image recognition modules of other mobile devices (such as front camera, rear camera, etc.) Identify the user's gestures.
可选地,确定单元包括:第二确定模块,用于确定多个内存回收模式中被第一交互操作所选中的内存回收模式为目标内存回收模式;第三确定模块,用于确定多个内存回收模式中与第一交互操作的压力值对应的内存回收模式为目标内存回收模式。Optionally, the determining unit includes: a second determining module, configured to determine, in the plurality of memory recycling modes, the memory recycling mode selected by the first interaction operation is a target memory recycling mode; and the third determining module is configured to determine the multiple memory The memory recovery mode corresponding to the pressure value of the first interaction in the recycle mode is the target memory recovery mode.
根据一个示例性实施例,在确定多个内存回收模式中被第一交互操作所选中的内存回收模式为目标内存回收模式时,对于用户在触控屏上直接进行触控选择的操作或者通过移动设备的图像识别模块识别出来的手势选择操作,可以直接确定被选中的内存回收模式(即目标内存回收模式);而在确定多个内存回收模式中与第一交互操作的压力值对应的内存回收模式为目标内存回收模式,可以根据用户的第一交互操作的压力值确定与该压力值对应的内存回收模式(即目标内存回收模式)。According to an exemplary embodiment, when it is determined that the memory recovery mode selected by the first interaction operation is the target memory recovery mode among the plurality of memory collection modes, the user directly performs a touch selection operation on the touch screen or by moving The gesture selection operation recognized by the image recognition module of the device can directly determine the selected memory recovery mode (ie, the target memory recovery mode); and determine the memory recovery corresponding to the pressure value of the first interaction operation in determining multiple memory recovery modes. The mode is the target memory recovery mode, and the memory recovery mode corresponding to the pressure value (ie, the target memory recovery mode) can be determined according to the pressure value of the user's first interaction operation.
在上述实施例中,回收单元包括:获取模块,用于获取与目标内存回收模式对应的目标应用特征信息;第一确定模块,用于确定特征信息与目标应用特征信息匹配的一类应用;回收模块,用于回收与目标应用特征信息匹配的一类应用所占用的内存。In the above embodiment, the recovery unit includes: an acquisition module, configured to acquire target application feature information corresponding to the target memory recovery mode; and a first determining module, configured to determine a type of application that matches the feature information with the target application feature information; A module that reclaims memory used by a class of applications that match the target application feature information.
可选地,上述应用特征信息包括以下至少之一:应用名称、应用使用频率以及应用所占用内存的大小。Optionally, the foregoing application feature information includes at least one of the following: an application name, an application usage frequency, and a size of memory occupied by the application.
可选地,该装置还可以包括:运行单元,用于在检测到用于回收移动设备的内存的第一交互操作之前,在移动设备上运行客户端,其中,客户端用于提供内存管理功能;展示单元,用于在客户端上展示已有的内存管理方案,其中,每个内存管理方案包括多个内存回收模式;处理单元,用于将与检测到的第二交互操作对应的内存管理方案作为当前的内存管理方案。Optionally, the apparatus may further include: an operation unit, configured to run the client on the mobile device before detecting the first interaction operation for reclaiming the memory of the mobile device, where the client is configured to provide a memory management function a display unit for displaying an existing memory management scheme on the client, wherein each memory management scheme includes multiple memory recycling modes; and a processing unit for performing memory management corresponding to the detected second interaction operation The solution is the current memory management solution.
在一个可选的实施例中,该装置还可以包括:接收单元,用于在移动设备上运行客户端之后,在移动设备上接收输入的应用特征信息和对应的内存回收模式;保存单元,用于保存所有输入的应用特征信息和对应的内存回收模式为新增的内存管理方案。 In an optional embodiment, the apparatus may further include: a receiving unit, configured to receive the input application feature information and the corresponding memory recovery mode on the mobile device after running the client on the mobile device; Save all input application feature information and corresponding memory recovery mode as a new memory management scheme.
通过上述实施例,用户可以在移动设备上按照需求自定义好内存管理模式,从而可以提高内存管理的灵活性和便捷性。Through the above embodiments, the user can customize the memory management mode on the mobile device according to requirements, thereby improving the flexibility and convenience of memory management.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例3Example 3
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,检测到用于回收移动设备的内存的第一交互操作;S1, detecting a first interaction operation for reclaiming memory of the mobile device;
S2,确定与第一交互操作对应的目标内存回收模式;S2. Determine a target memory recovery mode corresponding to the first interaction operation.
S3,对移动设备上与目标内存回收模式对应的一类应用进行内存回收。S3, performing memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:检测到用于回收移动设备的内存的第一交互操作;确定与第一交互操作对应的目标内存回收模式;对移动设备上与目标内存回收模式对应的一类应用进行内存回收。Optionally, in this embodiment, the processor executes, according to the stored program code in the storage medium, detecting a first interaction operation for reclaiming memory of the mobile device, and determining a target memory recovery mode corresponding to the first interaction operation. Memory reclamation for a class of applications on the mobile device that correspond to the target memory reclamation mode.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的技术方案可以应用于内存管理领域。采用本发明实施例提供的技术方案,检测到用于回收移动设备的内存的第一交互操作;确定与第一交互操作对应的目标内存回收模式;对移动设备上与目标内存回收模式对应的一类应用进行内存回收,从而解决了相关技术中对内存进行回收时操作较繁琐的技术问题,实现了对内存进行便捷回收的技术效果。 The technical solution provided by the embodiment of the present invention can be applied to the field of memory management. The first interaction operation for recovering the memory of the mobile device is detected by using the technical solution provided by the embodiment of the present invention; determining a target memory recovery mode corresponding to the first interaction operation; and corresponding to the target memory recovery mode on the mobile device The class application performs memory recovery, thereby solving the technical problem of cumbersome operation when recovering memory in the related art, and realizing the technical effect of conveniently recycling the memory.

Claims (15)

  1. 一种内存的回收方法,其中,包括:A memory recycling method, including:
    检测到用于回收移动设备的内存的第一交互操作;Detecting a first interaction operation for reclaiming memory of the mobile device;
    确定与所述第一交互操作对应的目标内存回收模式;Determining a target memory recovery mode corresponding to the first interaction operation;
    对所述移动设备上与目标内存回收模式对应的一类应用进行内存回收。Performing memory recovery on a type of application corresponding to the target memory recovery mode on the mobile device.
  2. 根据权利要求1所述的方法,其中,对所述移动设备上与所述目标内存回收模式对应的一类应用进行内存回收包括:The method of claim 1, wherein performing memory reclamation on a type of application corresponding to the target memory reclamation mode on the mobile device comprises:
    获取与所述目标内存回收模式对应的目标应用特征信息;Obtaining target application feature information corresponding to the target memory recovery mode;
    确定特征信息与所述目标应用特征信息匹配的所述一类应用;Determining the type of application that the feature information matches the target application feature information;
    回收与所述目标应用特征信息匹配的所述一类应用所占用的内存。Retrieving memory occupied by the type of application that matches the target application feature information.
  3. 根据权利要求1或2所述的方法,其中,在检测到用于回收移动设备的内存的第一交互操作之前,所述方法还包括:The method according to claim 1 or 2, wherein before detecting the first interaction operation for reclaiming the memory of the mobile device, the method further comprises:
    在所述移动设备上运行客户端,其中,所述客户端用于提供内存管理功能;Running a client on the mobile device, wherein the client is configured to provide a memory management function;
    在所述客户端上展示已有的内存管理方案,其中,每个所述内存管理方案包括多个内存回收模式;Presenting an existing memory management scheme on the client, wherein each of the memory management schemes includes multiple memory recycling modes;
    将与检测到的第二交互操作对应的内存管理方案作为当前的内存管理方案。The memory management scheme corresponding to the detected second interaction operation is taken as the current memory management scheme.
  4. 根据权利要求3所述的方法,其中,在所述移动设备上运行客户端之后,所述方法还包括:The method of claim 3, wherein after the client is run on the mobile device, the method further comprises:
    在所述移动设备上接收输入的应用特征信息和对应的内存回收模式;Receiving input application feature information and a corresponding memory recovery mode on the mobile device;
    保存所有输入的应用特征信息和对应的内存回收模式为新增的内存管理方案。Save all input application feature information and corresponding memory reclamation mode to the new memory management scheme.
  5. 根据权利要求4所述的方法,其中,所述应用特征信息包括以下至少之一:应用名称、应用使用频率以及应用所占用内存的大小。The method according to claim 4, wherein the application feature information comprises at least one of an application name, an application usage frequency, and a size of memory occupied by the application.
  6. 根据权利要求1所述的方法,其中,检测到用于回收移动设备的内存的第一交互操作包括以下之一:The method of claim 1 wherein detecting the first interaction for reclaiming memory of the mobile device comprises one of:
    在所述移动设备的触控屏上检测到用于确定所述目标内存回收模式的所述第一交互操作;The first interaction operation for determining the target memory recovery mode is detected on a touch screen of the mobile device;
    通过所述移动设备的图像识别模块识别到用于选择所述目标内存回收模式的所述第一交互操作。 The first interaction operation for selecting the target memory reclamation mode is identified by an image recognition module of the mobile device.
  7. 根据权利要求1所述的方法,其中,确定与所述第一交互操作对应的目标内存回收模式包括以下之一:The method of claim 1, wherein determining a target memory reclamation mode corresponding to the first interworking operation comprises one of the following:
    确定多个内存回收模式中被所述第一交互操作所选中的内存回收模式为所述目标内存回收模式;Determining, in a plurality of memory recycling modes, a memory recycling mode selected by the first interaction operation as the target memory recycling mode;
    确定所述多个内存回收模式中与所述第一交互操作的压力值对应的内存回收模式为所述目标内存回收模式。Determining, in the plurality of memory recycling modes, a memory recovery mode corresponding to the pressure value of the first interaction operation as the target memory recovery mode.
  8. 一种内存的回收装置,其中,包括:A memory recycling device, comprising:
    检测单元,设置为检测到用于回收移动设备的内存的第一交互操作;a detecting unit configured to detect a first interaction operation for reclaiming memory of the mobile device;
    确定单元,设置为确定与所述第一交互操作对应的目标内存回收模式;a determining unit, configured to determine a target memory recovery mode corresponding to the first interaction operation;
    回收单元,设置为对所述移动设备上与目标内存回收模式对应的一类应用进行内存回收。The recycling unit is configured to perform memory recovery on a type of application corresponding to the target memory recycling mode on the mobile device.
  9. 根据权利要求8所述的装置,其中,所述回收单元包括:The apparatus of claim 8 wherein said recycling unit comprises:
    获取模块,设置为获取与所述目标内存回收模式对应的目标应用特征信息;An acquiring module, configured to acquire target application feature information corresponding to the target memory recovery mode;
    第一确定模块,设置为确定特征信息与所述目标应用特征信息匹配的所述一类应用;a first determining module, configured to determine the type of application that the feature information matches the target application feature information;
    回收模块,设置为回收与所述目标应用特征信息匹配的所述一类应用所占用的内存。And a recycling module configured to reclaim memory occupied by the one type of application that matches the target application feature information.
  10. 根据权利要求8或9所述的装置,其中,所述装置还包括:The device according to claim 8 or 9, wherein the device further comprises:
    运行单元,设置为在检测到用于回收移动设备的内存的第一交互操作之前,在所述移动设备上运行客户端,其中,所述客户端用于提供内存管理功能;a running unit, configured to run a client on the mobile device before detecting a first interaction operation for reclaiming memory of the mobile device, wherein the client is configured to provide a memory management function;
    展示单元,设置为在所述客户端上展示已有的内存管理方案,其中,每个所述内存管理方案包括多个内存回收模式;a display unit, configured to display an existing memory management scheme on the client, where each of the memory management schemes includes multiple memory recycling modes;
    处理单元,设置为将与检测到的第二交互操作对应的内存管理方案作为当前的内存管理方案。The processing unit is configured to use a memory management scheme corresponding to the detected second interaction operation as a current memory management scheme.
  11. 根据权利要求10所述的装置,其中,所述装置还包括:The device of claim 10, wherein the device further comprises:
    接收单元,设置为在所述移动设备上运行客户端之后,在所述移动设备上接收输入的应用特征信息和对应的内存回收模式;a receiving unit, configured to receive input application feature information and a corresponding memory recovery mode on the mobile device after running the client on the mobile device;
    保存单元,设置为保存所有输入的应用特征信息和对应的内存回收模式为新增的内存管理方案。 The save unit is set to save all input application feature information and the corresponding memory recovery mode as a new memory management scheme.
  12. 根据权利要求11所述的装置,其中,所述应用特征信息包括以下至少之一:应用名称、应用使用频率以及应用所占用内存的大小。The apparatus according to claim 11, wherein the application feature information comprises at least one of an application name, an application usage frequency, and a size of memory occupied by the application.
  13. 根据权利要求8所述的装置,其中,所述检测单元包括:The apparatus of claim 8 wherein said detecting unit comprises:
    第一检测模块,设置为在所述移动设备的触控屏上检测到用于确定所述目标内存回收模式的所述第一交互操作;The first detecting module is configured to detect, on the touch screen of the mobile device, the first interaction operation for determining the target memory recovery mode;
    第二检测模块,设置为通过所述移动设备的图像识别模块识别到用于选择所述目标内存回收模式的所述第一交互操作。a second detection module configured to identify, by the image recognition module of the mobile device, the first interaction operation for selecting the target memory reclamation mode.
  14. 根据权利要求8所述的装置,其中,所述确定单元包括:The apparatus of claim 8 wherein said determining unit comprises:
    第二确定模块,设置为确定多个内存回收模式中被所述第一交互操作所选中的内存回收模式为所述目标内存回收模式;a second determining module, configured to determine, in the plurality of memory recycling modes, that the memory recovery mode selected by the first interaction operation is the target memory recovery mode;
    第三确定模块,设置为确定所述多个内存回收模式中与所述第一交互操作的压力值对应的内存回收模式为所述目标内存回收模式。The third determining module is configured to determine that the memory recovery mode corresponding to the pressure value of the first interaction operation in the plurality of memory recovery modes is the target memory recovery mode.
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行的一个或多个程序,所述一个或多个程序被所述计算机执行时使所述计算机执行如根据权利要求1-7中任一项所述的内存的回收方法。 A computer storage medium having stored therein one or more programs executable by a computer, the one or more programs being executed by the computer to cause the computer to perform as in claims 1-7 A method of recovering memory as described in any one of the above.
PCT/CN2017/097899 2017-02-28 2017-08-17 Memory reclamation method and device and computer storage medium WO2018157565A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710113908.7 2017-02-28
CN201710113908.7A CN108509350A (en) 2017-02-28 2017-02-28 The recovery method and device of memory

Publications (1)

Publication Number Publication Date
WO2018157565A1 true WO2018157565A1 (en) 2018-09-07

Family

ID=63369699

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/097899 WO2018157565A1 (en) 2017-02-28 2017-08-17 Memory reclamation method and device and computer storage medium

Country Status (2)

Country Link
CN (1) CN108509350A (en)
WO (1) WO2018157565A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530235A (en) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
CN105893153A (en) * 2016-03-31 2016-08-24 北京百纳威尔无线通信设备有限公司 Memory cleaning method and device for mobile terminal
CN105975301A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Memory cleaning method and device, and electronic equipment
CN105979095A (en) * 2016-06-27 2016-09-28 努比亚技术有限公司 Mobile terminal and application power consumption control method
CN106326137A (en) * 2015-07-02 2017-01-11 腾讯科技(深圳)有限公司 Memory optimization method and apparatus, and user equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530235A (en) * 2013-10-18 2014-01-22 北京奇虎科技有限公司 Method and device for clearing internal storage in mobile terminal
CN106326137A (en) * 2015-07-02 2017-01-11 腾讯科技(深圳)有限公司 Memory optimization method and apparatus, and user equipment
CN105893153A (en) * 2016-03-31 2016-08-24 北京百纳威尔无线通信设备有限公司 Memory cleaning method and device for mobile terminal
CN105975301A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Memory cleaning method and device, and electronic equipment
CN105979095A (en) * 2016-06-27 2016-09-28 努比亚技术有限公司 Mobile terminal and application power consumption control method

Also Published As

Publication number Publication date
CN108509350A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN105740078B (en) Memory management method, device and terminal
US20190095059A1 (en) Method and device for processing application icon and electronic apparatus
EP2854013B1 (en) Method for displaying in electronic device and electronic device thereof
US20170351850A1 (en) Method for activating function using fingerprint and electronic device including touch display supporting the same
WO2017005167A1 (en) Method and device for recommending applications
US11169627B2 (en) Apparatus and method for providing memo function
WO2019072133A1 (en) Face recognition method and related product
CN105824497A (en) Unread message displaying method and mobile terminal
CN105005735B (en) Downloading management method and download management device
EP2983074B1 (en) Method and apparatus for displaying a screen in electronic devices
CN105022955B (en) A kind of locking means and mobile terminal of application program
CN104601683A (en) File download management method, mobile terminal and communication system
US20160085405A1 (en) Device for handling touch input and method thereof
WO2022022566A1 (en) Graphic code identification method and apparatus and electronic device
CN104572348A (en) Terminal
WO2021233282A1 (en) Method and apparatus for displaying message detail page, and electronic device
WO2019047715A1 (en) Unlocking control method and related product
CN104298434B (en) A kind of information processing method and electronic equipment
CN105573587A (en) Icon management method and device
CN104679388A (en) Method for starting application through duplicated icon and mobile terminal thereof
WO2022156663A1 (en) Application program management method and apparatus, and electronic device
CN105205066B (en) Picture searching method and device
EP3131031A1 (en) Content security processing method and electronic device supporting the same
CN109062652A (en) Fingerprint recognition reminding method, device, storage medium and electronic equipment
CN108241515A (en) Application shortcut method for building up and terminal

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: 17899158

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: 17899158

Country of ref document: EP

Kind code of ref document: A1