{"id":13850912,"url":"https://github.com/dani-gavrilov/GDPerformanceView","last_synced_at":"2025-07-13T01:31:42.881Z","repository":{"id":56911958,"uuid":"71340203","full_name":"dani-gavrilov/GDPerformanceView","owner":"dani-gavrilov","description":"Shows FPS, CPU usage, app and iOS versions above the status bar and report FPS and CPU usage via delegate.","archived":false,"fork":false,"pushed_at":"2020-04-25T06:42:40.000Z","size":249,"stargazers_count":343,"open_issues_count":6,"forks_count":56,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-12T22:48:12.845Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dani-gavrilov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["dani-gavrilov"]}},"created_at":"2016-10-19T09:20:24.000Z","updated_at":"2025-02-04T02:35:00.000Z","dependencies_parsed_at":"2022-08-20T20:20:51.100Z","dependency_job_id":null,"html_url":"https://github.com/dani-gavrilov/GDPerformanceView","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/dani-gavrilov/GDPerformanceView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dani-gavrilov%2FGDPerformanceView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dani-gavrilov%2FGDPerformanceView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dani-gavrilov%2FGDPerformanceView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dani-gavrilov%2FGDPerformanceView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dani-gavrilov","download_url":"https://codeload.github.com/dani-gavrilov/GDPerformanceView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dani-gavrilov%2FGDPerformanceView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265080005,"owners_count":23708098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T21:00:29.041Z","updated_at":"2025-07-13T01:31:42.608Z","avatar_url":"https://github.com/dani-gavrilov.png","language":"Objective-C","funding_links":["https://github.com/sponsors/dani-gavrilov"],"categories":["Object-C 库"],"sub_categories":[],"readme":"#GDPerformanceView\nShows FPS, CPU usage, app and iOS versions above the status bar and report FPS and CPU usage via delegate.\n\n[![Pod Version](https://img.shields.io/badge/Pod-1.3.1-6193DF.svg)](https://cocoapods.org/)\n![Swift Version](https://img.shields.io/badge/xCode-8.2+-blue.svg) \n![Swift Version](https://img.shields.io/badge/iOS-8.0+-blue.svg) \n![Plaform](https://img.shields.io/badge/Platform-iOS-lightgrey.svg)\n![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg) \n\n![Alt text](https://github.com/dani-gavrilov/GDPerformanceView/blob/master/performance_view.PNG?raw=true \"Example PNG\")\n![Alt text](https://github.com/dani-gavrilov/GDPerformanceView/blob/master/performance_view_2.PNG?raw=true \"Example PNG\")\n![Alt text](https://github.com/dani-gavrilov/GDPerformanceView/blob/master/performance_view_3.PNG?raw=true \"Example PNG\")\n![Alt text](https://github.com/dani-gavrilov/GDPerformanceView/blob/master/performance_view_4.PNG?raw=true \"Example PNG\")\n\n## Installation\nSimply add GDPerformanceMonitoring folder with files to your project, or use CocoaPods.\n\n#### Podfile\nYou can use [CocoaPods](http://cocoapods.org/) to install `GDPerformanceView` by adding it to your `Podfile`:\n\n```ruby\nplatform :ios, '8.0'\nuse_frameworks!\n\ntarget 'project_name' do\n\tpod 'GDPerformanceView', '~\u003e 1.3.1'\nend\n```\nDon't forget to import GDPerformanceView by adding: \n\n```objective-c\n#import \u003cGDPerformanceView/GDPerformanceMonitor.h\u003e\n```\n\n## Usage example\n\nSimply start monitoring. Performance view will be added above the status bar automatically.\nAlso, you can configure appearance as you like or just hide the monitoring view and use its delegate.\n\n#### Start monitoring\n\nCall to start or resume monitoring and show monitoring view.\n\n```objective-c\n[[GDPerformanceMonitor sharedInstance] startMonitoring];\n```\n\n```objective-c\nself.performanceMonitor = [GDPerformanceMonitor alloc] init];\n[self.performanceMonitor startMonitoring];\n```\n\n#### Stop monitoring\n\nCall when you're done with performance monitoring.\n\n```objective-c\n[self.performanceMonitor stopMonitoring];\n```\n\nCall to hide and pause monitoring.\n\n```objective-c\n[self.performanceMonitor pauseMonitoring];\n```\n\n#### Configuration\n\nCall to change appearance.\n\n```objective-c\n[self.performanceMonitor configureWithConfiguration:^(UILabel *textLabel) {\n\t[textLabel setBackgroundColor:[UIColor blackColor]];\n\t[textLabel setTextColor:[UIColor whiteColor]];\n\t[textLabel.layer setBorderColor:[[UIColor blackColor] CGColor]];\n}];\n```\n\nCall to change output information.\n\n```objective-c\n[self.performanceMonitor setAppVersionHidden:YES]\n```\n```objective-c\n[self.performanceMonitor setDeviceVersionHidden:YES];\n```\n\nCall to hide monitoring view.\n\n```objective-c\n[self.performanceMonitor hideMonitoring];\n```\n\nCall to change status bar appearance.\n\n```objective-c\n[self.performanceMonitor configureStatusBarAppearanceWithPrefersStatusBarHidden:NO preferredStatusBarStyle:UIStatusBarStyleLightContent];\n```\n\n#### Start monitoring and configure\n\n```objective-c\n[self.performanceMonitor startMonitoringWithConfiguration:^(UILabel *textLabel) {\n\t[textLabel setBackgroundColor:[UIColor blackColor]];\n\t[textLabel setTextColor:[UIColor whiteColor]];\n\t[textLabel.layer setBorderColor:[[UIColor blackColor] CGColor]];\n}];\n```\n\n#### Delegate\n\nSet the delegate and implement its method.\n\n```objective-c\n[self.performanceMonitor setDelegate:self];\n```\n\n```objective-c\n- (void)performanceMonitorDidReportFPS:(int)fpsValue CPU:(float)cpuValue {\n    NSLog(@\"%d %f\", fpsValue, cpuValue);\n}\n```\n\n## Requirements\n- iOS 8.0+\n- xCode 8.2+\n\n## Meta\n\nDaniil Gavrilov - [VK](https://vk.com/dani_gavrilov) - [FB](https://www.facebook.com/danigavrilov)\n\nGDPerformanceView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdani-gavrilov%2FGDPerformanceView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdani-gavrilov%2FGDPerformanceView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdani-gavrilov%2FGDPerformanceView/lists"}