Today's Question:  What are you most afraid of as a programmer?        GIVE A SHOUT

Technical Article => Business =>  Google

Google open sources Leak Finder for JavaScript

  sonic0002      2012-08-15 13:45:34      2,947    0    0

Google recently open sourced a tools for finding memory leaks in JavaScript programs.

In JavaScript you cannot have "memory leaks" in the traditional sense, but you can have objects which are unintentionally kept alive and which in turn keep alive other objects, e.g., large parts of DOM.

Leak Finder for JavaScript works against the Developer tools remote inspecting protocol of Chrome, retrieves heap snapshots, and detects objects which are "memory leaks" according to a given leak definition.

The default configuration of the tool detects goog.Disposable objects which were not dispose()d. goog.EventTarget is a subclass of goog.Disposable, and if an EventTarget is not disposed, event listeners are not discarded properly, and event listeners in turn keep DOM objects alive. It's possible to configure the tool to detect other similar misuses.

You can find more details about this project here.

The code location for this prokect is :



Share on Facebook  Share on Twitter  Share on Google+  Share on Weibo  Share on Reddit  Share on Digg  Share on Tumblr    Delicious



No comment for this article.


What is VBA?

By sonic0002
This is a conversation on Google product forum. Google engineers really don't know what is VBA? Or they just refuse to acknowledge the existence of VBA? The full conversation can be found at!topic/chrome/zY-8vP1lIys