Skip to content

Commit f602f94

Browse files
committed
Updates
1 parent 235427c commit f602f94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ To see AOT method names in the developer tools console, install [DWARF chrome ex
7373

7474
## Set the sample interval
7575

76-
Configure the sample interval in the app's project file. In the following example, the `sampleIntervalMs` option is set to 10 seconds, which is the default setting if `sampleIntervalMs` isn't specified:
76+
Configure the sample interval in the app's project file. In the following example, the `{INTERVAL}` placeholder represents the time in milliseconds. The default setting if `sampleIntervalMs` isn't specified is 10 ms.
7777

7878
```xml
7979
<PropertyGroup>
80-
<WasmProfilers>browser:sampleIntervalMs=10;</WasmProfilers>
80+
<WasmProfilers>browser:sampleIntervalMs={INTERVAL};</WasmProfilers>
8181
</PropertyGroup>
8282
```
8383

84-
Alternatively, add the following Blazor start configuration in `wwwroot/index.html` and add `autostart="false"` to the Blazor `<script>` tag:
84+
Alternatively, add the following Blazor start configuration in `wwwroot/index.html` and add `autostart="false"` to the Blazor `<script>` tag. The `{INTERVAL}` placeholder represents the time in milliseconds:
8585

8686
```html
8787
<script src="_framework/blazor.webassembly#[.{fingerprint}].js"
@@ -91,7 +91,7 @@ Alternatively, add the following Blazor start configuration in `wwwroot/index.ht
9191
configureRuntime: function (builder) {
9292
builder.withConfig({
9393
browserProfilerOptions: {
94-
sampleIntervalMs: 10,
94+
sampleIntervalMs: {INTERVAL},
9595
}
9696
});
9797
}

0 commit comments

Comments
 (0)