View Single Post
Old 06 January 2016, 19:12   #15
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 44
Posts: 6,504
Quote:
Originally Posted by Toni Wilen View Post
Statistics update: "vh" command after enabling it now lists 40 first addresses with most CPU instruction word fetch activity. (Data is cleared after command)

It first finds highest CPU usage in stat data. Then finds all other nearby addresses with same or slightly less (5% less) CPU usage and outputs single line to console with start, end and percentage of total used. Then repeat same 40 lines.

EDIT: Note that list is not fully sorted, the longer the detected address space the worse the list is..

EDIT2: now also accepts two parameters, first parameter: percentage value of how big range is accepted (default 95 = 95% of highest accepted, set to zero to list all address), second parameter is number of lines to output.

I quickly checked some simple intros and demos and most CPU time was nearly always used "loop: btst #6,$bfe001; bne.s loop" main loop, everything else was done in interrupts. How boring..

Next?

Awesome stuff, will give you something more challenging next time
Galahad/FLT is online now  
 
Page generated in 0.06533 seconds with 9 queries