mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-11 14:45:41 +00:00
Patch from Kris Rambish to keep memory usage flat when processing a directory full of minidump files
A=krisr R=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@478 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
c65d3e6206
commit
2832dc011c
|
@ -319,6 +319,7 @@ static void Start(Options *options) {
|
||||||
[manager enumeratorAtPath:minidump_path];
|
[manager enumeratorAtPath:minidump_path];
|
||||||
NSString *current_file = nil;
|
NSString *current_file = nil;
|
||||||
while ((current_file = [enumerator nextObject])) {
|
while ((current_file = [enumerator nextObject])) {
|
||||||
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
if ([[current_file pathExtension] isEqualTo:@"dmp"]) {
|
if ([[current_file pathExtension] isEqualTo:@"dmp"]) {
|
||||||
printf("Attempting to process report: %s\n",
|
printf("Attempting to process report: %s\n",
|
||||||
[current_file cStringUsingEncoding:NSASCIIStringEncoding]);
|
[current_file cStringUsingEncoding:NSASCIIStringEncoding]);
|
||||||
|
@ -326,6 +327,7 @@ static void Start(Options *options) {
|
||||||
[minidump_path stringByAppendingPathComponent:current_file];
|
[minidump_path stringByAppendingPathComponent:current_file];
|
||||||
ProcessSingleReport(options, full_path);
|
ProcessSingleReport(options, full_path);
|
||||||
}
|
}
|
||||||
|
[pool release];
|
||||||
}
|
}
|
||||||
} else if (file_exists) {
|
} else if (file_exists) {
|
||||||
ProcessSingleReport(options, minidump_path);
|
ProcessSingleReport(options, minidump_path);
|
||||||
|
|
Loading…
Reference in a new issue