grigory-rechistov / interpreters-comparison

Sample programs for comparison of different VM interpretation techniques
BSD 3-Clause "New" or "Revised" License
27 stars 9 forks source link

Add guest instruction count statistics collection and display #12

Open grigory-rechistov opened 8 years ago

grigory-rechistov commented 8 years ago

Add a mechanism to count how many times each of simulated opcode got executed.

Requirements for a solution

     Opcode    Count
     -------------------
     Nop       1000
     Halt         1
     Push      1234
     ...

After the implementation is ready, it will be nice to compare performance of two builds - interpreter with stats enabled and disabled, to see the performance overhead such collection creates.

lisitsynSA commented 8 years ago

I take it.

grigory-rechistov commented 8 years ago

Not done