You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Run the native SNI tracing example to connect to SQL Server.
111
+
109
112
3. Stop tracing using the following command line.
110
-
```
111
-
xperf -stop trace
112
-
```
113
+
114
+
```
115
+
xperf -stop trace
116
+
```
117
+
113
118
4. Use PerfView to open the myTrace.etl file specified in Step 1. The SNI tracing log can be found with `Microsoft.Data.SqlClient.EventSource/SNIScope` and `Microsoft.Data.SqlClient.EventSource/SNITrace` event names.
114
-

115
119
116
-
### Using PerfView to collect trace log
120
+

121
+
122
+
123
+
### Use PerfView to collect trace log
117
124
118
125
1. Start PerfView and run `Collect > Collect` from menu bar.
126
+
119
127
2. Configure trace file name, output path, and provider name.
120
-

128
+
129
+

130
+
121
131
3. Start collection.
132
+
122
133
4. Run the native SNI tracing example to connect to SQL Server.
134
+
123
135
5. Stop collection from PerfView. It will take a while to generate PerfViewData.etl file according to configuration in Step 2.
136
+
124
137
6. Open the etl file in PerfView. The SNI tracing log can be found with `Microsoft.Data.SqlClient.EventSource/SNIScope` and `Microsoft.Data.SqlClient.EventSource/SNITrace` event names.
125
138
126
139
@@ -130,4 +143,4 @@ For more information, see the following resources.
130
143
|Resource|Description|
131
144
|--------------|-----------------|
132
145
|[EventSource Class](/dotnet/api/system.diagnostics.tracing.eventsource)|Provides the ability to create ETW events.|
133
-
|[EventListener Class](/dotnet/api/system.diagnostics.tracing.eventlistener)|Provides methods for enabling and disabling events from event sources.|
146
+
|[EventListener Class](/dotnet/api/system.diagnostics.tracing.eventlistener)|Provides methods for enabling and disabling events from event sources.|
0 commit comments