summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView_Experimental.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/src/MGLMapView_Experimental.h')
-rw-r--r--platform/ios/src/MGLMapView_Experimental.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/platform/ios/src/MGLMapView_Experimental.h b/platform/ios/src/MGLMapView_Experimental.h
new file mode 100644
index 0000000000..94f8d67fb0
--- /dev/null
+++ b/platform/ios/src/MGLMapView_Experimental.h
@@ -0,0 +1,32 @@
+#import <Mapbox/Mapbox.h>
+
+@interface MGLMapView (Experimental)
+
+#pragma mark Rendering Performance Measurement
+
+/** Enable rendering performance measurement. */
+@property (nonatomic) BOOL experimental_enableFrameRateMeasurement;
+
+/**
+ Average frames per second over the previous second, updated once per second.
+
+ Requires `experimental_enableFrameRateMeasurement`.
+ */
+@property (nonatomic, readonly) CGFloat averageFrameRate;
+
+/**
+ Frame render duration for the previous frame, updated instantaneously.
+
+ Requires `experimental_enableFrameRateMeasurement`.
+ */
+@property (nonatomic, readonly) CFTimeInterval frameTime;
+
+/**
+ Average frame render duration over the previous second, updated once per
+ second.
+
+ Requires `experimental_enableFrameRateMeasurement`.
+ */
+@property (nonatomic, readonly) CFTimeInterval averageFrameTime;
+
+@end