Skip to content

Commit 17c049c

Browse files
committed
Updates
1 parent e03832e commit 17c049c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -169,33 +169,17 @@ Property | Default | Set value to… | Description
169169
`<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.
170170
`<WasmPerfTracing>` | `false` | `true` | Controls diagnostic server tracing.
171171
`<WasmPerfInstrumentation>` | `false` | `true` | Controls CPU sampling instrumentation for diagnostic server.
172-
`<MetricsSupport>` | `false` | `true` | Controls `System.Diagnostics.Metrics` support. For more information, see the [`System.Diagnostics.Metrics` namespace](/dotnet/api/system.diagnostics.metrics).
173-
`<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).
174172

175173
```xml
176174
<PropertyGroup>
177175
<WasmProfilers>browser</WasmProfilers>
178176
<WasmPerfTracing>true</WasmPerfTracing>
179177
<WasmPerfInstrumentation>true</WasmPerfInstrumentation>
180-
<MetricsSupport>true</MetricsSupport>
181-
<EventSourceSupport>true</EventSourceSupport>
182178
</PropertyGroup>
183179
```
184180

185181
The [`Timing-Allow-Origin` HTTP header](https://developer.mozilla.org/docs/Web/HTTP/Reference/Headers/Timing-Allow-Origin) allows for more precise time measurements.
186182

187-
Browser developer tools console calls in the following example that trigger profiling:
188-
189-
* `collectGcDump`: Collect a GC (Garbage Collector) dump.
190-
* `collectPerfCounters(durationSeconds)`: Collect general performance counters.
191-
* `collectCpuSamples(durationSeconds)`: Collect CPU performance counters.
192-
193-
```javascript
194-
globalThis.getDotnetRuntime(0).collectGcDump();
195-
globalThis.getDotnetRuntime(0).collectPerfCounters({durationSeconds: 60});
196-
globalThis.getDotnetRuntime(0).collectCpuSamples({durationSeconds: 60});
197-
```
198-
199183
## Additional resources
200184

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

0 commit comments

Comments
 (0)