[−][src]Function nvml_binding::bindings::nvmlVgpuInstanceGetEncoderStats
pub unsafe extern "C" fn nvmlVgpuInstanceGetEncoderStats(
vgpuInstance: nvmlVgpuInstance_t,
sessionCount: *mut c_uint,
averageFps: *mut c_uint,
averageLatency: *mut c_uint
) -> nvmlReturn_t
Retrieves the current encoder statistics of a vGPU Instance
For Maxwell &tm; or newer fully supported devices.
@param vgpuInstance Identifier of the target vGPU instance @param sessionCount Reference to an unsigned int for count of active encoder sessions @param averageFps Reference to an unsigned int for trailing average FPS of all active sessions @param averageLatency Reference to an unsigned int for encode latency in microseconds
@return - \ref NVML_SUCCESS if \a sessionCount, \a averageFps and \a averageLatency is fetched - \ref NVML_ERROR_UNINITIALIZED if the library has not been successfully initialized - \ref NVML_ERROR_INVALID_ARGUMENT if \a sessionCount , or \a averageFps or \a averageLatency is NULL or \a vgpuInstance is 0. - \ref NVML_ERROR_NOT_FOUND if \a vgpuInstance does not match a valid active vGPU instance on the system - \ref NVML_ERROR_UNKNOWN on any unexpected error