我正在使用leak-finder-for-javascript 工具来查找javascript 中的内存泄漏。对于这个 m 在 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_ 时,它会向我显示有泄漏的对象,但随后会显示此错误。