Documentation
¶
Overview ¶
Command iogpucensus runs the Step 0 private/iogpu SPI census described in design/iogpu-spec.md.
For each public Metal object (MTLDevice, MTLBuffer, MTLTexture, MTLTensor, MTLResidencySet, MTLSharedEvent), it records:
- the concrete Objective-C class and full superclass chain, verifying whether the expected IOGPUMetal* class is present (preventing wrong-class false positives);
- selector presence across capability Groups A through G (plus a deliberately absent negative-control selector);
- read-only semantic probes with positive and negative controls:
- Group A: AneIOSurface() identity and live aliasing vs copy verification
- Group B: DoesAliasResource() with aliased views and independent buffers
- Group C: device memory accounting and IOGPUMemoryInfo class identity
- Group D: residency set refcount/generation and resource purgeability
- Group F: WaitUntilSignaledValueTimeoutMS() timeout and signaled controls
- Group G: tensor backing buffer/surface metadata
Process-wide mutating SPIs (makeAliasable, shutdown, prune, purge, setSegmentListShmemSize:, annotateResource:) are checked for selector presence only and are never invoked.