All Projects → tapwork → Watchdoginspector

tapwork / Watchdoginspector

Licence: mit
Shows your current framerate (fps) in the status bar of your iOS app

Projects that are alternatives of or similar to Watchdoginspector

Heapinspector For Ios
Find memory issues & leaks in your iOS app without instruments
Stars: ✭ 1,819 (+266%)
Mutual labels:  monitoring, cocoapods, carthage, performance, performance-analysis, performance-visualization
Myperf4j
High performance Java APM. Powered by ASM. Try it. Test it. If you feel its better, use it.
Stars: ✭ 2,281 (+358.95%)
Mutual labels:  monitoring, performance-monitoring, performance, performance-analysis, performance-visualization
Pcm
Processor Counter Monitor
Stars: ✭ 1,240 (+149.5%)
Mutual labels:  monitoring, performance-monitoring, performance-analysis, performance-visualization
Scouter Paper
scouter-paper is a web client software for scouter
Stars: ✭ 183 (-63.18%)
Mutual labels:  monitoring, performance, performance-visualization
Swiftmetrics
Swift Application Metrics instruments the Swift runtime for performance monitoring, providing the monitoring data programatically via an API or visually with an Eclipse Client.
Stars: ✭ 145 (-70.82%)
Mutual labels:  monitoring, performance-monitoring, performance-visualization
Apm Agent Php
Elastic APM PHP Agent
Stars: ✭ 129 (-74.04%)
Mutual labels:  monitoring, performance-monitoring, performance-analysis
Tinydancer
An android library for displaying fps from the choreographer and percentage of time with two or more frames dropped
Stars: ✭ 1,859 (+274.04%)
Mutual labels:  fps, performance, performance-analysis
Snmpcollector
A full featured Generic SNMP data collector with Web Administration Interface for InfluxDB
Stars: ✭ 216 (-56.54%)
Mutual labels:  monitoring, performance-monitoring, performance
Threadly
Type-safe thread-local storage in Swift
Stars: ✭ 58 (-88.33%)
Mutual labels:  thread, cocoapods, carthage
App perf
Open source application performance monitoring tool with emphasis on ease of setup and use. Providing similar functionality like NewRelic/AppNeta/Skylight etc.
Stars: ✭ 353 (-28.97%)
Mutual labels:  monitoring, performance-monitoring, performance
Sparklens
Qubole Sparklens tool for performance tuning Apache Spark
Stars: ✭ 345 (-30.58%)
Mutual labels:  performance, performance-analysis, performance-visualization
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-21.33%)
Mutual labels:  cocoapods, carthage, uikit
Scouter
Scouter is an open source APM (Application Performance Management) tool.
Stars: ✭ 1,792 (+260.56%)
Mutual labels:  monitoring, performance-monitoring, performance
Lighthouse Monitor
Investigate performance over your whole company with lighthouse
Stars: ✭ 136 (-72.64%)
Mutual labels:  monitoring, performance, performance-analysis
Hokusai
A Swift library to provide a bouncy action sheet
Stars: ✭ 431 (-13.28%)
Mutual labels:  cocoapods, carthage, uikit
Stats Js
JavaScript Performance Monitor using canvas
Stars: ✭ 12 (-97.59%)
Mutual labels:  fps, monitoring, performance
Inspectit
inspectIT is the leading Open Source APM (Application Performance Management) tool for analyzing your Java (EE) applications.
Stars: ✭ 513 (+3.22%)
Mutual labels:  monitoring, performance, performance-analysis
Automon
Automon combines the power of AOP (AspectJ) with monitoring or logging tools you already use to declaratively monitor your Java code, the JDK, and 3rd party libraries.
Stars: ✭ 548 (+10.26%)
Mutual labels:  monitoring, performance-monitoring, performance
Ezswiftextensions
😏 How Swift standard types and classes were supposed to work.
Stars: ✭ 2,911 (+485.71%)
Mutual labels:  cocoapods, carthage, uikit
Tweetextfield
Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/
Stars: ✭ 421 (-15.29%)
Mutual labels:  cocoapods, carthage, uikit

WatchdogInspector

Shows your current framerate (fps) in the status bar of your iOS app

Be a good citizen! Don't block your main thread!

Build Status Cocoapods Version CocoaPods Platform Carthage Compatible Twitter

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

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 | 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.

  1. 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.

  2. 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

Author

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].