wasmerio / wasmer

🚀 The leading Wasm Runtime supporting WASIX and WASI
https://wasmer.io
MIT License
18.97k stars 812 forks source link

Expose the size of an Artifact #5084

Closed syrusakbary closed 1 month ago

syrusakbary commented 2 months ago

We need to analyze the size that an Artifact will take in Memory. We could consider using loupe again.

Here's the PR removing loupe as it may be useful for this task:

Remove loupe dep for wasmer 3.0 by epilys · Pull Request #2868 · wasmerio/wasmer

We'll need to return how much memory the AllocatedArtifact + CompileModuleInfo take