Skip to content

Commit ecd9eb1

Browse files
Chris Thompsonfacebook-github-bot
Chris Thompson
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 f2f473b commit ecd9eb1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtime/backend/backend_init_context.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ 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),
2934
named_data_map_(named_data_map) {}
3035

0 commit comments

Comments
 (0)