Track App Hang
This feature is automatically activated.
Available in both flavours of the framework.
App Hangs are categorized as UI thread blocks that occur in an application for more than 250ms.
An issue report will be sent to the dashboard if an App Hang is detected by the framework. The issue report will have the stack trace of the main thread to aid developers to pin point the exact line causing the issue.
Deprecated
Setting custom frame rate threshold is now deprecated as framework tracks and reports App Hangs.
- Objective C
- Swift
#import <FinotesCore/Fn.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Fn setFrameRateThreshold:2.0];
}
import FinotesCore
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Fn.setFrameRateThreshold(0.25)
return true
}