ZealOS/docs/Doc/Profiler.DD.html
2021-12-11 06:10:58 -05:00

38 lines
2.1 KiB
HTML
Executable file

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
<meta name="generator" content="ZealOS V1.07">
<style type="text/css">
body {background-color:#1f1f1f;}
.cF0{color:#e3e3e3;background-color:#1f1f1f;}
.cF1{color:#4f84a6;background-color:#1f1f1f;}
.cF2{color:#73a255;background-color:#1f1f1f;}
.cF3{color:#297582;background-color:#1f1f1f;}
.cF4{color:#b34f4b;background-color:#1f1f1f;}
.cF5{color:#8a52c3;background-color:#1f1f1f;}
.cF6{color:#b7822f;background-color:#1f1f1f;}
.cF7{color:#444444;background-color:#1f1f1f;}
.cF8{color:#6d6d6d;background-color:#1f1f1f;}
.cF9{color:#94bfde;background-color:#1f1f1f;}
.cFA{color:#a1ce97;background-color:#1f1f1f;}
.cFB{color:#6db4be;background-color:#1f1f1f;}
.cFC{color:#e88e88;background-color:#1f1f1f;}
.cFD{color:#ca94e8;background-color:#1f1f1f;}
.cFE{color:#d4b475;background-color:#1f1f1f;}
.cFF{color:#1f1f1f;background-color:#1f1f1f;}
</style>
</head>
<body>
<pre style="font-family:monospace;font-size:12pt">
<a name="l1"></a><span class=cF0>The profiler records where the CPU was executing when the 1000Hz timer interrupt occured, so you can learn where time is
<a name="l2"></a>spent.
<a name="l3"></a>
<a name="l4"></a>Use the </span><a href="https://zeal-operating-system.github.io/ZealOS/System/Utils/Profiler.ZC.html#l30"><span class=cF4>Prof</span></a><span class=cF0>() depth argument to record a hit in the N routines which called the current routine, as well.
<a name="l5"></a>
<a name="l6"></a>When done collecting statistics, use </span><a href="https://zeal-operating-system.github.io/ZealOS/System/Utils/Profiler.ZC.html#l95"><span class=cF4>ProfRep</span></a><span class=cF0>() for a report. You might need a </span><a href="https://zeal-operating-system.github.io/ZealOS/System/DolDoc/DocRecalcLib.ZC.html#l203"><span class=cF4>DocMax</span></a><span class=cF0>() to expand the command line window
<a name="l7"></a>buffer to fit it all.
<a name="l8"></a>
<a name="l9"></a>Study the code. The profiler is very simple. You might want to enhance it or modify it to debug something in particular.
</span></pre></body>
</html>