技术宅,fat-man

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

导航

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 on 2012-07-02 11:45  codestyle  阅读(637)  评论(0)    收藏  举报