@@ -363,6 +363,7 @@ void InferenceSession::ConstructorCommon(const SessionOptions& session_options,
363
363
active_sessions_[global_session_id_++] = this ;
364
364
365
365
#ifdef _WIN32
366
+ // Register callback for ETW capture state (rundown)
366
367
WindowsTelemetry::RegisterInternalCallback (
367
368
[this ](
368
369
LPCGUID SourceId,
@@ -506,8 +507,8 @@ void InferenceSession::ConstructorCommon(const SessionOptions& session_options,
506
507
telemetry_ = {};
507
508
}
508
509
509
- void InferenceSession::TraceSessionOptions (const SessionOptions& session_options, bool rundown ) {
510
- (void )rundown ; // Otherwise Linux build error
510
+ void InferenceSession::TraceSessionOptions (const SessionOptions& session_options, bool captureState ) {
511
+ (void )captureState ; // Otherwise Linux build error
511
512
512
513
LOGS (*session_logger_, INFO) << session_options;
513
514
@@ -532,7 +533,7 @@ void InferenceSession::TraceSessionOptions(const SessionOptions& session_options
532
533
TraceLoggingBoolean (session_options.use_per_session_threads , " use_per_session_threads" ),
533
534
TraceLoggingBoolean (session_options.thread_pool_allow_spinning , " thread_pool_allow_spinning" ),
534
535
TraceLoggingBoolean (session_options.use_deterministic_compute , " use_deterministic_compute" ),
535
- TraceLoggingBoolean (rundown , " isRundown " ));
536
+ TraceLoggingBoolean (captureState , " isCaptureState " ));
536
537
537
538
TraceLoggingWrite (
538
539
telemetry_provider_handle,
@@ -546,7 +547,7 @@ void InferenceSession::TraceSessionOptions(const SessionOptions& session_options
546
547
TraceLoggingUInt32 (session_options.intra_op_param .stack_size , " stack_size" ),
547
548
TraceLoggingString (!session_options.intra_op_param .affinity_str .empty () ? session_options.intra_op_param .affinity_str .c_str () : " " , " affinity_str" ),
548
549
TraceLoggingBoolean (session_options.intra_op_param .set_denormal_as_zero , " set_denormal_as_zero" ),
549
- TraceLoggingBoolean (rundown , " isRundown " ));
550
+ TraceLoggingBoolean (captureState , " isCaptureState " ));
550
551
551
552
for (const auto & config_pair : session_options.config_options .configurations ) {
552
553
TraceLoggingWrite (
@@ -556,7 +557,7 @@ void InferenceSession::TraceSessionOptions(const SessionOptions& session_options
556
557
TraceLoggingLevel (WINEVENT_LEVEL_INFO),
557
558
TraceLoggingString (config_pair.first .c_str (), " Key" ),
558
559
TraceLoggingString (config_pair.second .c_str (), " Value" ),
559
- TraceLoggingBoolean (rundown , " isRundown " ));
560
+ TraceLoggingBoolean (captureState , " isCaptureState " ));
560
561
}
561
562
#endif
562
563
}
0 commit comments