<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 26, 2022 at 8:11 AM Leo Liu <<a href="mailto:sdl.web@gmail.com">sdl.web@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2022-04-25 11:13 +0200, Lukas Larsson wrote:<br>
> It is stored in memory of the VM. You can get a file dump of the native<br>
> code by passing `+JDdump true` when starting `erl`. There is no way to get<br>
> the loaded memory size of a single module, but you can get a relatively<br>
> close value by checking what `erlang:memory(code)` returns before and after<br>
> the module is loaded.<br>
<br>
+JDdump true is useful but last time I tried it it dumped asm for all<br>
modules in current directory. Has there been any improvements? Thanks.<br></blockquote><div><br></div><div>No, there has not been any improvements. One of the limiting factors here is that we must do the dump as the code is loaded, we cannot dump it after the fact. If you have any suggestions about what improvements we should make, please open an issue on github.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Leo<br>
<br>
</blockquote></div></div>