发明名称 MEMORY ALLOCATION ANALYSIS
摘要 The subject disclosure relates to analyzing memory allocations for one or more computer-implemented processes. In particular, in conjunction with employing tags for tracking memory allocation commands, currently allocated memory can be examined for various characteristics of inefficient memory use. For example, as memory is initially allocated, a predetermined bit pattern can be written to the newly allocated memory. Thus, detection of the predetermined bit pattern can be indicative of wasted memory use. Moreover, additional features can be provided to both analyze data and present views associated with that analysis relating to identification of memory fragmentation, over-allocation, sparse memory use, duplication of allocations, multiple module loads, and so forth.
申请公布号 US2015032985(A1) 申请公布日期 2015.01.29
申请号 US201414514674 申请日期 2014.10.15
申请人 Microsoft Corporation 发明人 Hsia Calvin
分类号 G06F12/02 主分类号 G06F12/02
代理机构 代理人
主权项 1. A method performed by a computing system having a processor and memory, the method comprising: detecting a memory allocation instruction to allocate a portion of the memory, the memory allocation instruction being issued by a process executed by the processor; in response to the detected memory allocation instruction for allocating a portion of the memory, allocating a portion of the memory;creating a tag corresponding to the allocated portion of the memory, the tag including information of a call stack associated with the monitored memory allocation instruction; andstoring the created tag in a private heap of the memory; subsequently, detecting a memory release instruction to release the allocated portion of the memory; and in response to the detected memory release instruction, deleting the stored tag corresponding to the allocated portion of the memory from the private heap of the memory.
地址 Redmond WA US