Function agb::interrupt::profiler

source ·
pub fn profiler(timer: &mut Timer, period: u16) -> InterruptHandler<'_>
Expand description

The behaviour of this function is undefined in the sense that it will output some information in some way that can be interpreted in a way to give some profiling information. What it outputs, how it outputs it, and how to interpret it are all subject to change at any time.

With that out of the way, the current version will, in mgba, output the program counter at regular intervals. This can be used to see hot functions using, for example, addr2line.