How to verify if Erlang runtime and loader is indeed running native code

238 Views Asked by At

I am trying to explore performance improvements by switching to native compilation for my Erlang code (native option and {hipe, [verbose]}).

How can I make sure that the Erlang loader is indeed using the native code from the beam file?

Is there some verbose logging option for the loader to know what it is up to?

1

There are 1 best solutions below

1
On BEST ANSWER

You can use code:is_module_native/1:

1> code:is_module_native(lists).
false