Erlang opcode counting at runtime

You can analyse .beam files and the ‘Code’ chunk in particular. I have built an extension for VS Code that disassembles the beam files.