In association with heise online

09 August 2012, 17:04

Leak Finder helps find memory leaks in JavaScript

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

Google logo

Google has open sourced a tool called Leak Finder which is designed to help developers find memory leaks in JavaScript programs. The tool was written by two members of Google's Chrome team in Munich and takes the form of a Python script which takes advantage of Chrome's Remote Inspection Protocol to scan heap snapshots of applications.

In programming languages which use garbage collection, objects that have all their references dropped are removed, freeing memory. In JavaScript, however, the references are sometimes left behind, leading to memory leaks. This often happens when the references point to objects in a JavaScript library, like Closure, as opposed to the actual program code. Leak Finder is designed to find these kinds of memory leaks and the developers provide examples how to use it with Closure.

Leak Finder is licensed under the Apache 2.0 License and its source code, as well as usage instructions, is available from the project's Google Code page.



  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit