Home | History | Annotate | Download | only in Scripts

Lines Matching refs:leaks

29 # Script to run the Mac OS X leaks tool with more expressive '-exclude' lists.
47 " --exclude-callstack regexp Exclude leaks whose call stacks match the regular expression 'regexp'.\n" .
48 " --exclude-type regexp Exclude leaks whose data types match the regular expression 'regexp'.\n" .
73 # Run leaks tool.
98 print "$excludeCount leaks excluded (not printed)\n";
106 # Returns the output of the leaks tool in list form.
111 my @leaksOutput = `leaks $pidOrExecutableName`;
113 reportError("Error running leaks tool.");
127 # Process 00000: XX leaks for XXX total leaked bytes.
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.
138 if ($leaksOutput->[0] =~ /^leaks Report Version:/) {
144 my ($leakCount) = ($leaksOutput->[1] =~ /[[:blank:]]+([0-9]+)[[:blank:]]+leaks?/);
146 reportError("Could not parse leak count reported by leaks tool.");
170 $type = ""; # The leaks tool sometimes omits the type.
177 "callStack" => "", # The leaks tool sometimes omits the call stack.
191 reportError("Parsed leak count($parsedLeakCount) does not match leak count reported by leaks tool($leakCount).");