Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e8c094d
Hacking..
maraf Oct 31, 2022
50439ab
Copy memory after views are created.
maraf Nov 8, 2022
9fbac0d
Import and export memory.
maraf Nov 9, 2022
b119017
JSImport and JSExport.
maraf Nov 9, 2022
bfe721e
Fix args.
maraf Nov 9, 2022
53f44f3
Change memory extension so dotnet serve can brotli compress it.
maraf Nov 9, 2022
31317b9
Drop spare assets.
maraf Nov 9, 2022
7720592
WIP
maraf Nov 14, 2022
17ea006
WIP
maraf Nov 15, 2022
7318f0a
Split, nodejs.
maraf Nov 15, 2022
8b70764
Renames. Initial heap size.
maraf Nov 16, 2022
4034401
Take the snapshot before user cctors.
maraf Nov 24, 2022
2e97e55
Automate taking memory snapshot.
maraf Nov 24, 2022
4f26a01
Use correct AppBundle path.
maraf Nov 24, 2022
5f1e453
Use memory snapshots in uni tests.
maraf Nov 24, 2022
594cb9d
Clean up.
maraf Nov 25, 2022
c8742ff
Dummy fetch polyfill for V8.
maraf Nov 25, 2022
ab88572
Use node from emsdk.
maraf Nov 29, 2022
1a63251
Cleanup sample.
maraf Nov 29, 2022
bb43b98
Support for built-in memory.
maraf Nov 29, 2022
2a4d710
Disable advanced sample on CI.
maraf Nov 29, 2022
f6db54e
Use INITIAL_MEMORY in wasm.proj
maraf Nov 30, 2022
752517e
Use wa-edit to medge snapshot into dotnet.wasm
maraf Nov 30, 2022
d3fe16f
Update wa-edit path for CI.
maraf Nov 30, 2022
b17bfaa
One more round on how to use dotnet tool
maraf Dec 1, 2022
bfdd2fb
Rewrite wa-edit as temporal msbuild task.
maraf Dec 5, 2022
0d39804
ICU+timezones
maraf Dec 7, 2022
f2508f9
More debug message for creating snapshot.
maraf Dec 7, 2022
ac5a7e4
Fix need for ICU
maraf Dec 7, 2022
eb12295
Initial heap ~64MB and print snapshot size
maraf Dec 7, 2022
15949d0
Update browser-bench.
maraf Dec 8, 2022
fc087c8
Optional path to node.
maraf Dec 15, 2022
088a346
Zero out unmanaged memory.
maraf Jan 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update wa-edit path for CI.
  • Loading branch information
maraf committed Jan 9, 2023
commit d3fe16f923f2c4abd52e741e64b9ff6b117b8e57
4 changes: 3 additions & 1 deletion src/mono/wasm/build/WasmApp.Native.targets
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@
<PropertyGroup>
<WasmMemorySnapshotCaptureGenerator>wasm-memory-snapshot-capture.js</WasmMemorySnapshotCaptureGenerator>
<WasmMemorySnapshotFileName>memory.dat</WasmMemorySnapshotFileName>
<WasmEditToolPath Condition="'$(ContinuousIntegrationBuild)' != 'true'">wa-edit</WasmEditToolPath>
<WasmEditToolPath Condition="'$(ContinuousIntegrationBuild)' == 'true'">~/.dotnet/tools/wa-edit</WasmEditToolPath>
</PropertyGroup>
<ItemGroup>
<WasmMemorySnapshotCaptureLine Include="const dotnet = (await import('./dotnet.js')).dotnet%3B" />
Expand All @@ -675,7 +677,7 @@
<Exec Command="dotnet tool update -g wa-edit" IgnoreExitCode="true" />
<WriteLinesToFile File="$(WasmAppDir)$(WasmMemorySnapshotCaptureGenerator)" Lines="@(WasmMemorySnapshotCaptureLine)" Overwrite="true" Encoding="UTF-8" />
<Exec WorkingDirectory="$(WasmAppDir)" Command="$(EmscriptenNodeExecutable) $(WasmMemorySnapshotCaptureGenerator)" />
<Exec WorkingDirectory="$(WasmAppDir)" Command="wa-edit -v ./dotnet.wasm ./dotnet2.wasm -o 0 -d ./$(WasmMemorySnapshotFileName) -a" />
<Exec WorkingDirectory="$(WasmAppDir)" Command="$(WasmEditToolPath) -v ./dotnet.wasm ./dotnet2.wasm -o 0 -d ./$(WasmMemorySnapshotFileName) -a" />
<Delete Files="$(WasmAppDir)$(WasmMemorySnapshotCaptureGenerator);$(WasmAppDir)dotnet.wasm;$(WasmAppDir)$(WasmMemorySnapshotFileName)" />
<Move SourceFiles="$(WasmAppDir)dotnet2.wasm" DestinationFiles="$(WasmAppDir)dotnet.wasm" />
<Message Text="Memory snapshot merged into the dotnet.wasm" Importance="High" />
Expand Down