Function TRTSERVER_TraceModelName

Function Documentation

TRTSERVER_Error *TRTSERVER_TraceModelName(TRTSERVER_Trace *trace, const char **model_name)

Get the name of the model being traced.

The caller does not own the returned string and must not modify or delete it. The lifetime of the returned string extends only as long as ‘trace’ and must not be accessed once ‘trace’ is deleted. This method is only guaranteed to correctly return the ‘model_name’ in the invocation of TRTSERVER_TraceManagerReleaseTraceFn_t


a TRTSERVER_Error indicating success or failure.

  • trace: The trace object.

  • model_name: Returns the name of the model being traced.