0

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?

legoscia
  • 39,593
  • 22
  • 116
  • 167
Vishal
  • 1,169
  • 2
  • 12
  • 20

1 Answers1

2

You can use code:is_module_native/1:

1> code:is_module_native(lists).
false
legoscia
  • 39,593
  • 22
  • 116
  • 167
  • Thanks! that worked. However my module which I compiled as native is reported to be running as non-native (false for the above call). I am certain HIPE compiled it as I can see HIPE compile time messages and the size of the beam file is significantly large as compare to non-native compilation. Can you gimme some pointers where to look for ? – Vishal May 10 '15 at 21:17