技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

2012年7月2日 #

python:内存泄漏测试

摘要: #测试内存泄露#import gc#gc.enable()#gc.set_debug(gc.DEBUG_LEAK)#gc.collect()#start = len(gc.garbage)#print aDict[CMD]self._funcmap[ aDict[CMD] ]( aCur, self, aDict )#gc.collect()#end = len(gc.garbage)#if start != end:# print "************************* %d - %d" % (start, end) 阅读全文

posted @ 2012-07-02 11:45 codestyle 阅读(637) 评论(0) 推荐(0)