FWBenchmark


@interface FWBenchmark : NSObject

时间调试器

  • 标记时间调试开始

    Declaration

    Objective-C

    + (void)begin:(NSString *_Nonnull)name;
  • 标记时间调试结束并打印消耗时间

    Declaration

    Objective-C

    + (NSTimeInterval)end:(NSString *_Nonnull)name;
  • 获取所有的消耗时间数据

    Declaration

    Objective-C

    + (NSDictionary<NSString *, NSNumber *> *_Nonnull)benchmarks;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;