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 <Foundation/Foundation.h>
16
 
17
NS_ASSUME_NONNULL_BEGIN
18
 
19
/**
20
 * Class that contains memory gauge information for any point in time.
21
 */
22
@interface FPRMemoryGaugeData : NSObject
23
 
24
/** @brief Time at which memory data was measured. */
25
@property(nonatomic, readonly) NSDate *collectionTime;
26
 
27
/** @brief Heap memory that is used. */
28
@property(nonatomic, readonly) u_long heapUsed;
29
 
30
/** @brief Heap memory that is available. */
31
@property(nonatomic, readonly) u_long heapAvailable;
32
 
33
- (instancetype)init NS_UNAVAILABLE;
34
 
35
/**
36
 * Creates an instance of memory gauge data with the provided information.
37
 *
38
 * @param collectionTime Time at which the gauge data was collected.
39
 * @param heapUsed Heap memory that is used.
40
 * @param heapAvailable Heap memory that is available.
41
 * @return Instance of memory gauge data.
42
 */
43
- (instancetype)initWithCollectionTime:(NSDate *)collectionTime
44
                              heapUsed:(u_long)heapUsed
45
                         heapAvailable:(u_long)heapAvailable NS_DESIGNATED_INITIALIZER;
46
 
47
@end
48
 
49
NS_ASSUME_NONNULL_END