Real-Time Capture and Statistics
The DSP/BIOS Event Log Manager controls objects that capture application and system events as the target program executes. These events can be logged explicitly through DSP/BIOS API calls, or implicitly as control passes from thread to thread. The BIOScope analysis tool uploads event logs during program execution and displays them either as text in a scrolling console window, or graphically on a moving time line.
Log events occupy only four words of memory. DSP/BIOS API calls for event logging and host upload execute in well under 1 µsec on a 16-bit TMS320 DSP. This high efficiency makes it practical to embed event logs anywhere in the program source-even in the most time-critical interrupt routines coded in optimized assembly language. It also makes it practical to leave event logs in production systems, where they can be used to provide field and factory diagnostic tools.
The Statistics Accumulator Manager module manages objects that store summary information about different time-varying elements of the target application program. The accumulators maintain statistics (such as count, arithmetic sum, and maximum) are computed from a series of data values supplied by the target application during execution.
Accumulators, which occupy less than 8 words of memory and incur minimal processing overhead (approximately 20 instructions per accumulation), are useful for tracking absolute CPU utilization on a thread by thread basis. They are also useful for computing application parameters such as pitch, gain, and closed loop errors that depend on statistical averaging. As with event logs, the contents of the accumulators can be periodically uploaded by the DSP/BIOS host utility and displayed in a variety of formats in real time.
The Trace Control Manager module lets programs selectively enable and disable event logs and statistics accumulators. This facility maximizes efficiency and simplifies real-time analysis by providing precise control over which forms of data capture are active at any time. It also lays the foundation for interactive field and factory diagnostic tools that can selectively activate real-time trace facilities embedded within production application programs on the fly.
|