Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for monitoring allocation situation of memory based on Media-Tech (MTK) platform

A technology of memory allocation and status, applied in the direction of memory address/allocation/relocation, etc., can solve problems such as system exception, insufficient memory, memory leak, etc., and achieve the effect of optimizing memory management

Inactive Publication Date: 2014-03-12
杭州斯凯网络科技有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. The memory is used out of bounds, that is, the memory that should not be used is used. When the memory input exceeds the pre-allocated space size, it will overwrite a storage area behind the space, resulting in a system exception;
[0004] 2. Memory fragmentation, all the unusable free memory that appears in different places of the system in a small and discontinuous manner;
[0005] 3. Memory leaks. When a piece of previously allocated memory is no longer needed or cannot be accessed, it is not released, resulting in a decrease in the total available memory of a process, and the application loses control over the allocated memory; developers often need to spend a lot of time. A lot of effort and effort to debug crashes caused by out-of-bounds memory, out-of-memory problems caused by memory fragmentation, or device performance degradation caused by a reduction in the amount of available memory caused by memory leaks
[0006] In the prior art, the memory optimization in the process of program development is all carried out by means of printing, etc., which not only cannot display the current system memory status and application memory status in real time, but also is not visually intuitive enough.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for monitoring allocation situation of memory based on Media-Tech (MTK) platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The specific implementation manners of the present invention will be further described below in conjunction with the accompanying drawings.

[0036] A method for monitoring memory allocation status based on MTK platform, comprising the following steps:

[0037] (S001) Obtain the start address, end address, and total amount of memory of the entire memory block of the system;

[0038] (S002) Obtain the start address and end address of all free blocks;

[0039] (S003) Draw and form a total memory occupancy map, as shown in the first row of the rectangular diagram in Figure 1, in the memory map, fill the free blocks of memory with the first color, and fill the memory occupied blocks with the second color;

[0040] Steps (S001) to (S003) form a rectangular strip with a certain length and a certain height. The length of the rectangular strip is related to the system

[0041] The total amount of memory and the address of the memory block form a corresponding relationship, an...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for monitoring the allocation situation of memory based on a Media-Tech (MTK) platform. The method comprises the following steps of: acquiring a starting address, an ending address and memory total amount of the whole memory block of a system; acquiring the starting addresses and the ending addresses of all free blocks; drawing to form a memory total amount duty graph; and in the memory total amount duty graph, filling the idle blocks of the memory by using a first color, and filling occupation blocks of the memory by using a second color. In the terminal development of the MTK platform, the allocation situation of an application memory is shown in a graphic mode, a debugging interface is called out by shortcut keys at any program running moment, the occupation and free situations of the memory total amount of the system by the current application can be clearly shown on the debugging interface; when a program runs, a mode of intuitively acquiring the occupation situation of the memory in real time helps a user to timely find the problems of crossing use of the memory, memory leakage of memory fragments and the like in a development process; and the memory can be timely debugged and optimized.

Description

technical field [0001] The invention relates to a method for monitoring memory allocation status based on an MTK platform. Background technique [0002] It is very important to allocate memory during programming. Dynamic memory can help allocate the required memory space during the running of the program instead of allocating it at the time of process startup. Then, it is also very important to effectively manage dynamic memory. , especially during software development in resource-constrained environments such as embedded. In the process of developing embedded programs using C language, there are often the following memory problems: [0003] 1. The memory is used out of bounds, that is, the memory that should not be used is used. When the memory input exceeds the pre-allocated space size, it will overwrite a storage area behind the space, resulting in a system exception; [0004] 2. Memory fragmentation, all the unusable free memory that appears in different places of the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/02G06F12/06
Inventor 王建
Owner 杭州斯凯网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products