Expand description
Metal GPU counter facilities for profiling.
Corresponds to Metal/MTLCounters.hpp.
The counter API allows you to sample GPU performance counters for profiling and performance analysis.
§Counter Result Types
Metal provides three types of counter results:
CounterResultTimestamp- GPU timestamp valuesCounterResultStageUtilization- Cycle counts per pipeline stageCounterResultStatistic- Invocation counts and statistics
Structs§
- Counter
- A single GPU performance counter.
- Counter
Result Stage Utilization - Stage utilization counter result.
- Counter
Result Statistic - Statistics counter result.
- Counter
Result Timestamp - Timestamp counter result.
- Counter
Sample Buffer - A buffer that stores GPU counter samples.
- Counter
Sample Buffer Descriptor - Descriptor for creating a counter sample buffer.
- Counter
Set - A set of related GPU performance counters.
Constants§
- COUNTER_
DONT_ SAMPLE - Value indicating that a counter should not be sampled.
- COUNTER_
ERROR_ VALUE - Error value returned when a counter sample fails.