svaarala / duktape

Duktape - embeddable Javascript engine with a focus on portability and compact footprint
MIT License
5.96k stars 516 forks source link

Debugger execution statistics #375

Open svaarala opened 9 years ago

svaarala commented 9 years ago

Useful execution-related statistics:

The easiest statistic available would be cumulative opcode execution count, with debugger executed opcodes excluded.

fatcerberus commented 9 years ago

Statement count would be very difficult I think, you could probably count lines easily (with some potential for inaccuracy, and not a very useful statistic in the case of, e.g. minified code), but counting at the statement level would need, at the very least, instrumentation from the compiler.