Vishal
Vishal

Reputation: 1209

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

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?

Upvotes: 0

Views: 236

Answers (1)

legoscia
legoscia

Reputation: 41528

You can use code:is_module_native/1:

1> code:is_module_native(lists).
false

Upvotes: 2

Related Questions