Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Profile Timer Support

Profile Timer Support

Located at the core of the operating system, the OAL is a perfect choice for mechanisms to measure the performance of the system and support performance optimization. As discussed in Chapter 3, "Performing System Programming," you can use the Interrupt Latency Timing (ILTiming) tool to measure the time it takes to invoke an interrupt service routine (ISR) after an interrupt occurred (ISR latency) and the time between when the ISR exits and the interrupt service thread (IST) actually starts (IST latency). However, this tool requires a system hardware tick timer or alternative high-resolution timer that is not available on all hardware platforms. If the new hardware platform supports a high-resolution hardware timer, you can support ILTiming and similar tools by implementing the functions listed in Table 5-7.

Table 5-7 Profile timer support functions

Function Description
OEMProfileTimerEnable Enables a profiler timer.
OEMProfileTimerDisable Disables a profiler timer.

NOTE

Thread scheduling and interrupt handling

The OAL must also support interrupt handling and the kernel scheduler. The scheduler is independent of the processor type, yet interrupt handling must be optimized for different types of processors.

Оглавление книги


Генерация: 1.047. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз