Bug 56030 - Leaks Viewer: Would like to be able to look at all leaks files from a particular build at once, rather than one at a time
Summary: Leaks Viewer: Would like to be able to look at all leaks files from a particu...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 10:58 PST by Adam Roben (:aroben)
Modified: 2011-03-11 11:55 PST (History)
2 users (show)

See Also:


Attachments
Make it possible to view all leaks from a build at once in Leaks Viewer (26.12 KB, patch)
2011-03-11 10:03 PST, Adam Roben (:aroben)
ddkilzer: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2011-03-09 10:58:54 PST
The Leaks Viewer can currently only look at one leak file at a time. But it would be very useful to be able to look at the combined view of all leaks files from a particular build at once.
Comment 1 Adam Roben (:aroben) 2011-03-10 14:26:56 PST
I have a patch for this that seems to be working. It would be nice if we displayed how many leaks files we have left to load, though. And for some reason Leaks Viewer only reports 10341 leaks for <http://build.webkit.org/builders/SnowLeopard%20Intel%20Leaks/builds/15471>, even though run-webkit-tests says there are 10342.
Comment 2 Adam Roben (:aroben) 2011-03-11 10:03:24 PST
Created attachment 85486 [details]
Make it possible to view all leaks from a build at once in Leaks Viewer
Comment 3 David Kilzer (:ddkilzer) 2011-03-11 10:43:09 PST
Comment on attachment 85486 [details]
Make it possible to view all leaks from a build at once in Leaks Viewer

View in context: https://bugs.webkit.org/attachment.cgi?id=85486&action=review

r=me

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/index.html:58
> +    <script src=LeaksLoader.js></script>
> +    <script src=LeaksParser.js></script>
>      <script src=LeaksViewer.js></script>
> +    <script src=Utilities.js></script>

Nit: You should really use double-quotes around the value of the src attributes.

> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/index.html:65
> +            <span id=loading-indicator-label>Loading&hellip;</span>

Nit: And around the id attribute.
Comment 4 Adam Roben (:aroben) 2011-03-11 10:44:44 PST
Comment on attachment 85486 [details]
Make it possible to view all leaks from a build at once in Leaks Viewer

View in context: https://bugs.webkit.org/attachment.cgi?id=85486&action=review

>> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/index.html:58
>> +    <script src=Utilities.js></script>
> 
> Nit: You should really use double-quotes around the value of the src attributes.

Is that a stylistic preference? Or is there a practical problem?
Comment 5 David Kilzer (:ddkilzer) 2011-03-11 10:45:31 PST
(In reply to comment #4)
> (From update of attachment 85486 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=85486&action=review
> 
> >> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/index.html:58
> >> +    <script src=Utilities.js></script>
> > 
> > Nit: You should really use double-quotes around the value of the src attributes.
> 
> Is that a stylistic preference? Or is there a practical problem?

I thought it was a best practice.  Looks strange to me without quotes.  Does HTML5 not "require" this?
Comment 6 Adam Roben (:aroben) 2011-03-11 10:52:01 PST
(In reply to comment #5)
> (In reply to comment #4)
> > (From update of attachment 85486 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=85486&action=review
> > 
> > >> Tools/BuildSlaveSupport/build.webkit.org-config/public_html/LeaksViewer/index.html:58
> > >> +    <script src=Utilities.js></script>
> > > 
> > > Nit: You should really use double-quotes around the value of the src attributes.
> > 
> > Is that a stylistic preference? Or is there a practical problem?
> 
> I thought it was a best practice.  Looks strange to me without quotes.  Does HTML5 not "require" this?

It does not require it. (You can test on validator.nu.)
Comment 7 Adam Roben (:aroben) 2011-03-11 11:00:02 PST
Committed r80864: <http://trac.webkit.org/changeset/80864>
Comment 8 Simon Fraser (smfr) 2011-03-11 11:39:11 PST
I tried this and it failed with "TypeError: Cannot post cyclic structures."
Comment 9 Adam Roben (:aroben) 2011-03-11 11:55:11 PST
(In reply to comment #8)
> I tried this and it failed with "TypeError: Cannot post cyclic structures."

That is bug 56090. (Leaks Viewer still doesn't work with Safari 5, it turns out.)