Run Antic's 1989 Bottleneck Breaker, a sampling profiler for Atari BASIC: how a POKEY timer interrupt reads STMCUR 250 times a second, how to use it on your own program, and how to read its report.
Practical ways to find bugs in Atari BASIC: stopping and inspecting a running program, how CONT really resumes, finding the current line, listing variable names to catch typos, runtime-stack leaks, and profiling slow code.
A practical tour of Altirra's debugger: stepping, PC/access/conditional breakpoints, tracepoints, watches, symbols and source-level debugging, display-list and CIO tracing, BASIC tools and the profiler.