summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView_Experimental.h
diff options
context:
space:
mode:
authorWilhelm Berg <wb@BergWerk-GIS.at>2018-08-22 16:56:32 +0200
committerWilhelm Berg <wb@BergWerk-GIS.at>2018-08-22 16:56:32 +0200
commit797f622a26b34db5a30e7f1728d87c6700a2ec1e (patch)
tree75ea93979db2baf3eb2234c6fbb3d1a9c5b70329 /platform/ios/src/MGLMapView_Experimental.h
parent86fc3f525e42d042f239876b93525ff411ad7182 (diff)
parent520df7f02049cdbbb9e68041e755d6c3a8d5b21f (diff)
downloadqtlocation-mapboxgl-797f622a26b34db5a30e7f1728d87c6700a2ec1e.tar.gz
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into bwg-vs2017
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