GDPerformanceView-Swift
GDPerformanceView-Swift Shows FPS, CPU usage, app and iOS versions above the status bar and report FPS and CPU usage via delegate.
Installation
Simply add GDPerformanceMonitoring folder with files to your project, or use CocoaPods.
Carthage
Create a Cartfile
that lists the framework and run carthage update
. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/GDPerformanceView.framework
to an iOS project.
Don't forget to import GDPerformanceView by adding:
CocoaPods
You can use CocoaPods to install GDPerformanceView
by adding it to your Podfile
:
Don't forget to import GDPerformanceView by adding:
Usage example
Simply start monitoring. Performance view will be added above the status bar automatically.
Also, you can configure appearance as you like or just hide the monitoring view and use its delegate.
You can find example projects here
Start monitoring
Call to start or resume monitoring and show monitoring view.
Stop monitoring
Call when you're done with performance monitoring.
Call to hide and pause monitoring.
Configuration
Call to change appearance.
Call to change output information.
Call to hide monitoring view.
Call to change status bar appearance.
Start monitoring and configure
Delegate
Set the delegate and implement its method.
Requirements
- iOS 8.0+
- xCode 9.1+