TempleOSTS_140317.ISO
This commit is contained in:
1 parent
2d2a65d572
commit
7ef616a20e
1416 files changed
+223873
-53917
No files matched your search
@@ -0,0 +1,9 @@
|
||||
$WW,1$The TempleOS profiler records statistics on what code location was executing when a task was preempted. You can learn where most time is wasted. There are two modes, $LK,"ProfBin",A="MN:ProfBin"$() which monitors a range of buckets and $LK,"ProfAll",A="MN:ProfAll"$() which records a hit location as well as count. I recommend $LK,"ProfAll",A="MN:ProfAll"$().
|
||||
|
||||
You can pass a subroutine depth level argument which records a hit in not only the routine executing, but the routines which called it, as well.
|
||||
|
||||
When done collecting statistics, use $LK,"ProfRep",A="MN:ProfRep"$() for a report. You might need a $LK,"DocMax",A="MN:DocMax"$() to expand the command line window buffer to fit it all.
|
||||
|
||||
You can set the CPU to monitor with $LK,"ProfCPUSet",A="MN:ProfCPUSet"$().
|
||||
|
||||
Study the code. The profiler is very simple and you might want to enhance it or modify it to debug something in particular.
|
||||
Reference in new issue
Block a user