wizer icon indicating copy to clipboard operation
wizer copied to clipboard

Add support for getting snapshot size

Open tschneidereit opened this issue 4 years ago • 1 comments
trafficstars

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.

tschneidereit avatar Mar 05 '21 18:03 tschneidereit

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?

fitzgen avatar Mar 08 '21 20:03 fitzgen