Symbols: 100.0% of Apple's iOS API (31 of 31, exact) · Rows: 3: 3 ✅ · iOS: 27.0+
Area: Swift, Darwin & runtimes · Apple: StateReporting · Issues: area:runtime
- Approach: isim's own Swift module (
isim/swift/overlays/StateReporting): a reporter hands each transition to MetricKit, which measures the time, CPU time and logical writes spent in each state and reports them inMetricReport's state entries for the domains aMetricManagerenables. Transitions are logged (isim state: <domain> -> <state>on stdout, and thecom.apple.statereportingsubsystem in the log store). - Macros: isim's StateReportingMacros compiler plugin (
isim/swift/macro-support/StateReportingMacros.swift). - Objective-C / C interface: Swift only (as Apple's).
- Versus Apple's Simulator: the states reach MetricKit's reports on isim's delivery schedule (a run's at the next
launch, or
metrickit deliver).
| API / feature | Status | iOS | Notes |
|---|---|---|---|
StateReporter (reporter(for:stableMetadata:volatileMetadata:), domain, reportTransition(to:stableMetadata:volatileMetadata:), reportVolatileMetadataUpdate(_:)) |
✅ | 27.0 | adapted: transitions go to MetricKit's state measurements (a nil state ends the domain's state); volatile metadata is kept but not reported. Tested: test_diagnostics::test_metric_reports_ios27 (HelloDiagnostics, --os 27) |
ReportableMetadata, ReportableMetadataValue (cases, integer / floating-point / Bool / CGFloat / Date / String initializers) |
✅ | 27.0 | adapted: a Bool is the integer 1 or 0 (proposed). Tested: test_diagnostics::test_metric_reports_ios27 |
@ReportableMetadata, @ReportableMetadataKey, @ReportableMetadataIgnored |
✅ | 27.0 | adapted: metadataDictionary from the stored instance properties (the key's name or the given key; nil optionals and ignored properties left out). Tested: test_diagnostics::test_metric_reports_ios27 |
Nothing (or not measured yet).