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

Add support for getting snapshot size #7

Open
tschneidereit opened this issue Mar 5, 2021 · 1 comment
Open

Add support for getting snapshot size #7

tschneidereit opened this issue Mar 5, 2021 · 1 comment

Comments

@tschneidereit
Copy link
Member

It'd be great if we could easily make the resulting snapshot's size available. For the CLI tool, perhaps just logging it to stdout, but in the embedding API having an accessor for it would be great.

And I guess there are at least two different sizes to be had here: the size added to the wasm file, and the size of the instance Memory. The latter might be more important, since the former is easy to derive.

@fitzgen
Copy link
Member

fitzgen commented Mar 8, 2021

We could certainly add some logging of this information, but it is also easy to get via wasm-objdump -h. Given that, do you still think it is worth adding?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants