Skip to content

Commit 235427c

Browse files
committed
Updates
1 parent 0fa510a commit 235427c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

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

7474
## Set the sample interval
7575

76-
To set the sample interval, add the following Blazor start configuration in `wwwroot/index.html` and add `autostart="false"` to the Blazor `<script>` tag. 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 `sampleIntervalMs` option is set to 10 seconds, which is the default setting if `sampleIntervalMs` isn't specified:
77+
78+
```xml
79+
<PropertyGroup>
80+
<WasmProfilers>browser:sampleIntervalMs=10;</WasmProfilers>
81+
</PropertyGroup>
82+
```
83+
84+
Alternatively, add the following Blazor start configuration in `wwwroot/index.html` and add `autostart="false"` to the Blazor `<script>` tag:
7785

7886
```html
7987
<script src="_framework/blazor.webassembly#[.{fingerprint}].js"

0 commit comments

Comments
 (0)