@@ -81,4 +81,39 @@ public enum FeatureFlag: Int {
8181 /// Enables signing up for a WP.com account.
8282 ///
8383 case wpcomSignup
84+
85+ // MARK: - Performance Monitoring
86+ //
87+ // This flags are not transient. That is, they are not here to help us rollout a feature,
88+ // but to serve a safety switches to granularly turn off performance monitoring if it looks
89+ // like we are consuming too many events.
90+
91+ /// Whether to enable performance monitoring
92+ ///
93+ case performanceMonitoring
94+
95+ /// Whether to enable performance monitoring for Core Data operations.
96+ ///
97+ /// - Note: The app will ignore this if `performanceMonitoring` is `false`
98+ case performanceMonitoringCoreData
99+
100+ /// Whether to enable performance monitoring for file IO operations.
101+ ///
102+ /// - Note: The app will ignore this if `performanceMonitoring` is `false`
103+ case performanceMonitoringFileIO
104+
105+ /// Whether to enable performance monitoring for networking operations.
106+ ///
107+ /// - Note: The app will ignore this if `performanceMonitoring` is `false`
108+ case performanceMonitoringNetworking
109+
110+ /// Whether to enable performance monitoring for user interaction events.
111+ ///
112+ /// - Note: The app will ignore this if `performanceMonitoring` is `false`
113+ case performanceMonitoringUserInteraction
114+
115+ /// Whether to enable performance monitoring for `UIViewController` life-cycle events.
116+ ///
117+ /// - Note: The app will ignore this if `performanceMonitoring` is `false`
118+ case performanceMonitoringViewController
84119}
0 commit comments