Erlang JIT and loaded code

Lukas Larsson garazdawi@REDACTED
Tue Apr 26 10:05:06 CEST 2022

On Tue, Apr 26, 2022 at 8:11 AM Leo Liu <sdl.web@REDACTED> wrote:

> On 2022-04-25 11:13 +0200, Lukas Larsson wrote:
> > It is stored in memory of the VM. You can get a file dump of the native
> > code by passing `+JDdump true` when starting `erl`. There is no way to
> get
> > the loaded memory size of a single module, but you can get a relatively
> > close value by checking what `erlang:memory(code)` returns before and
> after
> > the module is loaded.
> +JDdump true is useful but last time I tried it it dumped asm for all
> modules in current directory. Has there been any improvements? Thanks.

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.

> Leo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the erlang-questions mailing list