Skip to content

Commit ab4aecb

Browse files
Chris Thompsonfacebook-github-bot
authored andcommitted
Add event_tracer to MIL for Backend Init Context (#11105)
Summary: Pull Request resolved: #11105 Allow for intended usage of event tracer in BackendInitContext. Reviewed By: cccclai Differential Revision: D75308778
1 parent 2e9c71c commit ab4aecb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

runtime/backend/backend_init_context.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@ class BackendInitContext final {
2525
const char* method_name = nullptr,
2626
const NamedDataMap* named_data_map = nullptr)
2727
: runtime_allocator_(runtime_allocator),
28+
#ifdef ET_EVENT_TRACER_ENABLED
29+
event_tracer_(event_tracer),
30+
#else
31+
event_tracer_(nullptr),
32+
#endif
2833
method_name_(method_name),
29-
named_data_map_(named_data_map) {}
34+
named_data_map_(named_data_map) {
35+
}
3036

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

0 commit comments

Comments
 (0)