Objective-C reproducible instrumentation library,
2016-08-23
1 0 0
暂无评分
其他
如何获取积分?
PLInstrument provides a reproducible instrumentation library, modeled on xUnit. The library is intended to facilitate the instrumentation of performance critical code, and provide comparable results over the lifetime of the code base.
The library was developed primarily for the purpose of measuring code runtime on the iPhone, where CPU resources are significantly constrained.
Examples:
An instrument class
``` @interface PLAffineInstrument : PLInstrumentCase @end
@implementation PLAffineInstrument - (PLInstrumentResult *) instrumentMirrorTransform { PLIAbsoluteTime start, finish; int iterations = 25000;
start = PLICurrentTime();
for (int i = 0 ; i < iterations; i++) {
CGAffineTransform mirrorTransform;
mirrorTransform = CGAffineTransformMakeTranslation(0.0, 200.0f);
mirrorTransform = CGAffineTransformScale(mirrorTransform, 1.0, -1.0);
}
finish = PLICurrentTime();
return [PLInstrumentResult resultWithStart
objective-c
相关源码推荐
相机扫描库
0
1
暂无评分
可自定义的屏幕捕获/记录实用程序的苹果操作系统
0
0
暂无评分
不同数目的计算机之间的计算
0
0
暂无评分
这是minesweeper克隆的X
0
0
暂无评分
.NET to Objective-C bridge
0
0
暂无评分
暂无评论