-
Notifications
You must be signed in to change notification settings - Fork 543
MetricKit macOS xcode26.0 b1
Alex Soto edited this page Jun 9, 2025
·
1 revision
#MetricKit.framework
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAnimationMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAnimationMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAnimationMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAnimationMetric.h 2025-05-23 06:10:41
@@ -16,7 +16,7 @@
@class MXAnimationMetric
@abstract An MXMetric subclass that encapsulates app animation metrics.
*/
-API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(14.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos)
@interface MXAnimationMetric : MXMetric
/*!
@@ -27,6 +27,17 @@
@discussion Dimensionless.
*/
@property (readonly, strong, nonnull) NSMeasurement<NSUnit *> *scrollHitchTimeRatio;
+
+/*!
+ @property hitchTimeRatio
+ @abstract Ratio of time the application spent hitching during tracked animations.
+ @discussion Hitches are user perceptible frame delays that can occur during animations and scrolling.
+ @discussion This metric incorporates adjustments that optimize for user perception, and typically will be the most accurate representation of what hitches users experience during app usage.
+ @discussion This metric is normalized against total animation duration.
+ @discussion Many animations are tracked by default. You can track additional animations using the -[NSProcessInfo beginActivityWithOptions:reason:] method with the NSActivityAnimationTrackingEnabled option.
+ @discussion Dimensionless.
+ */
+@property (readonly, strong, nonnull) NSMeasurement<NSUnit *> *hitchTimeRatio API_AVAILABLE(ios(26.0), macos(26.0)) API_UNAVAILABLE(tvos, watchos);
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppExitMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppExitMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppExitMetric.h 2025-04-19 04:31:20
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppExitMetric.h 2025-05-23 07:40:45
@@ -17,7 +17,7 @@
@discussion Foreground exits are user visible terminations that, when unexpected, interrupt usage.
@discussion Not all foreground exits are unexpected. See the documentation for each exit reason for more information.
*/
-API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(14.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos)
@interface MXForegroundExitData : NSObject <NSSecureCoding>
/*!
@@ -69,7 +69,7 @@
@discussion Background exits are terminations that, when unexpected, can impact performance metrics, such as launch time.
@discussion Not all background exits are unexpected. See the documentation for each exit reason for more information.
*/
-API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(14.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos)
@interface MXBackgroundExitData : NSObject <NSSecureCoding>
/*!
@@ -147,7 +147,7 @@
@discussion Application exits can be expected, such as when the application is killed in the app switcher by the user, or unexpected, such as when a runtime error occurs.
@discussion Minimizing unexpected exits and maximizing expected exits can improve performance and reliability of your application.
*/
-API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(14.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos)
@interface MXAppExitMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppLaunchMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppLaunchMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppLaunchMetric.h 2025-04-19 02:03:32
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppLaunchMetric.h 2025-05-23 06:10:41
@@ -16,7 +16,7 @@
@class MXAppLaunchMetric
@abstract An MXMetric subclass that encapsulates app launch metrics.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXAppLaunchMetric : MXMetric
/*!
@@ -41,7 +41,7 @@
@discussion This represents the time when the first CA commit is finished where the application launch has been optimized by the system.
@discussion In iOS 15, the system will opportunistically start applications that are not running in the background to reduce the amount of time a user may have to wait before an application is usable. These launches can occur after a system reboot and periodically as system conditions allow.
*/
-@property (readonly, strong, nonnull) MXHistogram<NSUnitDuration *> *histogrammedOptimizedTimeToFirstDraw API_AVAILABLE(ios(15.2)) API_UNAVAILABLE(macos, tvos, watchos);
+@property (readonly, strong, nonnull) MXHistogram<NSUnitDuration *> *histogrammedOptimizedTimeToFirstDraw API_AVAILABLE(ios(15.2), macos(12.2)) API_UNAVAILABLE(tvos, watchos);
/*!
@property histogrammedExtendedLaunch
@@ -49,7 +49,7 @@
@discussion Dimensioned as NSUnitDuration.
@discussion This represents the time when the app has drawn the first frame and finishes all extended launch tasks that assigned by the developer.
*/
-@property (readonly, strong, nonnull) MXHistogram<NSUnitDuration *> *histogrammedExtendedLaunch API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, tvos, watchos);
+@property (readonly, strong, nonnull) MXHistogram<NSUnitDuration *> *histogrammedExtendedLaunch API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(tvos, watchos);
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppResponsivenessMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppResponsivenessMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppResponsivenessMetric.h 2025-04-19 02:03:32
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppResponsivenessMetric.h 2025-05-23 06:10:41
@@ -16,7 +16,7 @@
@class MXAppResponsivenessMetric
@abstract An MXMetric subclass that encapsulates app responsiveness metrics.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXAppResponsivenessMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppRunTimeMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppRunTimeMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppRunTimeMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXAppRunTimeMetric.h 2025-05-23 06:10:41
@@ -16,7 +16,7 @@
@abstract An MXMetric subclass that encapsulates app runtime metrics.
@discussion Runtime metrics describe application time spent running in different modes, such as audio, location, etc.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXAppRunTimeMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXCPUMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXCPUMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXCPUMetric.h 2025-04-19 02:03:32
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXCPUMetric.h 2025-05-23 06:10:41
@@ -15,7 +15,7 @@
@class MXCPUMetric
@abstract An MXMetric subclass that encapsulates CPU metrics.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXCPUMetric : MXMetric
/*!
@@ -32,7 +32,7 @@
@discussion The data here represents the total number of CPU instructions an application retired over the date range of the containing payload.
@discussion Dimensionless.
*/
-@property (readonly, strong, nonnull) NSMeasurement<NSUnit *> *cumulativeCPUInstructions API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos);
+@property (readonly, strong, nonnull) NSMeasurement<NSUnit *> *cumulativeCPUInstructions API_AVAILABLE(ios(14.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos);
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXCellularConditionMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXCellularConditionMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXCellularConditionMetric.h 2025-04-19 02:03:32
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXCellularConditionMetric.h 2025-05-23 06:10:41
@@ -17,7 +17,7 @@
@class MXCellConditionMetric
@abstract An MXMetric subclass that encapsulates cellular condition metrics.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXCellularConditionMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDiskIOMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDiskIOMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDiskIOMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDiskIOMetric.h 2025-05-23 06:10:42
@@ -16,7 +16,7 @@
@class MXDiskIOMetric
@abstract An MXMetric subclass that encapsulates disk IO metrics.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXDiskIOMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDiskSpaceUsageMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDiskSpaceUsageMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDiskSpaceUsageMetric.h 1969-12-31 19:00:00
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDiskSpaceUsageMetric.h 2025-05-23 06:10:41
@@ -0,0 +1,80 @@
+//
+// MXDiskSpaceUsageMetric.h
+// MetricKit
+//
+// Copyright (c) 2025 Apple Inc.
+// All rights reserved.
+
+#import <Foundation/Foundation.h>
+#import <os/availability.h>
+#import <MetricKit/MXMetric.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/*!
+@class MXDiskSpaceUsageMetric
+@abstract An MXMetric subclass that encapsulates app disk space usage Metrics.
+@discussion Disk space is a shared resource on-device, and overusage of available disk space can negatively impact the customer experience.
+@discussion This Metric subclass contains properties that describe disk space usage in various locations in the apps container. Some properties also describe the number of files in common locations, and the types of files.
+@discussion The data contained in this Metric is computed as a daily snapshot, and should be used as a guide to optimize app disk space usage.
+*/
+API_AVAILABLE(ios(26.0), macos(26.0)) API_UNAVAILABLE(tvos, watchos)
+@interface MXDiskSpaceUsageMetric : MXMetric
+
+/*!
+@property totalBinaryFileSize
+@abstract Total fixed size used by the app.
+@discussion Dimensioned as NSUnitInformationStorage, base unit is bytes.
+*/
+@property (readonly, strong, nonnull) NSMeasurement<NSUnitInformationStorage *> *totalBinaryFileSize;
+
+/*!
+@property totalBinaryFileCount
+@abstract Total count of fixed files owned by the app.
+*/
+@property (readonly) NSInteger totalBinaryFileCount;
+
+/*!
+@property totalDataFileSize
+@abstract Total data file size used by the app.
+@discussion Dimensioned as NSUnitInformationStorage, base unit is bytes.
+*/
+@property (readonly, strong, nonnull) NSMeasurement<NSUnitInformationStorage *> *totalDataFileSize;
+
+/*!
+@property totalDataFileCount
+@abstract Total count of data files owned by the app.
+*/
+@property (readonly) NSInteger totalDataFileCount;
+
+/*!
+@property totalCacheFolderSize
+@abstract Total file size contained within the apps cache folder.
+@discussion Dimensioned as NSUnitInformationStorage, base unit is bytes.
+*/
+@property (readonly, strong, nonnull) NSMeasurement<NSUnitInformationStorage *> *totalCacheFolderSize;
+
+/*!
+@property totalCloneSize
+@abstract Total clone size used by the app.
+@discussion Dimensioned as NSUnitInformationStorage, base unit is bytes.
+*/
+@property (readonly, strong, nonnull) NSMeasurement<NSUnitInformationStorage *> *totalCloneSize;
+
+/*!
+@property totalDiskSpaceUsedSize
+@abstract Total disk space used by the app.
+@discussion Dimensioned as NSUnitInformationStorage, base unit is bytes.
+*/
+@property (readonly, strong, nonnull) NSMeasurement<NSUnitInformationStorage *> *totalDiskSpaceUsedSize;
+
+/*!
+@property totalDiskSpaceCapacity
+@abstract Total disk space capacity of the device
+@discussion Dimensioned as NSUnitInformationStorage, base unit is bytes.
+*/
+@property (readonly, strong, nonnull) NSMeasurement<NSUnitInformationStorage *> *totalDiskSpaceCapacity;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDisplayMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDisplayMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDisplayMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXDisplayMetric.h 2025-05-23 06:10:41
@@ -17,7 +17,7 @@
@class MXDisplayMetric
@abstract An MXMetric subclass that encapsulates display metrics.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXDisplayMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXGPUMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXGPUMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXGPUMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXGPUMetric.h 2025-05-23 06:10:41
@@ -15,7 +15,7 @@
@class MXGPUMetric
@abstract An MXMetric subclass that encapsulates GPU metrics.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXGPUMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXLocationActivityMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXLocationActivityMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXLocationActivityMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXLocationActivityMetric.h 2025-05-23 06:10:41
@@ -16,7 +16,7 @@
@abstract An MXMetric subclass that encapsulates location metrics
@discussion The metrics contained in this class describe properties of location activity. See MXAppRunTimeMetric for time spent performing location activities.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXLocationActivityMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMemoryMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMemoryMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMemoryMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMemoryMetric.h 2025-05-23 06:10:41
@@ -17,7 +17,7 @@
@class MXMemoryMetric
@abstract An MXMetric subclass that encapsulates memory metrics.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXMemoryMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetaData.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetaData.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetaData.h 2025-04-19 02:03:32
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetaData.h 2025-05-23 06:10:41
@@ -69,7 +69,14 @@
@property (readonly) pid_t pid API_AVAILABLE(macos(14.0), ios(17.0)) API_UNAVAILABLE(tvos, watchos);
+/*!
+ @property bundleIdentifier
+ @abstract String representation of the bundle ID of the process.
+ */
+@property (readonly) NSString* bundleIdentifier API_AVAILABLE(macos(26.0), ios(26.0)) API_UNAVAILABLE(tvos, watchos);
+
+
/*!
@method JSONRepresentation
@abstract Convenience method to return a JSON representation of this metadata.
@@ -82,14 +89,14 @@
@abstract Convenience method to return a NSDictionary representation of this metadata.
@result An NSDictionary object containing the dictionary representation
*/
-- (NSDictionary *)DictionaryRepresentation API_DEPRECATED_WITH_REPLACEMENT("Use dictionaryRepresentation", ios(13.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(macos, tvos, watchos);
+- (NSDictionary *)DictionaryRepresentation API_DEPRECATED_WITH_REPLACEMENT("Use dictionaryRepresentation", ios(13.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(macos, tvos, watchos) NS_REFINED_FOR_SWIFT;
/*!
@method dictionaryRepresentation
@abstract Convenience method to return a NSDictionary representation of this metadata.
@result An NSDictionary object containing the dictionary representation
*/
-- (NSDictionary *)dictionaryRepresentation API_AVAILABLE(ios(14.0), macos(12.0)) API_UNAVAILABLE(tvos, watchos) NS_REFINED_FOR_SWIFT;
+- (NSDictionary *)dictionaryRepresentation API_AVAILABLE(ios(13.0), macos(12.0)) API_UNAVAILABLE(tvos, watchos);
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetric.h 2025-04-19 02:03:32
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetric.h 2025-05-23 06:10:41
@@ -15,7 +15,7 @@
@abstract An abstract class that describes a specific metric vended by MetricKit.
@discussion All supported metrics are subclasses of MXMetric.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXMetric : NSObject <NSSecureCoding>
/*!
@@ -30,14 +30,14 @@
@abstract Convenience method to return a NSDictionary representation of this metric.
@result An NSDictionary object containing the dictionary representation
*/
-- (NSDictionary *)DictionaryRepresentation API_DEPRECATED_WITH_REPLACEMENT("Use dictionaryRepresentation", ios(13.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(macos, tvos, watchos);
+- (NSDictionary *)DictionaryRepresentation API_DEPRECATED_WITH_REPLACEMENT("Use dictionaryRepresentation", ios(13.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(macos, tvos, watchos) NS_REFINED_FOR_SWIFT;
/*!
@method dictionaryRepresentation
@abstract Convenience method to return a NSDictionary representation of this metric.
@result An NSDictionary object containing the dictionary representation
*/
-- (NSDictionary *)dictionaryRepresentation API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos) NS_REFINED_FOR_SWIFT;
+- (NSDictionary *)dictionaryRepresentation API_AVAILABLE(ios(13.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos);
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetricManager.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetricManager.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetricManager.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetricManager.h 2025-05-23 06:10:33
@@ -19,7 +19,7 @@
@typedef MXLaunchTaskID
@abstract Describes the general purpose of a specific launch task.
*/
-API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(tvos, watchos)
typedef const NSString *const MXLaunchTaskID NS_TYPED_EXTENSIBLE_ENUM;
/*!
@@ -36,7 +36,7 @@
@property pastPayloads
@abstract A list of past metric payloads received.
*/
-@property (readonly, nonnull, strong) NSArray<MXMetricPayload *> *pastPayloads API_UNAVAILABLE(macos);
+@property (readonly, nonnull, strong) NSArray<MXMetricPayload *> *pastPayloads;
/*!
@property pastDiagnosticPayloads
@@ -87,7 +87,7 @@
@result Returns @c YES if the measurement started successfully and @c NO otherwise.
*/
-+ (BOOL)extendLaunchMeasurementForTaskID:(MXLaunchTaskID)taskID error:(NSError **)error API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, tvos, watchos);
++ (BOOL)extendLaunchMeasurementForTaskID:(MXLaunchTaskID)taskID error:(NSError **)error API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(tvos, watchos);
/*!
@method finishExtendedLaunchMeasurementForTaskID:error:
@@ -98,7 +98,7 @@
@result Returns @c YES if the measurement for the task finished successfully and @c NO otherwise.
*/
-+ (BOOL)finishExtendedLaunchMeasurementForTaskID:(MXLaunchTaskID)taskID error:(NSError **)error API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(macos, tvos, watchos);
++ (BOOL)finishExtendedLaunchMeasurementForTaskID:(MXLaunchTaskID)taskID error:(NSError **)error API_AVAILABLE(ios(16.0), macos(13.0)) API_UNAVAILABLE(tvos, watchos);
@end
@@ -123,7 +123,7 @@
@discussion Atleast one subscriber must be available to receive metrics.
@discussion This method is invoked on a background queue.
*/
-- (void)didReceiveMetricPayloads:(NSArray<MXMetricPayload *> * _Nonnull)payloads API_UNAVAILABLE(macos);
+- (void)didReceiveMetricPayloads:(NSArray<MXMetricPayload *> * _Nonnull)payloads API_AVAILABLE(macos(10.15));
/*!
@method didReceiveDiagnosticPayloads:payloads
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetricPayload.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetricPayload.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetricPayload.h 2025-04-19 03:14:32
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXMetricPayload.h 2025-05-23 05:35:41
@@ -22,6 +22,7 @@
#import <MetricKit/MXDisplayMetric.h>
#import <MetricKit/MXAnimationMetric.h>
#import <MetricKit/MXAppExitMetric.h>
+#import <MetricKit/MXDiskSpaceUsageMetric.h>
#import <MetricKit/MXSignpostMetric.h>
NS_ASSUME_NONNULL_BEGIN
@@ -34,7 +35,7 @@
@discussion An MXMetricPayload contains data that covers a 24 hour period of application usage. The properties timeStampBegin and timeStampEnd should be used to determine which time range the payload covers.
@discussion It is possible for an MXMetricPayload to cover regions of time where an application was updated, and thus had multiple different app version strings. The property latestApplicationVersion will always reflect the latest appVersion at the time the metric payload was created. Use includesMultipleApplicationVersions to determine if an application changed versions during the time range the payload covers.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXMetricPayload : NSObject <NSSecureCoding>
/*!
@@ -135,15 +136,21 @@
@property animationMetrics
@abstract An object containing animation metrics for this application.
*/
-@property (readonly, strong, nullable) MXAnimationMetric *animationMetrics API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos);
+@property (readonly, strong, nullable) MXAnimationMetric *animationMetrics API_AVAILABLE(ios(14.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos);
/*!
@property applicationExitMetrics
@abstract An object containing exit metrics for this application.
*/
-@property (readonly, strong, nullable) MXAppExitMetric *applicationExitMetrics API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos);
+@property (readonly, strong, nullable) MXAppExitMetric *applicationExitMetrics API_AVAILABLE(ios(14.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos);
/*!
+ @property diskSpaceUsageMetrics
+ @abstract An object containing disk space usage metrics for this application.
+ */
+@property (readonly, strong, nullable) MXDiskSpaceUsageMetric *diskSpaceUsageMetrics
+API_AVAILABLE(ios(26.0), macos(26.0)) API_UNAVAILABLE(tvos, watchos);
+/*!
@property signpostMetrics
@abstract An array containing signpost metrics for this application.
*/
@@ -167,14 +174,14 @@
@abstract Convenience method to return a NSDictionary representation of this payload.
@result An NSDictionary object containing the dictionary representation
*/
-- (NSDictionary *)DictionaryRepresentation API_DEPRECATED_WITH_REPLACEMENT("Use dictionaryRepresentation", ios(13.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(macos, tvos, watchos);
+- (NSDictionary *)DictionaryRepresentation API_DEPRECATED_WITH_REPLACEMENT("Use dictionaryRepresentation", ios(13.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(macos, tvos, watchos) NS_REFINED_FOR_SWIFT;
/*!
@method dictionaryRepresentation
@abstract Convenience method to return a NSDictionary representation of this payload.
@result An NSDictionary object containing the dictionary representation
*/
-- (NSDictionary *)dictionaryRepresentation API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(macos, tvos, watchos) NS_REFINED_FOR_SWIFT;
+- (NSDictionary *)dictionaryRepresentation API_AVAILABLE(ios(13.0), macos(11.0)) API_UNAVAILABLE(tvos, watchos);
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXNetworkTransferMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXNetworkTransferMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXNetworkTransferMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXNetworkTransferMetric.h 2025-05-23 06:10:42
@@ -16,7 +16,7 @@
@class MXNetworkTransferMetric
@abstract An MXMetric subclass that encapsulates network transfer metrics
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXNetworkTransferMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXSignpostMetric.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXSignpostMetric.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXSignpostMetric.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXSignpostMetric.h 2025-05-23 05:17:42
@@ -22,7 +22,7 @@
@discussion To limit on-device overhead, the system will automatically limit the number of signposts (emitted using the MetricKit log handle) processed.
@discussion Avoid losing telemetry by limiting usage of signposts (emitted using the MetricKit log handle) to critical sections of code.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXSignpostIntervalData : NSObject <NSSecureCoding>
/*!
@@ -57,7 +57,7 @@
@abstract Cumulative hitch time ratio aggregated over the MXSignpostAnimation intervals.
@discussion This property is null when signposts with the associated signpostName and signpostCategory contain no interval metric data.
*/
-@property (readonly, strong, nullable) NSMeasurement<NSUnit *> *cumulativeHitchTimeRatio API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(macos, tvos, watchos);
+@property (readonly, strong, nullable) NSMeasurement<NSUnit *> *cumulativeHitchTimeRatio API_AVAILABLE(ios(15.0), macos(12.0)) API_UNAVAILABLE(tvos, watchos);
@end
@@ -66,7 +66,7 @@
@abstract An MXMetric subclass that encapsulates signpost metrics.
@discussion Signposts emit using the os_log_t generated by makeLogHandleWithCategory: in MXMetricManger can be flagged for aggregation and reported back in MXMetricPayload.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXSignpostMetric : MXMetric
/*!
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXSignpost_Private.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXSignpost_Private.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXSignpost_Private.h 2025-04-19 02:03:33
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXSignpost_Private.h 2025-05-23 06:10:41
@@ -29,7 +29,7 @@
#else
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
void* _Nonnull _MXSignpostMetricsSnapshot(void);
#define _METRICS_SIGNPOST_TYPE_TOKEN "signpost:metrics"
#define _MXSIGNPOST_METRICS_SNAPSHOT_FORMAT "\n%{public, " _METRICS_SIGNPOST_TYPE_TOKEN "}@"
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXUnit.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXUnit.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXUnit.h 2025-04-19 02:03:32
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MXUnit.h 2025-05-23 06:10:41
@@ -13,7 +13,7 @@
@class MXUnitSignalBars
@abstract An NSUnit subclass representing the number of signal bars for signal strength.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXUnitSignalBars : NSDimension
/*
Base unit - bars
@@ -25,7 +25,7 @@
@class MXUnitAveragePixelLuminance
@abstract An NSUnit subclass representing the linear space Display APL.
*/
-API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(macos, tvos, watchos)
+API_AVAILABLE(ios(13.0), macos(10.15)) API_UNAVAILABLE(tvos, watchos)
@interface MXUnitAveragePixelLuminance : NSDimension
/*
Base unit - apl
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MetricKit.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MetricKit.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MetricKit.h 2025-04-19 02:03:31
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetricKit.framework/Headers/MetricKit.h 2025-05-23 06:10:40
@@ -28,6 +28,7 @@
#import <MetricKit/MXMemoryMetric.h>
#import <MetricKit/MXNetworkTransferMetric.h>
#import <MetricKit/MXSignpostMetric.h>
+#import <MetricKit/MXDiskSpaceUsageMetric.h>
#import <MetricKit/MXSignpost.h>
#import <MetricKit/MXCPUExceptionDiagnostic.h>
#import <MetricKit/MXDiskWriteExceptionDiagnostic.h>