Question about lli

Hi everybody,
I’m working with llvm and I need to execute the llvm interpreter (lli) and get the number of instructions, in the llvm ir form, executed in the code.
This information is very important for me and the -stats of lli dont show it.
How can I do it?

Thank’s
Leonardo M. R.

$ lli -stats -force-interpreter test.bc
...
8 interpreter - Number of dynamic instructions executed

Note that lli defaults to the JIT, which doesn't measure the number of
instructions, so you need -force-interpreter, while the interpreter
may not implement the whole language.