Trace function calls and returns if "trace" is ON

This repurposes the "trace" button to make the VM trace all function calls and returns instead of only gfx related calls.