Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.38 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.38 KB

JBPerformanceLogger

Performance logger suitable for measuring number of frames per second in iOS applications.

alt tag

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like JBMessage in your projects. This is recommented way for instalation.

Podfile

platform :ios, '7.0'
pod 'JBPerformanceLogger'

USAGE

I always wanted to measure performance of UITableView during scroll and I liked way how game engines display FPS number. Hope this will be good replacement for that feature.

Call start to start it. It will automatically appear in key window.

[JBPerformanceLogger start];

Call stop to stop it. It will automatically dissappear from key window.

[JBPerformanceLogger stop];

You can adjust it's position in window, offset and text color. It uses PureLayout library for adding NSLayoutConstraints and positioning in window.

[JBPerformanceLogger setPosition:JBPerformanceLoggerPositionBottom | setPosition:JBPerformanceLoggerPositionLeft];
[JBPerformanceLogger setTextColor:[UIColor greenColor]];

Issues

Feel free to raise an issue if you find bug or you have some suggestion for improving it.