Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2020 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
 
15
#import "FirebasePerformance/Sources/Gauges/FPRGaugeManager.h"
16
 
17
#import "FirebasePerformance/Sources/Gauges/CPU/FPRCPUGaugeCollector.h"
18
#import "FirebasePerformance/Sources/Gauges/Memory/FPRMemoryGaugeCollector.h"
19
 
20
/** This extension should only be used for testing. */
21
NS_EXTENSION_UNAVAILABLE("Firebase Performance is not supported for extensions.")
22
@interface FPRGaugeManager ()
23
 
24
/** @brief Tracks if gauge collection is enabled. */
25
@property(nonatomic, readonly) BOOL gaugeCollectionEnabled;
26
 
27
/** @brief CPU gauge collector. */
28
@property(nonatomic, readwrite, nullable) FPRCPUGaugeCollector *cpuGaugeCollector;
29
 
30
/** @brief Memory gauge collector. */
31
@property(nonatomic, readwrite, nullable) FPRMemoryGaugeCollector *memoryGaugeCollector;
32
 
33
/** @brief Serial queue to manage gauge data collection. */
34
@property(nonatomic, readwrite, nonnull) dispatch_queue_t gaugeDataProtectionQueue;
35
 
36
/** @brief Tracks if this session is a cold start of the application. */
37
@property(nonatomic) BOOL isColdStart;
38
 
39
/**
40
 * Creates an instance of FPRGaugeManager with the gauges required.
41
 */
42
- (nonnull instancetype)initWithGauges:(FPRGauges)gauges;
43
 
44
/**
45
 * Prepares for dispatching the current set of gauge data to Google Data Transport.
46
 *
47
 * @param sessionId SessionId that will be used for dispatching the gauge data
48
 */
49
- (void)prepareAndDispatchCollectedGaugeDataWithSessionId:(nullable NSString *)sessionId;
50
 
51
@end