hschumann2/TempleOS-Source-Code
0838
1 2The profiler records where the CPU was executing when the 1000Hz timer interrupt3occured, so you can learn where time is spent.4 5Use the Prof() depth argument to record a hit in the N routines which called the6current routine, as well.7 8When done collecting statistics, use ProfRep() for a report. You might need a9DocMax() to expand the command line window buffer to fit it all.10 11Study the code. The profiler is very simple. You might want to enhance it or12modify it to debug something in particular.13 