-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MetricKit] Add support for Xcode 13 beta4. #12326
Changes from 2 commits
9bb680c
d7820ef
ff7f52d
eb90e0a
e8ec109
7acbade
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,7 @@ interface MXUnitAveragePixelLuminance : NSUnit { | |
MXUnitAveragePixelLuminance Apl { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac, iOS (13,0)] | ||
[NoWatch, NoTV, Mac (12,0), iOS (13,0)] | ||
[BaseType (typeof(NSObject))] | ||
interface MXHistogramBucket<UnitType> : NSSecureCoding | ||
where UnitType : NSUnit { | ||
|
@@ -101,7 +101,7 @@ interface MXHistogramBucket<UnitType> : NSSecureCoding | |
nuint BucketCount { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac, iOS (13,0)] | ||
[NoWatch, NoTV, Mac (12,0), iOS (13,0)] | ||
[BaseType (typeof(NSObject))] | ||
interface MXHistogram<UnitType> : NSSecureCoding | ||
where UnitType : NSUnit { | ||
|
@@ -119,7 +119,7 @@ interface MXCellularConditionMetric { | |
MXHistogram<MXUnitSignalBars> HistogrammedCellularConditionTime { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac, iOS (13,0)] | ||
[NoWatch, NoTV, Mac (12,0), iOS (13,0)] | ||
[BaseType (typeof(NSObject))] | ||
interface MXMetaData : NSSecureCoding { | ||
[Export ("regionFormat", ArgumentSemantic.Strong)] | ||
|
@@ -137,6 +137,7 @@ interface MXMetaData : NSSecureCoding { | |
[Export ("JSONRepresentation")] | ||
NSData JsonRepresentation { get; } | ||
|
||
#if !MONOMAC | ||
[Internal] | ||
[Deprecated (PlatformName.iOS, 14,0)] | ||
[Export ("DictionaryRepresentation")] | ||
|
@@ -147,6 +148,10 @@ interface MXMetaData : NSSecureCoding { | |
[MacCatalyst (14,0)] | ||
[Export ("dictionaryRepresentation")] | ||
NSDictionary _DictionaryRepresentation14 { get; } | ||
#else | ||
[Export ("dictionaryRepresentation")] | ||
NSDictionary DictionaryRepresentation { get; } | ||
#endif | ||
|
||
[iOS (14,0)] | ||
[MacCatalyst (14,0)] | ||
|
@@ -232,7 +237,7 @@ interface MXDiskIOMetric { | |
NSMeasurement<NSUnitInformationStorage> CumulativeLogicalWrites { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac, iOS (13,0)] | ||
[NoWatch, NoTV, Mac (12,0), iOS (13,0)] | ||
[BaseType (typeof(NSObject))] | ||
[DisableDefaultCtor] | ||
interface MXAverage<UnitType> : NSSecureCoding | ||
|
@@ -278,6 +283,11 @@ interface MXSignpostIntervalData : NSSecureCoding { | |
|
||
[NullAllowed, Export ("cumulativeLogicalWrites", ArgumentSemantic.Strong)] | ||
NSMeasurement<NSUnitInformationStorage> CumulativeLogicalWrites { get; } | ||
|
||
[NullAllowed] | ||
[NoWatch, NoTV, NoMac, iOS (15,0), NoMacCatalyst] | ||
[Export ("cumulativeHitchTimeRatio", ArgumentSemantic.Strong)] | ||
NSMeasurement<NSUnit> CumulativeHitchTimeRatio { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac, iOS (13,0)] | ||
|
@@ -311,39 +321,51 @@ interface MXMetricPayload : NSSecureCoding { | |
[Export ("timeStampEnd", ArgumentSemantic.Strong)] | ||
NSDate TimeStampEnd { get; } | ||
|
||
[NoMac] | ||
[NullAllowed, Export ("cpuMetrics", ArgumentSemantic.Strong)] | ||
MXCpuMetric CpuMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("gpuMetrics", ArgumentSemantic.Strong)] | ||
MXGpuMetric GpuMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("cellularConditionMetrics", ArgumentSemantic.Strong)] | ||
MXCellularConditionMetric CellularConditionMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("applicationTimeMetrics", ArgumentSemantic.Strong)] | ||
MXAppRunTimeMetric ApplicationTimeMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("locationActivityMetrics", ArgumentSemantic.Strong)] | ||
MXLocationActivityMetric LocationActivityMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("networkTransferMetrics", ArgumentSemantic.Strong)] | ||
MXNetworkTransferMetric NetworkTransferMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("applicationLaunchMetrics", ArgumentSemantic.Strong)] | ||
MXAppLaunchMetric ApplicationLaunchMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("applicationResponsivenessMetrics", ArgumentSemantic.Strong)] | ||
MXAppResponsivenessMetric ApplicationResponsivenessMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("diskIOMetrics", ArgumentSemantic.Strong)] | ||
MXDiskIOMetric DiskIOMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("memoryMetrics", ArgumentSemantic.Strong)] | ||
MXMemoryMetric MemoryMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("displayMetrics", ArgumentSemantic.Strong)] | ||
MXDisplayMetric DisplayMetrics { get; } | ||
|
||
[NoMac] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[NullAllowed, Export ("signpostMetrics", ArgumentSemantic.Strong)] | ||
MXSignpostMetric[] SignpostMetrics { get; } | ||
|
||
|
@@ -352,7 +374,7 @@ interface MXMetricPayload : NSSecureCoding { | |
|
||
[Export ("JSONRepresentation")] | ||
NSData JsonRepresentation { get; } | ||
|
||
#if !MONOMAC | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[Internal] | ||
[Deprecated (PlatformName.iOS, 14,0)] | ||
[Export ("DictionaryRepresentation")] | ||
|
@@ -363,24 +385,29 @@ interface MXMetricPayload : NSSecureCoding { | |
[MacCatalyst (14,0)] | ||
[Export ("dictionaryRepresentation")] | ||
NSDictionary _DictionaryRepresentation14 { get; } | ||
#else | ||
[Export ("dictionaryRepresentation")] | ||
NSDictionary DictionaryRepresentation { get; } | ||
#endif | ||
|
||
[iOS (14,0)] | ||
[NoMac, iOS (14,0)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[MacCatalyst (14,0)] | ||
[NullAllowed] | ||
[Export ("animationMetrics", ArgumentSemantic.Strong)] | ||
MXAnimationMetric AnimationMetrics { get; } | ||
|
||
[iOS (14,0)] | ||
[NoMac, iOS (14,0)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: not needed, there's a |
||
[MacCatalyst (14,0)] | ||
[NullAllowed] | ||
[Export ("applicationExitMetrics", ArgumentSemantic.Strong)] | ||
MXAppExitMetric ApplicationExitMetrics { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac, iOS (13,0)] | ||
[NoWatch, NoTV, Mac (12,0), iOS (13,0)] | ||
[BaseType (typeof(NSObject))] | ||
[DisableDefaultCtor] | ||
interface MXMetricManager { | ||
[NoMac] | ||
[Export ("pastPayloads", ArgumentSemantic.Strong)] | ||
MXMetricPayload[] PastPayloads { get; } | ||
|
||
|
@@ -407,10 +434,13 @@ interface MXMetricManager { | |
|
||
interface IMXMetricManagerSubscriber { } | ||
|
||
[NoWatch, NoTV, NoMac, iOS (13,0)] | ||
[NoWatch, NoTV, Mac (12,0), iOS (13,0)] | ||
[Protocol] | ||
interface MXMetricManagerSubscriber { | ||
#if !XAMCORE_4 | ||
mandel-macaque marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[Abstract] | ||
#endif | ||
[NoMac] | ||
[Export ("didReceiveMetricPayloads:")] | ||
void DidReceiveMetricPayloads (MXMetricPayload[] payloads); | ||
|
||
|
@@ -508,7 +538,7 @@ interface MXForegroundExitData : NSSecureCoding { | |
nuint CumulativeAppWatchdogExitCount { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[NoWatch, NoTV, Mac (12,0)] | ||
[iOS (14,0)] | ||
[MacCatalyst (14,0)] | ||
[BaseType (typeof (NSObject))] | ||
|
@@ -519,7 +549,7 @@ interface MXCallStackTree : NSSecureCoding { | |
NSData JsonRepresentation { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[NoWatch, NoTV, Mac (12,0)] | ||
[iOS (14,0)] | ||
[MacCatalyst (14,0)] | ||
[BaseType (typeof (MXDiagnostic), Name = "MXCPUExceptionDiagnostic")] | ||
|
@@ -536,7 +566,7 @@ interface MXCpuExceptionDiagnostic { | |
NSMeasurement<NSUnitDuration> TotalSampledTime { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[NoWatch, NoTV, Mac (12,0)] | ||
[iOS (14,0)] | ||
[MacCatalyst (14,0)] | ||
[BaseType (typeof (MXDiagnostic))] | ||
|
@@ -568,7 +598,7 @@ interface MXCrashDiagnostic { | |
NSNumber Signal { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[NoWatch, NoTV, Mac (12,0)] | ||
[iOS (14,0)] | ||
[MacCatalyst (14,0)] | ||
[BaseType (typeof (NSObject))] | ||
|
@@ -588,7 +618,7 @@ interface MXDiagnostic : NSSecureCoding { | |
NSDictionary DictionaryRepresentation { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[NoWatch, NoTV, Mac (12,0)] | ||
[iOS (14,0)] | ||
[MacCatalyst (14,0)] | ||
[BaseType (typeof (NSObject))] | ||
|
@@ -620,7 +650,7 @@ interface MXDiagnosticPayload : NSSecureCoding { | |
NSDictionary DictionaryRepresentation { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[NoWatch, NoTV, Mac (12,0)] | ||
[iOS (14,0)] | ||
[MacCatalyst (14,0)] | ||
[BaseType (typeof (MXDiagnostic))] | ||
|
@@ -634,7 +664,7 @@ interface MXDiskWriteExceptionDiagnostic { | |
NSMeasurement<NSUnitInformationStorage> TotalWritesCaused { get; } | ||
} | ||
|
||
[NoWatch, NoTV, NoMac] | ||
[NoWatch, NoTV, Mac (12,0)] | ||
[iOS (14,0)] | ||
[MacCatalyst (14,0)] | ||
[BaseType (typeof (MXDiagnostic))] | ||
|
@@ -647,4 +677,4 @@ interface MXHangDiagnostic { | |
[Export ("hangDuration", ArgumentSemantic.Strong)] | ||
NSMeasurement<NSUnitDuration> HangDuration { get; } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Added for xamcore | ||
mandel-macaque marked this conversation as resolved.
Show resolved
Hide resolved
|
||
!incorrect-protocol-member! MXMetricManagerSubscriber::didReceiveMetricPayloads: is OPTIONAL and should NOT be abstract | ||
!missing-selector! MXSignpostIntervalData::cumulativeHitchTimeRatio not bound |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Added for xamcore | ||
mandel-macaque marked this conversation as resolved.
Show resolved
Hide resolved
|
||
!incorrect-protocol-member! MXMetricManagerSubscriber::didReceiveMetricPayloads: is OPTIONAL and should NOT be abstract | ||
!missing-selector! MXSignpostIntervalData::cumulativeHitchTimeRatio not bound |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: not needed, there's a
[NoMac]
on the type-level