Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[browser] add and load empty ES6 module dotnet.diag.js when FeaturePerfTracing #112787

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Feb 21, 2025

  • add and load empty ES6 module dotnet.diag.js when FeaturePerfTracing
  • add dotnet.diag.js.map when FeaturePerfTracing and not publish
  • fix W.B.T.

Contributes to #76316

@pavelsavara
Copy link
Member Author

enable FeaturePerfTracing when Debug & workload/native

We would not do that because that would trigger re-link in dev inner loop for everyone, making it slower.

# Conflicts:
#	src/mono/browser/runtime/exports-binding.ts
@pavelsavara pavelsavara marked this pull request as ready for review February 25, 2025 15:13
@Copilot Copilot bot review requested due to automatic review settings February 25, 2025 15:13
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 38 out of 38 changed files in this pull request and generated 1 comment.

@@ -3,7 +3,8 @@
<!-- Post Wasm MVP features -->
<WasmEnableExceptionHandling Condition="'$(WasmEnableExceptionHandling)' == ''">true</WasmEnableExceptionHandling>
<WasmEnableSIMD Condition="'$(WasmEnableSIMD)' == ''">$(WasmEnableExceptionHandling)</WasmEnableSIMD>
<FeaturePerfTracing Condition="'$(FeaturePerfTracing)' == '' and '$(Configuration)' == 'Debug'">true</FeaturePerfTracing>
<!-- we are not triggering FeaturePerfTracing in Debug automatically, because it would trigger re-link, making dev-loop slow -->
<FeaturePerfTracing Condition="'$(WasmProfilers)' != ''">true</FeaturePerfTracing>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is situation when user sets FeaturePerfTracing=false and WasmProfilers=... valid? Is the override of FeaturePerfTracing intentional in that case?

@@ -15,6 +15,7 @@
<RunAOTCompilation Condition="'$(RunAOTCompilation)' == ''">false</RunAOTCompilation>
<PublishTrimmed>true</PublishTrimmed>
<RunAnalyzers>false</RunAnalyzers>
<FeaturePerfTracing>true</FeaturePerfTracing>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

output: [
{
format: "es",
file: nativeBinDir + "/dotnet.diag.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Do we want to go with shortcut diag instead of full diagnostics? With HG we also used globalization instead of eg glob

@@ -127,17 +134,26 @@ public IReadOnlyDictionary<string, DotNetFileName> FindAndAssertDotnetFiles(
string pattern = $"^{prefix}{s_dotnetVersionHashRegex}{extension}$";
var match = Regex.Match(actualFilename, pattern);
if (!match.Success)
{
msg.AppendLine($" FP no match expectedFilename:{expectedFilename} actualFile:{actualFile}");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's just me, but I'm having problems to understand what are the messages telling me.

  • FP no match ..
  • FP actual ..
  • No FP no match ..
  • No FP actual ..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I forgot to revert those.

Co-authored-by: Marek Fišera <mara@neptuo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm WebAssembly architecture area-Diagnostics-mono os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants