Tracing JITs primarily boost speed by identifying 'hot loops'—frequently executed code segments—and recording a linear sequence of operations (a 'trace') for these paths. This trace is then compiled into highly optimized machine code, contrasting with traditional method-based JITs that compile entire functions.