OOPerformanceStatisticsSnapshot.h
1 //
2 // Copyright © 2016 Brightcove, Inc. All rights reserved.
3 //
4 
5 #import <Foundation/Foundation.h>
6 #import "OOPerformanceEventWatchProtocol.h"
7 
14 
19 -(void)addCountingStatistics:(OOPerformanceCountingStatistics*)countingStatistics;
20 -(void)addStartEndStatistics:(OOPerformanceStartEndStatistics*)startEndStatistics;
21 -(void)addCPUProfilingStatistics:(OOPerformanceCPUProfilingStatistics *)cpuProfilingStatistics;
22 -(void)addMemoryProfilingStatistics:(OOPerformanceMemoryProfilingStatistics *)memoryProfilingStatistics;
23 -(void)addFileSpaceProfilingStatistics:(OOPerformanceFileSpaceProfilingStatistics *)fileSpaceProfilingStatistics;
25 @end
26 
30 @interface OOPerformanceStatisticsSnapshot : NSObject
31 @property (nonatomic, readonly) NSSet *countingStatistics;
32 @property (nonatomic, readonly) NSSet *startEndStatistics;
33 @property (nonatomic, readonly) NSSet *cpuProfilingStatistics;
34 @property (nonatomic, readonly) NSSet *memoryProfilingStatistics;
35 @property (nonatomic, readonly) NSSet *fileSpaceProfilingStatistics;
36 -(instancetype) init __attribute__((unavailable("init not available")));
37 -(instancetype) initWithCountingStatistics:(NSSet*)countingStatistics startEndStatistics:(NSSet*)startEndStatistics cpuProfilingStatistics:(NSSet*)cpuProfilingStatistics memoryProfilingStatistics:(NSSet*)memoryProfilingStatistics fileSpaceProfilingStatistics:(NSSet*)fileSpaceProfilingStatistics;
38 -(NSString*) generateReport;
39 @end
OOPerformanceStatisticsSnapshot * build()
NSString * generateReport()
mainly for debugging, this might be a little bit expensive to run.
Keep track of the time taken between the start and end events.
Definition: OOPerformanceStartEndStatistics.h:10
Accumulated count.
Definition: OOPerformanceCountingStatistics.h:8
A collection of the OOPerformanceStatistics at a point in time.
Definition: OOPerformanceStatisticsSnapshot.h:30
CPU profiling related data.
Definition: OOPerformanceCPUProfilingStatistics.h:13
File space profiling related data.
Definition: OOPerformanceFileSpaceProfilingStatistics.h:8
Memory profiling related data.
Definition: OOPerformanceMemoryProfilingStatistics.h:9
(unavailable("init not available" __attribute__()
Definition: OOPerformanceStatisticsSnapshot.h:18