Re: Erlang JIT and loaded code

Leo Liu <[email protected]> Tue, 26 Apr 2022 14:11:44 +0800
Newsgroups gmane.comp.lang.erlang.general
Message-ID <[email protected]>
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.

Leo