[webkit-dev] [WIP][GTK] Memory leak detection

Manuel Rego Casasnovas rego at igalia.com
Tue May 21 00:27:55 PDT 2013


Hi Brian,

On 05/20/2013 04:48 PM, Brian Holt wrote:
> Memory leak detection is a recurrent topic on this mailing list [1-5]
> but at present there exists only support for the Mac leaks tool[6].  The
> de facto standard for memory checking and leak detection for Unix is
> Valgrind and the goal of this work is to launch the DRT under Valgrind
> to generate a xml file with details of leaks found, and then to parse
> this file and display this information.

My mate Edu Lima has recently added documentation about how to use
valgrind to find memory leaks in WebKitGTK+ using MiniBrowser:
https://trac.webkit.org/wiki/WebKitGTK/TrackingMemoryErrors

> This work is being tracked under
> https://bugs.webkit.org/show_bug.cgi?id=116317.
> 
> This is a work in progress, but as a first attempt leak checking can be
> done using the existing run-webkit-tests script as follows:
> 
> $ Tools/Scripts/run-webkit-tests --gtk --leak --wrapper="valgrind"
> LayoutTests/accessibility/accessibility-node-memory-management.html

It looks nice, once this is ready we should update the wiki accordingly.

My 2 cents,
   Rego


More information about the webkit-dev mailing list