OOPerformanceCPUProfilingStatistics.h
1 //
2 // Copyright © 2016 Brightcove, Inc. All rights reserved.
3 //
4 
5 #import <Foundation/Foundation.h>
6 #import "OOPerformanceStatisticsProtocol.h"
7 #import <mach/mach.h>
8 
13 @interface OOPerformanceCPUProfilingStatistics : NSObject <OOPerformanceStatisticsProtocol>
14 
15 // see mach's thread_info.h's thread_basic_info_t.
16 @property (nonatomic, readonly) time_value_t userTime;
17 @property (nonatomic, readonly) time_value_t systemTime;
18 @property (nonatomic, readonly) double smallestCPUUsagePercent;
19 @property (nonatomic, readonly) double biggestCPUUsagePercent;
20 @property (nonatomic, readonly) double averageCPUUsagePercent;
22 -(instancetype) init __attribute__((unavailable("init not available")));
23 -(instancetype) initWithName:(NSString*)name;
24 -(void) mergeThreadInfo:(thread_basic_info_t)threadInfo;
25 
26 @end
time_value_t userTime
Definition: OOPerformanceCPUProfilingStatistics.h:16
double biggestCPUUsagePercent
Definition: OOPerformanceCPUProfilingStatistics.h:19
(unavailable("init not available" __attribute__()
time_value_t systemTime
Definition: OOPerformanceCPUProfilingStatistics.h:17
CPU profiling related data.
Definition: OOPerformanceCPUProfilingStatistics.h:13
double smallestCPUUsagePercent
Definition: OOPerformanceCPUProfilingStatistics.h:18
double averageCPUUsagePercent
windowed moving average.
Definition: OOPerformanceCPUProfilingStatistics.h:20