forked from Countly/countly-sdk-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCountlyPerformanceMonitoring.h
31 lines (24 loc) · 1.01 KB
/
CountlyPerformanceMonitoring.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// CountlyPerformanceMonitoring.h
//
// This code is provided under the MIT License.
//
// Please visit www.count.ly for more information.
#import <Foundation/Foundation.h>
@interface CountlyPerformanceMonitoring : NSObject
@property (nonatomic) BOOL isEnabledOnInitialConfig;
+ (instancetype)sharedInstance;
- (void)startPerformanceMonitoring;
- (void)stopPerformanceMonitoring;
- (void)recordAppStartDurationTraceWithStartTime:(long long)startTime endTime:(long long)endTime;
- (void)endBackgroundTrace;
- (void)recordNetworkTrace:(NSString *)traceName
requestPayloadSize:(NSInteger)requestPayloadSize
responsePayloadSize:(NSInteger)responsePayloadSize
responseStatusCode:(NSInteger)responseStatusCode
startTime:(long long)startTime
endTime:(long long)endTime;
- (void)startCustomTrace:(NSString *)traceName;
- (void)endCustomTrace:(NSString *)traceName metrics:(NSDictionary *)metrics;
- (void)cancelCustomTrace:(NSString *)traceName;
- (void)clearAllCustomTraces;
@end