Add support for XPU performance counter
This PR introduces performance counters for the XPU device. It uses the Level Zero metric API to track device metrics on a time-based schedule: data is gathered internally and processed (summed) when a getPerfCounter()
request is made. The following settings allow you to configure collection intervals and timeouts:
-
COLLECTOR_NOTIFY_INTERVAL
: The number of collected reports after which a notification event is triggered. -
COLLECTOR_SAMPLING_PERIOD_NS
: The sampling period (in nanoseconds) for the metrics streamer. -
COLLECTOR_DELAY_NS
: The synchronization timeout (in nanoseconds).
Edited by damian-szw