Skip to main content
Version: 4.3.1

Track UI thread block issues

This feature is automatically activated.
Available in both flavours of the framework.

An issue report will be sent to the dashboard when a UI thread block 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.

Custom UI thread block threshold

Developers can set custom UI thread block threshold with the API setFrameRateThreshold before Initialize API.

AppDelegate Class:

#import <FinotesCore/Fn.h>

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

[Fn setFrameRateThreshold:2.0];
[Fn initialize:application];

Once a custom threshold value (in seconds) is set and if the UI thread gets blocked for more than the threshold value, a corresponding issue report will be sent to the Finotes dashboard.

FlavourSupported threshold value rangeDefault
FinotesCore250 - 5000 milliseconds1000 milliseconds
FinotesDebug16 - 5000 milliseconds250 milliseconds

Deprecated API

UI thread block tracking is activated by default.

The API enableFrameRateDetection is now deprecated and will be removed in a future version of the framework.

[Fn enableFrameRateDetection];  //deprecated