Skip to content

Instantly share code, notes, and snippets.

@Sherlouk
Created August 8, 2020 21:34
Show Gist options
  • Save Sherlouk/58f4cecef3e839f64a2c1e66530eb961 to your computer and use it in GitHub Desktop.
Save Sherlouk/58f4cecef3e839f64a2c1e66530eb961 to your computer and use it in GitHub Desktop.
MetricKit Sample JSON (iOS 14)
{
"crashDiagnostics" : [
{
"version" : "1.0.0",
"callStackTree" : {
"callStacks" : [
{
"threadAttributed" : true,
"callStackRootFrames" : [
{
"binaryUUID" : "241E783B-4158-4B50-9960-FB8C840171EE",
"offsetIntoBinaryTextSegment" : 123,
"sampleCount" : 20,
"binaryName" : "testBinaryName",
"address" : 74565
}
]
}
],
"callStackPerThread" : true
},
"diagnosticMetaData" : {
"appBuildVersion" : "1",
"appVersion" : "1.0",
"regionFormat" : "GB",
"exceptionType" : 1,
"osVersion" : "iPhone OS 14.0 (18A5301v)",
"deviceType" : "iPhone8,2",
"signal" : 11,
"exceptionCode" : 1,
"platformArchitecture" : "arm64",
"terminationReason" : "Namespace SIGNAL, Code 0xb",
"virtualMemoryRegionInfo" : "0 is not in any region. Bytes before following region: 4000000000 REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL UNUSED SPACE AT START ---> __TEXT 0000000000000000-0000000000000000 [ 32K] r-x\/r-x SM=COW ...pp\/Test"
}
}
],
"timeStampEnd" : "2020-08-08 20:16:32 +0000",
"hangDiagnostics" : [
{
"version" : "1.0.0",
"callStackTree" : {
"callStacks" : [
{
"threadAttributed" : true,
"callStackRootFrames" : [
{
"binaryUUID" : "241E783B-4158-4B50-9960-FB8C840171EE",
"offsetIntoBinaryTextSegment" : 123,
"sampleCount" : 20,
"binaryName" : "testBinaryName",
"address" : 74565
}
]
}
],
"callStackPerThread" : true
},
"diagnosticMetaData" : {
"appBuildVersion" : "1",
"appVersion" : "1.0",
"regionFormat" : "GB",
"hangDuration" : "20 secs",
"osVersion" : "iPhone OS 14.0 (18A5301v)",
"deviceType" : "iPhone8,2",
"platformArchitecture" : "arm64"
}
}
],
"cpuExceptionDiagnostics" : [
{
"version" : "1.0.0",
"callStackTree" : {
"callStacks" : [
{
"callStackRootFrames" : [
{
"binaryUUID" : "7CF85767-CF25-4047-8DCB-F6FF51429DF8",
"offsetIntoBinaryTextSegment" : 123,
"sampleCount" : 20,
"binaryName" : "testBinaryName",
"address" : 74565
}
]
}
],
"callStackPerThread" : false
},
"diagnosticMetaData" : {
"appBuildVersion" : "1",
"appVersion" : "1.0",
"regionFormat" : "GB",
"osVersion" : "iPhone OS 14.0 (18A5301v)",
"deviceType" : "iPhone8,2",
"platformArchitecture" : "arm64",
"totalCPUTime" : "20 secs",
"totalSampledTime" : "20 secs"
}
}
],
"timeStampBegin" : "2020-08-08 20:16:32 +0000",
"diskWriteExceptionDiagnostics" : [
{
"version" : "1.0.0",
"callStackTree" : {
"callStacks" : [
{
"callStackRootFrames" : [
{
"binaryUUID" : "7CF85767-CF25-4047-8DCB-F6FF51429DF8",
"offsetIntoBinaryTextSegment" : 123,
"sampleCount" : 20,
"binaryName" : "testBinaryName",
"address" : 74565
}
]
}
],
"callStackPerThread" : false
},
"diagnosticMetaData" : {
"appBuildVersion" : "1",
"appVersion" : "1.0",
"regionFormat" : "GB",
"writesCaused" : "2,000 byte",
"osVersion" : "iPhone OS 14.0 (18A5301v)",
"deviceType" : "iPhone8,2",
"platformArchitecture" : "arm64"
}
}
]
}
{
"locationActivityMetrics" : {
"cumulativeBestAccuracyForNavigationTime" : "20 secs",
"cumulativeBestAccuracyTime" : "30 secs",
"cumulativeHundredMetersAccuracyTime" : "30 secs",
"cumulativeNearestTenMetersAccuracyTime" : "30 secs",
"cumulativeKilometerAccuracyTime" : "20 secs",
"cumulativeThreeKilometersAccuracyTime" : "20 secs"
},
"cellularConditionMetrics" : {
"cellConditionTime" : {
"histogramNumBuckets" : 3,
"histogramValue" : {
"0" : {
"bucketCount" : 20,
"bucketStart" : "1 bars",
"bucketEnd" : "1 bars"
},
"1" : {
"bucketCount" : 30,
"bucketStart" : "2 bars",
"bucketEnd" : "2 bars"
},
"2" : {
"bucketCount" : 50,
"bucketStart" : "3 bars",
"bucketEnd" : "3 bars"
}
}
}
},
"metaData" : {
"appBuildVersion" : "1",
"osVersion" : "iPhone OS 14.0 (18A5301v)",
"regionFormat" : "GB",
"platformArchitecture" : "arm64",
"deviceType" : "iPhone8,2"
},
"gpuMetrics" : {
"cumulativeGPUTime" : "20 secs"
},
"memoryMetrics" : {
"peakMemoryUsage" : "200,000 kB",
"averageSuspendedMemory" : {
"averageValue" : "100,000 kB",
"standardDeviation" : 0,
"sampleCount" : 500
}
},
"applicationExitMetrics" : {
"backgroundExitData" : {
"cumulativeAppWatchdogExitCount" : 1,
"cumulativeMemoryResourceLimitExitCount" : 1,
"cumulativeBackgroundURLSessionCompletionTimeoutExitCount" : 1,
"cumulativeBackgroundFetchCompletionTimeoutExitCount" : 1,
"cumulativeAbnormalExitCount" : 1,
"cumulativeSuspendedWithLockedFileExitCount" : 1,
"cumulativeIllegalInstructionExitCount" : 1,
"cumulativeMemoryPressureExitCount" : 1,
"cumulativeBadAccessExitCount" : 1,
"cumulativeCPUResourceLimitExitCount" : 1,
"cumulativeBackgroundTaskAssertionTimeoutExitCount" : 1,
"cumulativeNormalAppExitCount" : 1
},
"foregroundExitData" : {
"cumulativeBadAccessExitCount" : 1,
"cumulativeAbnormalExitCount" : 1,
"cumulativeMemoryResourceLimitExitCount" : 1,
"cumulativeNormalAppExitCount" : 1,
"cumulativeCPUResourceLimitExitCount" : 1,
"cumulativeIllegalInstructionExitCount" : 1,
"cumulativeAppWatchdogExitCount" : 1
}
},
"displayMetrics" : {
"averagePixelLuminance" : {
"averageValue" : "50 apl",
"standardDeviation" : 0,
"sampleCount" : 500
}
},
"signpostMetrics" : [
{
"signpostIntervalData" : {
"histogrammedSignpostDurations" : {
"histogramNumBuckets" : 3,
"histogramValue" : {
"0" : {
"bucketCount" : 50,
"bucketStart" : "0 ms",
"bucketEnd" : "100 ms"
},
"1" : {
"bucketCount" : 60,
"bucketStart" : "100 ms",
"bucketEnd" : "400 ms"
},
"2" : {
"bucketCount" : 30,
"bucketStart" : "400 ms",
"bucketEnd" : "700 ms"
}
}
},
"signpostCumulativeCPUTime" : "30,000 ms",
"signpostAverageMemory" : "100,000 kB",
"signpostCumulativeLogicalWrites" : "600 kB"
},
"signpostCategory" : "TestSignpostCategory1",
"signpostName" : "TestSignpostName1",
"totalSignpostCount" : 30
},
{
"signpostIntervalData" : {
"histogrammedSignpostDurations" : {
"histogramNumBuckets" : 3,
"histogramValue" : {
"0" : {
"bucketCount" : 60,
"bucketStart" : "0 ms",
"bucketEnd" : "200 ms"
},
"1" : {
"bucketCount" : 70,
"bucketStart" : "201 ms",
"bucketEnd" : "300 ms"
},
"2" : {
"bucketCount" : 80,
"bucketStart" : "301 ms",
"bucketEnd" : "500 ms"
}
}
},
"signpostCumulativeCPUTime" : "50,000 ms",
"signpostAverageMemory" : "60,000 kB",
"signpostCumulativeLogicalWrites" : "700 kB"
},
"signpostCategory" : "TestSignpostCategory2",
"signpostName" : "TestSignpostName2",
"totalSignpostCount" : 40
}
],
"cpuMetrics" : {
"cumulativeCPUTime" : "100 secs",
"cumulativeCPUInstructions" : "100 kiloinstructions"
},
"networkTransferMetrics" : {
"cumulativeCellularDownload" : "80,000 kB",
"cumulativeWifiDownload" : "60,000 kB",
"cumulativeCellularUpload" : "70,000 kB",
"cumulativeWifiUpload" : "50,000 kB"
},
"diskIOMetrics" : {
"cumulativeLogicalWrites" : "1,300 kB"
},
"applicationLaunchMetrics" : {
"histogrammedTimeToFirstDrawKey" : {
"histogramNumBuckets" : 3,
"histogramValue" : {
"0" : {
"bucketCount" : 50,
"bucketStart" : "1,000 ms",
"bucketEnd" : "1,010 ms"
},
"1" : {
"bucketCount" : 60,
"bucketStart" : "2,000 ms",
"bucketEnd" : "2,010 ms"
},
"2" : {
"bucketCount" : 30,
"bucketStart" : "3,000 ms",
"bucketEnd" : "3,010 ms"
}
}
},
"histogrammedResumeTime" : {
"histogramNumBuckets" : 3,
"histogramValue" : {
"0" : {
"bucketCount" : 60,
"bucketStart" : "200 ms",
"bucketEnd" : "210 ms"
},
"1" : {
"bucketCount" : 70,
"bucketStart" : "300 ms",
"bucketEnd" : "310 ms"
},
"2" : {
"bucketCount" : 80,
"bucketStart" : "500 ms",
"bucketEnd" : "510 ms"
}
}
}
},
"applicationTimeMetrics" : {
"cumulativeForegroundTime" : "700 secs",
"cumulativeBackgroundTime" : "40 secs",
"cumulativeBackgroundAudioTime" : "30 secs",
"cumulativeBackgroundLocationTime" : "30 secs"
},
"timeStampEnd" : "2020-08-07 22:59:00 +0000",
"animationMetrics" : {
"scrollHitchTimeRatio" : "1,000 ms per s"
},
"applicationResponsivenessMetrics" : {
"histogrammedAppHangTime" : {
"histogramNumBuckets" : 3,
"histogramValue" : {
"0" : {
"bucketCount" : 50,
"bucketStart" : "0 ms",
"bucketEnd" : "100 ms"
},
"1" : {
"bucketCount" : 60,
"bucketStart" : "100 ms",
"bucketEnd" : "400 ms"
},
"2" : {
"bucketCount" : 30,
"bucketStart" : "400 ms",
"bucketEnd" : "700 ms"
}
}
}
},
"appVersion" : "1.0",
"timeStampBegin" : "2020-08-06 23:00:00 +0000"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment