首页| 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次
  • 浏览次数:0次
  • 资源积分: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
  • Zzz 1天前 成为了本站会员

  • Katou Megumi 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • 流浪 1天前 成为了本站会员

  • 也是一生 1天前 成为了本站会员

  • king666 2天前 成为了本站会员

  • ﹏約啶℡ 2天前 成为了本站会员

  • Long for 2天前 成为了本站会员

  • 2天前 成为了本站会员

  • 金. 2天前 成为了本站会员

0.271484s