CoolFace
Datasetpublic

hschumann2/TempleOS-Source-Code

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes838downloads
Profiler.txt13 linesDownload Raw Back to Doc
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