// // CCMemory.m // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import "CCMemory.h" @implementation CCMemory // get the info of memory + (BOOL)getMemoryInfo:(vm_statistics_data_t *)vmStats { mach_msg_type_number_t infoCount = HOST_VM_INFO_COUNT; kern_return_t ret = host_statistics(mach_host_self(), HOST_VM_INFO, (host_info_t)vmStats, &infoCount); return ret == KERN_SUCCESS; } @end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCMemory.m
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCMemory.m
本文详细解读了CCMemory.m文件中CCFC模块的功能,包括如何获取内存信息及其实现细节,提供了一种深入理解iOS开发中内存管理的实用案例。

被折叠的 条评论
为什么被折叠?



