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
# ASP.NET Core Blazor WebAssembly browser developer tools diagnostics
@@ -40,8 +40,10 @@ The MSBuild properties in the following table enable profiler integration.
40
40
Property | Default | Set value to… | Description
41
41
--- | :---: | :---: | ---
42
42
`<WasmProfilers>` | No value | `browser` | Mono profilers to use. Potential values are "`browser`" and "`log`". To use both, separate the values with a semicolon. The `browser` profiler enables integration with the browser's developer tools profiler.
`<WasmNativeDebugSymbols>` | `true` | `true` | Enables building with native debug symbols.
45
+
46
+
Setting the [`Timing-Allow-Origin` HTTP header](https://developer.mozilla.org/docs/Web/HTTP/Reference/Headers/Timing-Allow-Origin) allows for more precise time measurements.
45
47
46
48
Enabling profilers has negative size and performance impact, so don't publish an app for production with profilers enabled. In the following example, a condition is set on a property group section that only enables profiling when the app is built with `/p:BlazorSampleProfilingEnabled=true` (.NET CLI) or `<BlazorSampleProfilingEnabled>true</BlazorSampleProfilingEnabled>` in a Visual Studio publish profile, where "`BlazorSampleProfilingEnabled`" is a custom symbol name that you choose and doesn't conflict with other symbol names.
47
49
@@ -61,9 +63,9 @@ Alternatively, enable features when the app is built with the .NET CLI. The foll
Setting WebAssembly profilers with `<WasmProfilers>browser;</WasmProfilers>` doesn't require AOT.
66
+
Setting WebAssembly profilers with `<WasmProfilers>` doesn't require [ahead-of-time (AOT) compilation](xref:blazor/tooling/webassembly).
65
67
66
-
The browser developer tools profiler can be used with AOT (`<RunAOTCompilation>`/`<RunAOTCompilationAfterBuild>` set to `true`) and without WebAssembly profilers (`<WasmProfilers>browser;</WasmProfilers>` removed from the preceding property group).
68
+
The browser developer tools profiler can be used with AOT (`<RunAOTCompilation>`/`<RunAOTCompilationAfterBuild>` set to `true`) and without WebAssembly profilers (`<WasmProfilers>` removed).
67
69
68
70
To see AOT method names in the developer tools console, install [DWARF chrome extension](https://chromewebstore.google.com/detail/cc++-devtools-support-dwa/pdcpmagijalfljmkmjngeonclgbbannb).
69
71
@@ -92,7 +94,6 @@ Permissiable `{FILTER}` placeholder values are shown in the following table.
92
94
Filter | Description
93
95
--- | ---
94
96
`all` | All assemblies
95
-
`none` | No assemblies
96
97
`program` | Entry point assembly
97
98
`{ASSEMBLY}` | Specifies an assembly (`{ASSEMBLY}`)
98
99
`M:Type:{METHOD}` | Specifies a method (`{METHOD}`)
@@ -107,18 +108,6 @@ In the following example, profiled methods are filtered to the app's namespace,
In the project file (`.csproj`), use the `<WasmProfilers>` property set to `browser` to enable integration with the Mono profiler. Currently, only "`browser`" is supported. The `browser` profiler enables integration with the browser's developer tools profiler.
113
-
114
-
```xml
115
-
<PropertyGroup>
116
-
<WasmProfilers>browser</WasmProfilers>
117
-
</PropertyGroup>
118
-
```
119
-
120
-
The [`Timing-Allow-Origin` HTTP header](https://developer.mozilla.org/docs/Web/HTTP/Reference/Headers/Timing-Allow-Origin) allows for more precise time measurements.
121
-
122
111
## Additional resources
123
112
124
113
*[What diagnostic tools are available in .NET Core?](/dotnet/core/diagnostics/)
0 commit comments