Documentation
¶
Overview ¶
Command iogpucensus reports the Objective-C class identity of the objects the public Metal API vends.
design/iogpu-spec.md proposes using private/iogpu — the IOGPUMetal* classes behind Metal — as a measurement instrument. Every workstream in that spec assumes a public MTLDevice, MTLBuffer, or MTLTexture can be treated as its corresponding IOGPUMetal* class. That assumption is load-bearing and unverified: a census that reports selectors responding on the wrong object certifies nothing.
This command answers the public-object class-identity half of the census and performs a read-only selector-presence census. It does not invoke private selectors, so it remains useful before private/iogpu compiles. It prints the full superclass chain of each object the public API returns and says whether the IOGPUMetal* class the spec expects appears anywhere in it.
A "no" here invalidates the corresponding workstream before anyone builds on it, which is the point of running it early.