Function TRTSERVER_ServerOptionsSetGpuMetrics

Function Documentation

TRTSERVER_Error *TRTSERVER_ServerOptionsSetGpuMetrics(TRTSERVER_ServerOptions *options, bool gpu_metrics)

Enable or disable GPU metrics collection in a server options.

GPU metrics are collected if both this option and TRTSERVER_ServerOptionsSetMetrics are true.


a TRTSERVER_Error indicating success or failure.

  • options: The server options object.

  • gpu_metrics: True to enable GPU metrics, false to disable.