⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 100174 in webkit


Ignore:
Timestamp:
Nov 14, 2011, 12:08:53 PM (15 years ago)
Author:
ddkilzer@apple.com
Message:

run-leaks does not work on Lion?
<http://webkit.org/b/71059>
<rdar://problem/10428527>

Reviewed by Adam Roben.

The output of leaks(1) changed again in Lion to move the
"leaks Report Version: 2.0" line from the first line of the
output to just above the "Process " lines that run-leaks is
interested in parsing. This required using a more generic
algorithm to find the start of the "Process " lines.

  • Scripts/run-leaks:

(parseLeaksOutput): Make the code to skip headers more generic.

  • Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v1.0.pl: Added.
  • Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-new.pl: Added.
  • Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-old.pl: Added.
Location:
trunk/Tools
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r100160 r100174  
     12011-11-14  David Kilzer  <ddkilzer@apple.com>
     2
     3        run-leaks does not work on Lion?
     4        <http://webkit.org/b/71059>
     5        <rdar://problem/10428527>
     6
     7        Reviewed by Adam Roben.
     8
     9        The output of leaks(1) changed again in Lion to move the
     10        "leaks Report Version: 2.0" line from the first line of the
     11        output to just above the "Process " lines that run-leaks is
     12        interested in parsing.  This required using a more generic
     13        algorithm to find the start of the "Process " lines.
     14
     15        * Scripts/run-leaks:
     16        (parseLeaksOutput): Make the code to skip headers more generic.
     17        * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v1.0.pl: Added.
     18        * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-new.pl: Added.
     19        * Scripts/webkitperl/run-leaks_unittest/run-leaks-report-v2.0-old.pl: Added.
     20
    1212011-11-14  Lei Zhang  <thestig@chromium.org>
    222
  • trunk/Tools/Scripts/run-leaks

    r54099 r100174  
    133133    #   We treat every line except for  Process 00000: and Leak: as optional
    134134
    135     # Newer versions of the leaks output have a header section at the top, with the first line describing the version of the output format.
    136     # If we detect the new format is being used then we eat all of the header section so the output matches the format of older versions.
    137     # FIXME: In the future we may wish to propagate this section through to our output.
    138     if ($leaksOutput->[0] =~ /^leaks Report Version:/) {
    139         while ($leaksOutput->[0] !~ /^Process /) {
    140             shift @$leaksOutput;
    141         }
     135    # Skip header section until the first two "Process " lines.
     136    # FIXME: In the future we may wish to propagate the header section through to our output.
     137    until ($leaksOutput->[0] =~ /^Process /) {
     138        shift @$leaksOutput;
    142139    }
    143140
Note: See TracChangeset for help on using the changeset viewer.