![]() |
C.2 Built-in Code Profiler |
debug on stats onThen, after you have run your code long enough or just before your program ends:
list statsThis writes profiling information to a file named myprogram_stats.txt where myprogram is the name of your program. The statistics file contains the names of every routine that is called. For each routine the amount of elapsed time spent in that routine and a count is provided. The count is the maximum number of times any statement within the routine was executed.
debug on stats on for idx = 1 to 10 more_work do_it do_it2 next idx list stats stats off debug off stop routine more_work x=x+1 delay .05 end routine routine do_it2 delay .2 x=x+1 end routine routine do_it delay .2 x=x+1 end routine stop
Sheerpower Profiling Statistics 07-SEP-2022 08:02:25 C:\Sheerpower\stats.spsrc 0.62 10 routine more_work 2.02 10 routine do_it2 2.00 10 routine do_it ***** Longest Executing Routines ***** 2.02 10 routine do_it2 2.00 10 routine do_it 0.62 10 routine more_work ************************ --- End of stats ---
Hide Description
|
|
Looking for the full power of Sheerpower?
Check out the Sheerpower website. Free to download. Free to use. |