WatchdogInspector alternatives and similar libraries
Based on the "Tools" category.
Alternatively, view WatchdogInspector alternatives based on common mentions on social networks and blogs.
-
SwiftGen
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
Lona
A tool for defining design systems and using them to generate cross-platform UI code, Sketch files, and other artifacts. -
Xcodes.app
The easiest way to install and switch between multiple versions of Xcode - with a mouse click. -
FBSimulatorControl
idb is a flexible command line interface for automating iOS simulators and devices -
GDPerformanceView-Swift
Shows FPS, CPU and memory usage, device model, app and iOS versions above the status bar and report FPS, CPU and memory usage via delegate. -
AppDevKit
AppDevKit is an iOS development library that provides developers with useful features to fulfill their everyday iOS app development needs. -
iSimulator
iSimulator is a GUI utility to control the Simulator, and manage the app installed on the simulator. -
Blade
Better asset workflow for iOS developers. Generate Xcode image catalogs for iOS / OSX app icons, universal images, and more. -
Realm Browser
DISCONTINUED. DEPRECATED - Realm Browser for Mac OS X has been replaced by realm-studio which is cross platform. -
Cookiecutter
DISCONTINUED. A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file -
SuperDelegate
DISCONTINUED. SuperDelegate provides a clean application delegate interface and protects you from bugs in the application lifecycle -
abandoned-strings
Command line program that detects unused resource strings in an iOS or OS X application. -
AVXCAssets-Generator
AVXCAssets Generator takes path for your assets images and creates appiconset and imageset for you in just one click
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of WatchdogInspector or a related project?
README
WatchdogInspector
Shows your current framerate (fps) in the status bar of your iOS app
Be a good citizen! Don't block your main thread!
WatchdogInspector counts your app's framerate and displays the fps in the status bar. The coloured status bar lets you know when your framerate drops below 60 fps. If everything is fine your status bar gets happy and will stay green. To detect unwanted main thread stalls you can set a custom watchdog timeout.
Features
- Status bar displays the current framerate in fps (measured every 2 seconds)
- Colours the status bar from green (good fps) to red (bad fps)
- Custom watchdog timeout: Exception when main thread stalls for a defined time
[screencast](screencast.gif)
Install
CocoaPods
pod "WatchdogInspector"
and run pod install
You can see the example project how to setup and run WatchdogInspector
Make sure that you don't use WatchdogInspector
in production.
Carthage
You can use Carthage. Specify in Cartfile:
github "tapwork/WatchdogInspector"
Usage
[Objective-C](README_objc.md) | Swift
Start
After launch or whenever you want.
import WatchdogInspector
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
TWWatchdogInspector.start()
return true
}
Stop
To stop it just call
TWWatchdogInspector.stop()
Main Thread Stalling Exceptions
You can set a custom watchdog timeout for stalling exceptions (Default: 3 seconds)
TWWatchdogInspector.setStallingThreshhold(10.0)
You could also disable the Main Thread exceptions
TWWatchdogInspector.setEnableMainthreadStallingException(false)
Logging
To log all measured framerates you can log them in the console by calling (Default: on)
TWWatchdogInspector.setUseLogs(true)
How it works
There are basically two timers running to measure the framerate.
The background thread timer fires every 2 seconds to count how many frames were set by the main thread. Ideally the result would be 120 frames in 2 seconds to get 60 fps. The background timer resets the frames counter every event. He also sends the measured fps to the status bar on the main thread.
The main thread timer should fire every 1/60 second (60 fps is optimum for a smooth animation) to increment the frames counter. If the main thread is blocked and can't run every 1/60 second the framerate will drop the 60 fps.
There is also a run loop observer running to detect main thread stalls for a defined timeout. If the timeout has been reached an exception will be thrown.
Related projects
- HeapInspector Find memory issues & leaks in your iOS app
Author
License
[MIT](LICENSE)
*Note that all licence references and agreements mentioned in the WatchdogInspector README section above
are relevant to that project's source code only.