<aname="l1"></a><spanclass=cF0>The profiler records where the CPU was executing when the 1000Hz timer interrupt occured, so you can learn where time is
<aname="l2"></a>spent.
<aname="l3"></a>
<aname="l4"></a>Use the </span><ahref="https://tomawezome.github.io/ZealOS/System/Utils/Profiler.CC.html#l30"><spanclass=cF4>Prof</span></a><spanclass=cF0>() depth argument to record a hit in the N routines which called the current routine, as well.
<aname="l5"></a>
<aname="l6"></a>When done collecting statistics, use </span><ahref="https://tomawezome.github.io/ZealOS/System/Utils/Profiler.CC.html#l61"><spanclass=cF4>ProfRep</span></a><spanclass=cF0>() for a report. You might need a </span><ahref="https://tomawezome.github.io/ZealOS/System/DolDoc/DocRecalcLib.CC.html#l193"><spanclass=cF4>DocMax</span></a><spanclass=cF0>() to expand the command line window
<aname="l7"></a>buffer to fit it all.
<aname="l8"></a>
<aname="l9"></a>Study the code. The profiler is very simple. You might want to enhance it or modify it to debug something in particular.