Skip to content

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

License

Notifications You must be signed in to change notification settings

josipbernat/JBPerformanceLogger

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published