Skip to content

Commit 5fc2d59

Browse files
committed
Updates
1 parent fc1421a commit 5fc2d59

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

aspnetcore/blazor/performance/profiling.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ Built-in performance counters are available to track:
3737
* [JIT (Just-In-Time) interpolation](https://developer.mozilla.org/docs/Glossary/Just_In_Time_Compilation)
3838
* Call specification (":::no-loc text="callspec":::", sequence and timing of function calls) and instrumentation
3939

40-
Enable integration with the browser's developer tools profiler using the `<WasmProfilers>` property in the app's project file (`.csproj`). Include the following additional properties:
40+
Enable integration with the browser's developer tools profiler using the `<WasmProfilers>` property in the app's project file (`.csproj`). Include the additional properties in the following table.
4141

42-
* `<WasmProfilers>`: The "`browser`" profiler enables integration with the profiler in the browser's developer tools.
43-
* `<RunAOTCompilation>`: Run AOT compilation. Default: `false`
44-
* `<RunAOTCompilationAfterBuild>`: Run AOT compilation after build. By default, it is run only for publish. Default: `false`
45-
* `<WasmNativeStrip>`: Set to `false` to prevent stripping the native executable. Default: `true`
46-
* `<WasmNativeDebugSymbols>`: Build with native debug symbols. Default: `true`
47-
* `<WasmBuildNative>`: Build the native executable. Default: `false`
42+
Property | Default | Set value to&hellip; | Description
43+
--- | :---: | :---: | ---
44+
`<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.
45+
`<RunAOTCompilation>`| `false` | `true` | Controls AOT compilation.
46+
`<RunAOTCompilationAfterBuild>` | `false` | `true` | Controls AOT compilation after build. By default, it's run only for publish.
47+
`<WasmNativeStrip>` | `true` | `false` | Controls stripping the native executable.
48+
`<WasmNativeDebugSymbols>` | `true` | `true` | Controls building with native debug symbols.
49+
`<WasmBuildNative>` | `false` | `true` | Controls building the native executable.
4850

4951
```xml
5052
<PropertyGroup>
@@ -109,7 +111,7 @@ Enable integration with the log profiler using the `<WasmProfilers>` and `<WasmB
109111

110112
```xml
111113
<PropertyGroup>
112-
<WasmProfilers>log;</WasmProfilers>
114+
<WasmProfilers>log</WasmProfilers>
113115
<WasmBuildNative>true</WasmBuildNative>
114116
</PropertyGroup>
115117
```
@@ -184,17 +186,19 @@ The following example:
184186
* Collects performance counters for 60 seconds.
185187
* Collects CPU counters for 60 seconds.
186188

187-
In the project file (`.csproj`), the following properties enable integration with the browser's profiler:
189+
In the project file (`.csproj`), the properties in the following table enable integration with the browser's profiler.
188190

189-
* `<WasmProfilers>`: The "`browser`" profiler enables integration with the profiler in the browser's developer tools.
190-
* `<WasmPerfTracing>`: Enables diagnostic server.
191-
* `<WasmPerfInstrumentation>`: Enables performance instrumentation for the sampling CPU profiler.
192-
* `<MetricsSupport>`: Enables metrics. For more information, see the [`System.Diagnostics.Metrics` namespace](/dotnet/api/system.diagnostics.metrics).
193-
* `<EventSourceSupport>`: Enables system events. For more information, see [Diagnostics and instrumentation: Observability and telemetry](/dotnet/core/deploying/native-aot/diagnostics#observability-and-telemetry).
191+
Property | Default | Set value to&hellip; | Description
192+
--- | :---: | :---: | ---
193+
`<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.
194+
`<WasmPerfTracing>` | `false` | `true` | Controls diagnostic server tracing.
195+
`<WasmPerfInstrumentation>` | `false` | `true` | Controls CPU sampling instrumentation for diagnostic server.
196+
`<MetricsSupport>` | `false` | `true` | Controls `System.Diagnostics.Metrics` support. For more information, see the [`System.Diagnostics.Metrics` namespace](/dotnet/api/system.diagnostics.metrics).
197+
`<EventSourceSupport>` | `false`| `true` | Controls `EventPipe` support. For more information, see [Diagnostics and instrumentation: Observability and telemetry](/dotnet/core/deploying/native-aot/diagnostics#observability-and-telemetry).
194198

195199
```xml
196200
<PropertyGroup>
197-
<WasmProfilers>browser;</WasmProfilers>
201+
<WasmProfilers>browser</WasmProfilers>
198202
<WasmPerfTracing>true</WasmPerfTracing>
199203
<WasmPerfInstrumentation>true</WasmPerfInstrumentation>
200204
<MetricsSupport>true</MetricsSupport>

0 commit comments

Comments
 (0)