43 lines
2.1 KiB
HTML
Executable File
43 lines
2.1 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="generator" content="TempleOS V5.03">
|
|
<meta name="viewport" content="width=device-width">
|
|
<link rel="stylesheet" href="/style/templeos.css">
|
|
<script src="/script/templeos.js"></script>
|
|
<style type="text/css">
|
|
.cF0{color:#000000;background-color:#ffffff;}
|
|
.cF1{color:#0000aa;background-color:#ffffff;}
|
|
.cF2{color:#00aa00;background-color:#ffffff;}
|
|
.cF3{color:#00aaaa;background-color:#ffffff;}
|
|
.cF4{color:#aa0000;background-color:#ffffff;}
|
|
.cF5{color:#aa00aa;background-color:#ffffff;}
|
|
.cF6{color:#aa5500;background-color:#ffffff;}
|
|
.cF7{color:#aaaaaa;background-color:#ffffff;}
|
|
.cF8{color:#555555;background-color:#ffffff;}
|
|
.cF9{color:#5555ff;background-color:#ffffff;}
|
|
.cFA{color:#55ff55;background-color:#ffffff;}
|
|
.cFB{color:#55ffff;background-color:#ffffff;}
|
|
.cFC{color:#ff5555;background-color:#ffffff;}
|
|
.cFD{color:#ff55ff;background-color:#ffffff;}
|
|
.cFE{color:#ffff55;background-color:#ffffff;}
|
|
.cFF{color:#ffffff;background-color:#ffffff;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<pre id="content">
|
|
<a name="l1"></a><span class=cF0>The profiler records where the CPU was executing when the 1000Hz timer interrupt
|
|
<a name="l2"></a>occured, so you can learn where time is spent.
|
|
<a name="l3"></a>
|
|
<a name="l4"></a>Use the </span><a href="/Wb/Adam/Opt/Utils/Profiler.HC#l27"><span class=cF4>Prof</span></a><span class=cF0>() depth argument to record a hit in the N routines which called the
|
|
<a name="l5"></a>current routine, as well.
|
|
<a name="l6"></a>
|
|
<a name="l7"></a>When done collecting statistics, use </span><a href="/Wb/Adam/Opt/Utils/Profiler.HC#l57"><span class=cF4>ProfRep</span></a><span class=cF0>() for a report. You might need a </span><span class=cF4>
|
|
<a name="l8"></a></span><a href="/Wb/Adam/DolDoc/DocRecalcLib.HC#l176"><span class=cF4>DocMax</span></a><span class=cF0>() to expand the command line window buffer to fit it all.
|
|
<a name="l9"></a>
|
|
<a name="l10"></a>Study the code. The profiler is very simple. You might want to enhance it or
|
|
<a name="l11"></a>modify it to debug something in particular.
|
|
</span></pre></body>
|
|
</html>
|