Changeset 100174 in webkit
- Timestamp:
- Nov 14, 2011, 12:08:53 PM (15 years ago)
- Location:
- trunk/Tools
- Files:
-
- 4 added
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/run-leaks (modified) (1 diff)
-
Scripts/webkitperl/run-leaks_unittest (added)
-
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)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r100160 r100174 1 2011-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 1 21 2011-11-14 Lei Zhang <thestig@chromium.org> 2 22 -
trunk/Tools/Scripts/run-leaks
r54099 r100174 133 133 # We treat every line except for Process 00000: and Leak: as optional 134 134 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; 142 139 } 143 140
Note:
See TracChangeset
for help on using the changeset viewer.