docs-6.2.4/source/lib/omnitrace-user/omnitrace/user.h Source File#
user.h
Go to the documentation of this file.
A struct containing annotation data to be included in the perfetto trace.
Definition: categories.h:178
enum OMNITRACE_USER_CONFIGURE_MODE omnitrace_user_configure_mode_t
int omnitrace_user_annotated_progress(const char *, omnitrace_annotation_t *, unsigned long)
mark causal progress with annotations
int omnitrace_user_push_annotated_region(const char *, omnitrace_annotation_t *, unsigned long)
int omnitrace_user_configure(omnitrace_user_configure_mode_t mode, omnitrace_user_callbacks_t inp, omnitrace_user_callbacks_t *out)
Configure the function pointers invoked by the omnitrace user API. The initial callbacks are set via ...
int omnitrace_user_start_thread_trace(void)
Enable tracing on this specific thread. Does not apply to subsequently created threads.
int omnitrace_user_stop_trace(void)
Disable tracing on this thread and all subsequently created threads.
int omnitrace_user_pop_annotated_region(const char *, omnitrace_annotation_t *, unsigned long)
int omnitrace_user_start_trace(void)
Enable tracing on this thread and all subsequently created threads.
int omnitrace_user_stop_thread_trace(void)
Disable tracing on this specific thread. Does not apply to subsequently created threads.
const char * omnitrace_user_error_string(int)
Return a descriptor for the provided error code.
int omnitrace_user_pop_region(const char *)
End a user defined region. In general, user regions should be popped in the inverse order that they w...
int omnitrace_user_get_callbacks(omnitrace_user_callbacks_t *)