Function TRTSERVER_TraceNew¶
Defined in File trtserver.h
Function Documentation¶
-
TRTSERVER_Error *
TRTSERVER_TraceNew
(TRTSERVER_Trace **trace, TRTSERVER_Trace_Level level, TRTSERVER_TraceActivityFn_t activity_fn, void *activity_userp)¶ Create a new trace object.
The caller takes ownership of the TRTSERVER_Trace object and must call TRTSERVER_TraceDelete to release the object.
- Return
a TRTSERVER_Error indicating success or failure.
- Parameters
trace
: Returns the new trace object.level
: The tracing level.activity_fn
: The callback function where activity for the trace is reported.activity_userp
: User-provided pointer that is delivered to the activity function.