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
Call the preceding API from either a browser devoloper tools console or JavaScript code of the app.
87
+
Call the preceding API from either a browser developer tools console or JavaScript code of the app.
90
88
91
89
Start using the app to run problematic code.
92
90
93
-
After the predefined period, the browser downloads a `.nettrace` file into a local folder. To view the `.nettrace` file, use Visual Studio or PrefView.
91
+
After the predefined period, the browser downloads a `.nettrace` file into a local folder, usually the `Downloads` folder on Windows. To view the `.nettrace` file, use Visual Studio or PrefView.
94
92
95
93
For more information, see [Use EventPipe to trace your .NET application](/dotnet/core/diagnostics/eventpipe#use-eventpipe-to-trace-your-net-application).
96
94
@@ -101,7 +99,6 @@ The [`Timing-Allow-Origin` HTTP header](https://developer.mozilla.org/docs/Web/H
101
99
In the app's project file (`.csproj`), add following properties for the duration of the investigation:
102
100
103
101
```xml
104
-
<!-- do not enable diagnostics in production, as it has a negative performance impact -->
105
102
<PropertyGroup>
106
103
<EnableDiagnostics>true</EnableDiagnostics>
107
104
<MetricsSupport>true</MetricsSupport>
@@ -122,9 +119,9 @@ Start colllecting metrics for 60 seconds by calling the `collectMetrics` JavaScr
Call the preceding API from either a browser devoloper tools console or JavaScript code of the app.
122
+
Call the preceding API from either a browser developer tools console or JavaScript code of the app.
126
123
127
-
After the predefined period, the browser downloads a `.nettrace` file into a local folder. To view the `.nettrace` file, use Visual Studio or PrefView.
124
+
After the predefined period, the browser downloads a `.nettrace` file into a local folder, usually the `Downloads` folder on Windows. To view the `.nettrace` file, use Visual Studio or PrefView.
128
125
129
126
For more information, see [Use EventPipe to trace your .NET application](/dotnet/core/diagnostics/eventpipe#use-eventpipe-to-trace-your-net-application).
130
127
@@ -152,7 +149,8 @@ The following table describes permissable `<WasmPerformanceInstrumentation>` val
152
149
153
150
Your code should yield to main browser loop often to allow the trace to be collected. When executing long running loops, the internal diagnostic buffers could overflow.
154
151
155
-
**Enabling profilers and diagnostic tools has negative size and performance impacts, so don't publish an app for production with profilers enabled.**
152
+
> [!CAUTION]
153
+
> Enabling profilers and diagnostic tools has negative size and performance impacts, so don't publish an app for production with profilers enabled.
0 commit comments