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 frame rate threshold with the API setFrameRateThreshold before Initialize API.

ExtensionDelegate Class:


#import <FinotesWatch/Fn.h>

- (void)applicationDidFinishLaunching {

[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
FinotesWatchosCore250 - 5000 milliseconds1000 milliseconds
FinotesWatchosDebug16 - 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