JBPerformanceLogger 1.0.0

JBPerformanceLogger 1.0.0

测试已测试
语言语言 Obj-CObjective C
授权协议 MIT
发布最后发布2015年2月

Josip Bernat 维护。



适用于测量 iOS 应用程序每秒帧数的性能日志器。

alt tag

Podfile

platform :ios, '7.0'
pod 'JBPerformanceLogger'

用法

我一直想测量 UITableView 在滚动时的性能,我喜欢游戏引擎显示 FPS 的方式。希望这将是一个很好的替代品。

调用 start 开始它。它将自动出现在主窗口中。

[JBPerformanceLogger start];

调用 stop 停止它。它将从主窗口中自动消失。

[JBPerformanceLogger stop];

您可以调整其在窗口中的位置、偏移量和文本颜色。它使用 PureLayout 库添加 NSLayoutConstraints 和在窗口中的定位。

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

问题

如果您发现错误或有一些改进的建议,请随时提出问题。