Performance profiler for Oracle of Secrets. Samples the CPU Program Counter (PC) to identify code hotspots and laggy routines using statistical analysis.
run --duration 10: Sample CPU for 10 seconds.Update_Sprites executed 5000 times (40% of samples)."lag-detector run --duration 5Sprite_Draw in Sprites.asm."~/src/hobby/yaze/scripts/ai/profiler.py..mlb or sourcemap.json.