Skip to content

Add event_tracer to MIL for Backend Init Context #11105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion runtime/backend/backend_init_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ class BackendInitContext final {
const char* method_name = nullptr,
const NamedDataMap* named_data_map = nullptr)
: runtime_allocator_(runtime_allocator),
#ifdef ET_EVENT_TRACER_ENABLED
event_tracer_(event_tracer),
#else
event_tracer_(nullptr),
#endif
method_name_(method_name),
named_data_map_(named_data_map) {}
named_data_map_(named_data_map) {
}

/** Get the runtime allocator passed from Method. It's the same runtime
* executor used by the standard executor runtime and the life span is the
Expand Down
Loading