Bug 53703 - Run script to classify the leaks output to show unique leaks
Summary: Run script to classify the leaks output to show unique leaks
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar, ToolsHitList
Depends on:
Blocks:
 
Reported: 2011-02-03 12:05 PST by Simon Fraser (smfr)
Modified: 2011-05-26 11:45 PDT (History)
5 users (show)

See Also:


Attachments
uniq-leaks tool (2.55 KB, text/plain)
2011-02-03 12:12 PST, David Kilzer (:ddkilzer)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2011-02-03 12:05:01 PST
We need to keep a better eye on the leak output. One way to do this would be to run a script to classify the leaks, and count the number of unique leaks.
Comment 1 David Kilzer (:ddkilzer) 2011-02-03 12:12:26 PST
Created attachment 81096 [details]
uniq-leaks tool

Here's a really basic uniq-leaks tool (written in 2009 in Perl) that attempts to uniq leaks output.

It just needs to be hooked up to old-run-webkit-tests --leaks.
Comment 2 Adam Roben (:aroben) 2011-03-09 10:38:41 PST
I just posted a tool in bug 56028 that makes viewing leaks output easier. It's not really set up for use in an automated fashion, however.
Comment 3 Adam Roben (:aroben) 2011-03-21 09:55:09 PDT
Some more ideas:

1) Use the uniq-leaks tool attached to this bug to show the number of unique leaks in the run-webkit-tests --leaks output, and also put that output on build.webkit.org
2) Show more information about leaks that have WTF::fastMalloc in the stack. These are leaks of JSC/WebCore/WebKit objects, and it should be pretty easy to say which objects and how many of each kind are leaking.
Comment 4 Adam Roben (:aroben) 2011-05-26 11:45:58 PDT
<rdar://problem/9509332>