#GDPerformanceView Shows FPS, CPU usage, app and iOS versions above the status bar.
Simply add GDPerformanceMonitoring folder with files to your project, or use CocoaPods.
platform :ios, '8.0'
use_frameworks!
target 'project_name' do
pod 'GDPerformanceView', '~> 1.1.0'
end
Simply start monitoring. Performance view will be added above the status bar automatically. Also, you can configure appearance as you like.
Call to start or resume monitoring and show monitoring view.
[[GDPerformanceMonitor sharedInstance] startMonitoring];
or
self.performanceMonitor = [GDPerformanceMonitor alloc] init];
[self.performanceMonitor startMonitoring];
Call when you're done with performance monitoring.
[self.performanceMonitor stopMonitoring];
Call to hide and pause monitoring.
[self.performanceMonitor pauseMonitoring];
[self.performanceMonitor configureWithConfiguration:^(UILabel *textLabel) {
[textLabel setBackgroundColor:[UIColor blackColor]];
[textLabel setTextColor:[UIColor whiteColor]];
[textLabel.layer setBorderColor:[[UIColor blackColor] CGColor]];
}];
[self.performanceMonitor setAppVersionHidden:YES]
[self.performanceMonitor setDeviceVersionHidden:YES];
[self.performanceMonitor startMonitoringWithConfiguration:^(UILabel *textLabel) {
[textLabel setBackgroundColor:[UIColor blackColor]];
[textLabel setTextColor:[UIColor whiteColor]];
[textLabel.layer setBorderColor:[[UIColor blackColor] CGColor]];
}];
- iOS 8.0+
GDPerformanceView is available under the MIT license. See the LICENSE file for more info.