Skip to content

Commit 030fd3b

Browse files
authored
[wasm][bench] Fix Blazor First UI measurement (#98308)
This was missing from the patch because of blazor template file rename
1 parent b73e793 commit 030fd3b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/mono/sample/wasm/blazor-frame/blazor-frame.diff

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
diff -ruw blazor/Pages/Home.razor blazor/Pages/Home.razor
2+
--- a/blazor/Pages/Home.razor 2024-01-23 14:30:05
3+
+++ b/blazor/Pages/Home.razor 2024-02-12 17:59:24
4+
@@ -1,7 +1,15 @@
5+
@page "/"
6+
+@inject IJSRuntime JSRuntime
7+
8+
<PageTitle>Home</PageTitle>
9+
10+
<h1>Hello, world!</h1>
11+
12+
Welcome to your new app.
13+
+
14+
+@code {
15+
+ protected override void OnAfterRender(bool firstRender)
16+
+ {
17+
+ BenchmarkEvent.Send(JSRuntime, "Rendered Index.razor");
18+
+ }
19+
+}
120
diff -urw blazor/Program.cs blazor/Program.cs
221
--- a/blazor/Program.cs 2024-01-22 16:01:30
322
+++ b/blazor/Program.cs 2023-09-28 13:12:14

0 commit comments

Comments
 (0)