-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
base: main
Are you sure you want to change the base?
Conversation
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
There was a problem hiding this 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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it do any harm to wasi? https://github.com/dotnet/runtime/blob/main/src/mono/sample/wasm/Directory.Build.props#L39
output: [ | ||
{ | ||
format: "es", | ||
file: nativeBinDir + "/dotnet.diag.js", |
There was a problem hiding this comment.
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}"); |
There was a problem hiding this comment.
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 ..
There was a problem hiding this comment.
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>
dotnet.diag.js
whenFeaturePerfTracing
dotnet.diag.js.map
whenFeaturePerfTracing
and not publishContributes to #76316