resolveCounterRange(_:)
Resolves heap data on the CPU timeline.
Declaration
func resolveCounterRange(_ range: Range<Int>) throws -> Data?Parameters
- range:
The range in the heap to resolve.
Discussion
This method resolves heap data in the CPU timeline. Your app needs to ensure the GPU work has completed in order to retrieve the data correctly. You can alternatively resolve the heap data in the GPU timeline by calling MTL4CommandBuffer/resolveCounterHeap:withRange:intoBuffer:atOffset:waitFence:updateFence:.
Returns a newly allocated autoreleased NSData containing tightly packed resolved heap counter values.