test(mem-probe): confirm A0 drops production per-script RSS ~11x (18->~1.66 MiB)

Swap MemProbe's ProjectReference from Core.VirtualTags to
Core.Scripting.Abstractions so the heavy-mode globalsType
(ScriptGlobals<VirtualTagContext>) resolves from the post-A0
Roslyn-free assembly.

Measured results (2026-06-07, N=50, Release):
  heavy (post-A0): 2.40 / 2.53 MiB/script  (was ~18 MiB)
  lean:            1.64 / 1.65 MiB/script
  => heavy ≈ lean; both well under the 3 MiB gate. PASS.
This commit is contained in:
Joseph Doherty
2026-06-07 15:19:02 -04:00
parent 1827c51c42
commit 3834400f05
2 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -17,7 +17,10 @@
<ItemGroup>
<ProjectReference Include="..\LeanContext\LeanContext.csproj" />
<ProjectReference Include="..\..\..\src\Core\ZB.MOM.WW.OtOpcUa.Core.VirtualTags\ZB.MOM.WW.OtOpcUa.Core.VirtualTags.csproj" />
<!-- After A0: VirtualTagContext + ScriptGlobals live in Core.Scripting.Abstractions
(Roslyn-free). We reference that directly so typeof(VirtualTagContext).Assembly
resolves to the lean assembly — the key invariant the probe is verifying. -->
<ProjectReference Include="..\..\..\src\Core\ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions\ZB.MOM.WW.OtOpcUa.Core.Scripting.Abstractions.csproj" />
</ItemGroup>
</Project>