Download Implementing a trace component for Carbide development
Transcript
17 binary file. The DataReader reads the binary file and pushes traces to the Engine one by one. The Engine will then iterate the trace through the list of DataProcessors. Here the order of DataProcessors is Decoder, TriggerProcessor, FilterProcessor, Logger, LineCountProcessor, VariableTracingProcessor, ColorProcessor and finally the TraceViewerView. The order can be easily modified just by inserting the DataProcessors in a different order. Also, the same DataProcessor can be inserted multiple times. For example Filter might be used before Decoder to filter traces still in binary format and then again after Decoder to filter using decoded trace. Note that not all DataProcessors are visible in Figure 3 and some of the names are abbreviated. All DataProcessors can be found in subsection 5.2.2 on page 20. Figure 3. Data flow diagram of TraceViewer 5.2. Class design 5.2.1. TraceViewer Engine The TraceViewer Engine package contains the central logic of TraceViewer. The Engine receives the traces from the trace source, writes them to a file, reads the same file, processes traces and finally shows them in the view. Figure 4 introduces the main classes of the TraceViewer Engine. Figure 4 is divided into two parts, the Core part and the OST part. The Core part implements common functionality for the application containing mostly interfaces that have to be