TBOOMDetector Save

Detect Out Of Memory events in an iOS app

Project README

TBOOMDetector

Detect Out Of Memory events in an iOS app by process of elimination. If we can't figure out why the app is relaunching, it must have been the OOM Killer. For a complete explanation read this excellent blog post from Facebook.

Requires crashlytics for detecting crashes.

Example:

TBOOMDetector *oomDetector = [[TBOOMDetector alloc] initWithDirectory:directory
   crashCheck:^BOOL{
       // return [[Crashlytics crashlytics] didCrashDuringPreviousExecution]
       return NO;
     }
   callback:^(TBTerminationType terminationType) {
      if(terminationType == TBTerminationTypeBackgroundOom) {
        DDLogError(@"Detected Background OOM");
      } else if(terminationType == TBTerminationTypeForegroundOom) {
        DDLogError(@"Detected Foreground OOM");
      }
}];
Open Source Agenda is not affiliated with "TBOOMDetector" Project. README Source: trailbehind/TBOOMDetector
Stars
48
Open Issues
1
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating