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:
- Objective C
- Swift
#import <FinotesWatch/Fn.h>
- (void)applicationDidFinishLaunching {
[Fn setFrameRateThreshold:2.0];
[Fn initialize:application];
}
import FinotesWatch
func applicationDidFinishLaunching() {
Fn.setFrameRateThreshold(2.0)
Fn.initialize(application)
return true
}
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.
Flavour | Supported threshold value range | Default |
---|---|---|
FinotesWatchosCore | 250 - 5000 milliseconds | 1000 milliseconds |
FinotesWatchosDebug | 16 - 5000 milliseconds | 250 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.
- Objective C
- Swift
[Fn enableFrameRateDetection]; //deprecated
Fn.enableFrameRateDetection() //deprecated