Skip to content

Commit 404d510

Browse files
authored
Remove section and apply further updates (#35451)
1 parent cc3f8fa commit 404d510

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

aspnetcore/blazor/performance/webassembly-browser-developer-tools-diagnostics.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about browser developer tools diagnostics in ASP.NET Core Bla
55
monikerRange: '>= aspnetcore-10.0'
66
ms.author: riande
77
ms.custom: mvc
8-
ms.date: 05/02/2025
8+
ms.date: 05/13/2025
99
uid: blazor/performance/webassembly-browser-developer-tools
1010
---
1111
# ASP.NET Core Blazor WebAssembly browser developer tools diagnostics
@@ -40,8 +40,10 @@ The MSBuild properties in the following table enable profiler integration.
4040
Property | Default | Set value to… | Description
4141
--- | :---: | :---: | ---
4242
`<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.
43-
`<WasmNativeStrip>` | `true` | `false` | Controls stripping the native executable.
44-
`<WasmNativeDebugSymbols>` | `true` | `true` | Controls building with native debug symbols.
43+
`<WasmNativeStrip>` | `true` | `false` | Enables stripping the native executable.
44+
`<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.
4547

4648
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.
4749

@@ -61,9 +63,9 @@ Alternatively, enable features when the app is built with the .NET CLI. The foll
6163
/p:WasmProfilers=browser /p:WasmNativeStrip=false /p:WasmNativeDebugSymbols=true
6264
```
6365

64-
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).
6567

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).
6769

6870
To see AOT method names in the developer tools console, install [DWARF chrome extension](https://chromewebstore.google.com/detail/cc++-devtools-support-dwa/pdcpmagijalfljmkmjngeonclgbbannb).
6971

@@ -92,7 +94,6 @@ Permissiable `{FILTER}` placeholder values are shown in the following table.
9294
Filter | Description
9395
--- | ---
9496
`all` | All assemblies
95-
`none` | No assemblies
9697
`program` | Entry point assembly
9798
`{ASSEMBLY}` | Specifies an assembly (`{ASSEMBLY}`)
9899
`M:Type:{METHOD}` | Specifies a method (`{METHOD}`)
@@ -107,18 +108,6 @@ In the following example, profiled methods are filtered to the app's namespace,
107108
<WasmProfilers>browser:callspec=N:{APP NAMESPACE};</WasmProfilers>
108109
```
109110

110-
## .NET Core Diagnostics Client Library example
111-
112-
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-
122111
## Additional resources
123112

124113
* [What diagnostic tools are available in .NET Core?](/dotnet/core/diagnostics/)

0 commit comments

Comments
 (0)