WatchdogInspector alternatives and similar libraries
Based on the "Logging" category.
Alternatively, view WatchdogInspector alternatives based on common mentions on social networks and blogs.
-
XCGLogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number. -
Dotzu
DISCONTINUED. Debbuger tool for iOS developer. Display logs, network request, device informations, crash logs while using the app. -
TinyConsole
๐ฑ๐ฌ๐ฆ TinyConsole is a micro-console that can help you log and display information inside an iOS application, where having a connection to a development computer is not possible. -
CleanroomLogger
CleanroomLogger provides an extensible Swift-based logging API that is simple, lightweight and performant -
Atlantis
A powerful input-agnostic swift logging framework made to speed up development with maximum readability. -
Puree
DISCONTINUED. [Obsoleted] A log collector for iOS (new version! -> https://github.com/cookpad/Puree-Swift) -
CleanroomASL
DISCONTINUED. A Swift-based API for reading from & writing to the Apple System Log (more commonly known somewhat inaccurately as "the console") -
TraceLog
TraceLog is a highly configurable, flexible, portable, and simple to use debug logging system for Swift and Objective-C applications running on Linux, macOS, iOS, watchOS, and tvOS. -
CacheAdvance
A performant cache for logging systems. CacheAdvance persists log events 30x faster than SQLite.
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.