首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Objective-C reproducible instrumentation library, modeled on xUnit.

Objective-C reproducible instrumentation library, modeled on xUnit.

  • 资源大小:287.19 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: objective-c

资 源 简 介

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

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP