Skip to content

Commit

Permalink
[wasm] Disable MetricsSupport feature by default (dotnet#92696)
Browse files Browse the repository at this point in the history
This should improve the startup perf and size.
  • Loading branch information
radekdoulik authored Oct 2, 2023
1 parent 0c81f49 commit a590cb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mono/wasm/build/WasmApp.LocalBuild.targets
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding>
<HttpActivityPropagationSupport>false</HttpActivityPropagationSupport>
<DebuggerSupport>false</DebuggerSupport>
<MetricsSupport>false</MetricsSupport>
</PropertyGroup>

<!-- Use local runtime pack -->
Expand Down
4 changes: 4 additions & 0 deletions src/mono/wasm/build/WasmApp.targets
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
<SupportedPlatform Condition="'$(IsBrowserWasmProject)' == 'true'" Include="browser" />
</ItemGroup>

<PropertyGroup Label="Feature switches default values">
<MetricsSupport Condition="'$(MetricsSupport)' == ''">false</MetricsSupport>
</PropertyGroup>

<PropertyGroup Label="Identify app bundle directory to run from">
<!-- Allow running from custom WasmAppDir -->
<_AppBundleDirForRunCommand Condition="'$(WasmAppDir)' != ''">$(WasmAppDir)</_AppBundleDirForRunCommand>
Expand Down

0 comments on commit a590cb4

Please sign in to comment.