Skip to content

Commit 1f2e277

Browse files
committed
Docs
1 parent 5d29c1a commit 1f2e277

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

runtime/core/event_tracer.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ class EventTracer {
215215
* over into internal memory during this call.
216216
* @param[in] delegate_debug_index The id of the delegate event. If string
217217
* based names are used by this delegate to identify ops executed in the
218-
* backend then kUnsetDebugHandle should be passed in here.
218+
* backend then kUnsetDebugHandle should be passed in here.
219+
* @return Returns an instance of EventTracerEntry which should be passed back
220+
* into the end_profiling_dele gate() call.
221+
* - An error code if an error occurs during logging.
219222
*/
220223
virtual Result<EventTracerEntry> start_profiling_delegate(
221224
const char* name,
@@ -234,6 +237,9 @@ class EventTracer {
234237
* are transparent to the event tracer. It will just pipe along the data and
235238
* make it available for the user again in the post-processing stage.
236239
* @param[in] metadata_len Length of the metadata buffer.
240+
* @return A Result<bool> indicating the status of the logging operation.
241+
* - True if the event tracer delegate event was successfully logged.
242+
* - An error code if an error occurs during logging.
237243
*/
238244
virtual Result<bool> end_profiling_delegate(
239245
EventTracerEntry event_tracer_entry,
@@ -264,6 +270,9 @@ class EventTracer {
264270
* are transparent to the event tracer. It will just pipe along the data and
265271
* make it available for the user again in the post-processing stage.
266272
* @param[in] metadata_len Length of the metadata buffer.
273+
* @return A Result<bool> indicating the status of the logging operation.
274+
* - True if the event tracer delegate event was successfully logged.
275+
* - An error code if an error occurs during logging.
267276
*/
268277
virtual Result<bool> log_profiling_delegate(
269278
const char* name,

runtime/core/event_tracer_hooks_delegate.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ namespace runtime {
4646
* @param[in] delegate_debug_id The id of the delegate event. If string
4747
* based names are used by this delegate to identify ops executed in the
4848
* backend then kUnsetDebugHandle should be passed in here.
49-
49+
* @return Returns an instance of EventTracerEntry which should be passed back
50+
* into the end_profiling_delegate() call.
51+
* - An error code if an error occurs during logging.
5052
*/
5153
inline Result<EventTracerEntry> event_tracer_start_profiling_delegate(
5254
EventTracer* event_tracer,

0 commit comments

Comments
 (0)