Skip to content

Commit e1b3dab

Browse files
evil159github-actions[bot]
authored andcommitted
Expose refined for swift performance statistics properties (#2912)
New properties in `CumulativeRenderingStatistics` are missing from our public API on iOS(Android exposes generated bindings). Discovered when exposing performance statistics for Flutter https://mapbox.atlassian.net/browse/MAPSFLT-298. cc @mapbox/maps-ios GitOrigin-RevId: d5cbea6402d49d3881bd54dbe87c21dd3ef1aa0d
1 parent 1ddf2ed commit e1b3dab

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Sources/MapboxMaps/Foundation/PerformanceStatisticsOptions.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,13 @@ extension CumulativeRenderingStatistics {
5858
/// The amount of vertex memory (array and index buffer memory) in use at the end of the collection window.
5959
/// - Note: This value is nil for Metal renderer.
6060
public var vertexBytes: UInt? { __vertexBytes?.uintValue }
61+
62+
/// The number of graphics pipeline programs created.
63+
public var graphicsPrograms: UInt? { __graphicsPrograms?.uintValue }
64+
65+
/// The total amount of time spent on all graphics pipeline program creation, in milliseconds.
66+
public var graphicsProgramsCreationTimeMillis: Double? { __graphicsProgramsCreationTimeMillis?.doubleValue }
67+
68+
/// The number of FBO(framebuffer object) switches.
69+
public var fboSwitchCount: UInt? { __fboSwitchCount?.uintValue }
6170
}

0 commit comments

Comments
 (0)