我使用leak-finder-for-javascript工具在javascript中查找内存泄漏。 为此,在Windows 7上使用Python 2.5
INFO:root:Using leak definition closure-disposable
INFO:root:Reading suppressions from "closure-disposable-suppressions.txt"
INFO:root:Taking heap snapshot
INFO:root:Analyzing heap snapshot
ERROR:root:Error analyzing snapshot: <class 'leak_finder.Error'>
Traceback (most recent call last):
File "jsleakcheck.py", line 345, in <module>
sys.exit(main())
File "jsleakcheck.py", line 340, in main
result = leak_checker.Run(inspector_client)
File "jsleakcheck.py", line 151, in Run
leaks = self._FindLeaks(client)
File "jsleakcheck.py", line 189, in _FindLeaks
self.leak_definition.stacktrace_suffix).FindLeaks(nodes))
File "C:\Projects\retail\depot_tools\file\leak-finder\src\leak_finder.py", lin
e 571, in FindLeaks
raise Error('Container not found: %s' % edge_description)
leak_finder.Error: Container not found: goog.Disposable.instances_
当我尝试在chrome控制台中检查goog.Disposable.instances_时,它会向我显示有泄漏的对象但是它会显示此错误。
答案 0 :(得分:0)
错误跟踪器中讨论了该问题:
http://code.google.com/p/leak-finder-for-javascript/issues/detail?id=8
此错误消息的最可能原因: