@@ -91,7 +91,7 @@ struct TRITONSERVER_MetricFamily;
9191/// }
9292///
9393#define TRITONSERVER_API_VERSION_MAJOR 1
94- #define TRITONSERVER_API_VERSION_MINOR 32
94+ #define TRITONSERVER_API_VERSION_MINOR 33
9595
9696/// Get the TRITONBACKEND API version supported by the Triton shared
9797/// library. This value can be compared against the
@@ -732,7 +732,8 @@ typedef enum tritonserver_traceactivity_enum {
732732 TRITONSERVER_TRACE_REQUEST_END = 6 ,
733733 TRITONSERVER_TRACE_TENSOR_QUEUE_INPUT = 7 ,
734734 TRITONSERVER_TRACE_TENSOR_BACKEND_INPUT = 8 ,
735- TRITONSERVER_TRACE_TENSOR_BACKEND_OUTPUT = 9
735+ TRITONSERVER_TRACE_TENSOR_BACKEND_OUTPUT = 9 ,
736+ TRITONSERVER_TRACE_CUSTOM_ACTIVITY = 10
736737} TRITONSERVER_InferenceTraceActivity ;
737738
738739/// Get the string representation of a trace activity. The returned
@@ -838,6 +839,18 @@ TRITONSERVER_InferenceTraceTensorNew(
838839 TRITONSERVER_InferenceTraceTensorActivityFn_t tensor_activity_fn ,
839840 TRITONSERVER_InferenceTraceReleaseFn_t release_fn , void * trace_userp );
840841
842+ /// Report a trace activity. All the traces reported using this API will be
843+ /// using TRITONSERVER_TRACE_CUSTOM_ACTIVITY type.
844+ ///
845+ /// \param trace The trace object.
846+ /// \param timestamp The timestamp associated with the trace activity.
847+ /// \param name The trace activity name.
848+ /// \return a TRITONSERVER_Error indicating success or failure.
849+ TRITONSERVER_DECLSPEC TRITONSERVER_Error *
850+ TRITONSERVER_InferenceTraceReportActivity (
851+ TRITONSERVER_InferenceTrace * trace , uint64_t timestamp ,
852+ const char * activity_name );
853+
841854/// Delete a trace object.
842855///
843856/// \param trace The trace object.
@@ -921,7 +934,6 @@ TRITONSERVER_DECLSPEC struct TRITONSERVER_Error*
921934TRITONSERVER_InferenceTraceSetContext (
922935 struct TRITONSERVER_InferenceTrace * trace , const char * trace_context );
923936
924-
925937/// Get TRITONSERVER_InferenceTrace context.
926938///
927939/// \param trace The trace.
0 commit comments