📄 c-start3.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title> Getting Started </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-start.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-start.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-start2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-start4.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="93013">2.3 An Overview of WindView</a></i></h3></font><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="93014">2.3.1 Understanding Events</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="93016"> </a>In WindView, an <i class="term">event</i> is any action undertaken by a task or an ISR that can affect the state of the real-time system. WindView displays detailed information for each event (such as the action that occurred, the context in which the action occurred, and the object associated with the action). In addition, WindView tags certain events with either high-resolution timestamps or event sequence numbers.</p><dd><p class="Body"><a name="93018"> </a>The interactions of the tasks, objects, and interrupts in a real-time system result in <i class="term">context switches</i>. When a context switch occurs, execution switches from one thread to another. At the default logging level, the <i class="term">CSE level</i>, WindView shows only the context switches. You can configure WindView to show all task state transitions so that, for example, when a task goes from pended to active state, that event is logged and displayed. This is called task state transition event-logging level or <i class="term">TST level</i>. Or you can configure WindView to show details of selected objects in instrumented libraries, also called additional instrumentation event-logging level or <i class="term">AIL level</i>. Instrumented objects include semaphore gives and takes, message queue sends and receives, timer expirations, and signals, as well as task and memory activities.</p></dl></dl><font face="Helvetica, sans-serif" class="sans"><h4 class="H3"><i><a name="93020">2.3.2 The View Graph</a></i></h4></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="93022"> </a>The heart of WindView is the view graph. The view graph presents the event data you collect in a graphical format that allows you to see the interaction of the various contexts in your system over time. If you have already followed the steps in <a href="c-start2.html#92769"><i class="title">2.2 Running WindView</i></a> and collected your own event log, you will have a view graph similar to <a href="c-start3.html#93032">Figure 2-6</a>. <div class="frame"><h4 class="EntityTitle"><a name="93032"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 2-6: Sample Basic View Graph</font></a></h4><dl class="margin"><div class="Anchor"><a name="93037"> </a><img class="figure" border="0" src="images/c-start14.gif"></div></dl></div></p><dd><p class="Body"><a name="93038"> </a>If you skipped to this section to familiarize yourself with the view graph before preparing to collect your own data, your WindView installation includes several sample files of data that you can view immediately. Even if you have your own log to look at, you may also want to open a sample log to compare a large, complex log with the simple log you generated. <a href="c-start3.html#93064">Figure 2-7</a> shows the view graph that appears if you open <i class="textVariable">installDir</i><b class="file">/host/src/windview/apilib/vxColor.wvr</b> using<b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans"> Open</font></b> from the main <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">File</font></b> menu. </p><dd><p class="Body"><a name="93045"> </a>First, compare <a href="c-start3.html#93032">Figure 2-6</a> or your graph generated with the WindView default settings to <a href="c-start3.html#93064">Figure 2-7</a> or your display of <b class="file">vxColor.wvr</b>. Notice that <a href="c-start3.html#93032">Figure 2-6</a> is quite simple, showing only some plain vertical bars and a few icons corresponding to interrupts near the top of the graph. On the other hand, <a href="c-start3.html#93064">Figure 2-7</a> is much more complex. It includes many more tasks, many connections between tasks, and many event icons. Your basic event log was generated using CSE logging level. <b class="file">vxColor.wvr</b> was collected using AIL logging level with tasks, semaphores, message queues, and watchdogs instrumented. For information about logging levels, see <a href="c-collect2.html#84188"><i class="title">3.2 Selecting a Logging Level</i></a>. For information about additional instrumented libraries, see <a href="c-collect3.html#84220"><i class="title">3.3 Instrumented Objects</i></a>. <div class="frame"><h4 class="EntityTitle"><a name="93064"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 2-7: vxColor.wvr View Graph</font></a></h4><dl class="margin"><div class="Anchor"><a name="93113"> </a><img class="figure" border="0" src="images/c-start15.gif"></div></dl></div></p><dd><p class="Body"><a name="93117"> </a>Try clicking on the various zoom buttons on the WindView toolbar, <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Zoom In</font></b> (<img class="figure" border="0" src="images/c-start16.gif">), <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Zoom Out</font></b> (<img class="figure" border="0" src="images/c-start17.gif">), and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Zoom 100%</font></b> (<img class="figure" border="0" src="images/c-start18.gif">). Note that when you use <img class="figure" border="0" src="images/c-start19.gif"> to display the entire log on the view graph, the icons overlay each other and can't be distinguished. Click and drag over a dense portion of the view graph and then click <img class="figure" border="0" src="images/c-start20.gif">. Your view immediately zooms in on the area you indicated. You may need to do this several times to clearly distinguish the icons.</p><dd><p class="Body"><a name="93134"> </a>The following paragraphs provide an overview of the view graph shown in <a href="c-start3.html#93064">Figure 2-7</a>. The features of the WindView display are discussed in detail in <a href="c-display.html#86222"><i class="title">5. Data Display</i></a>. </p><dd><p class="Body"><a name="93142"> </a>The view graph is a <i class="emphasis">window</i> into the event data. In most cases, it does not show the entire event log; instead, it shows a <i class="term">time interval</i>. The title of each view-graph window indicates where the events displayed come from: either the name of a file (an event log) or the name of a target server. The file name appears in the upper left-hand corner of the view graph: <b class="file">vxColor.wvr</b>. If you have not yet saved a view graph, the name of the target server appears instead of the file name. </p></dl><dl class="margin"><dd><div class="Item"><a name="93143"> </a>Timeline</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="93144"> </a>The timeline displays the time in seconds, or the sequence numbers, since event logging began. </div><br></dl></dl><dd><div class="Item"><a name="93145"> </a>Interrupt Levels</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="93146"> </a>On the left side of the view graph, the interrupt levels used in this event log are listed in order, with the highest-level interrupt at the top. </div><br></dl></dl><dd><div class="Item"><a name="93147"> </a>Tasks</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="93148"> </a>After the interrupt levels, tasks are listed with the highest priority task first, based on initial priority. Even if the priority of a particular task changes (due to a <b class="routine"><i class="routine">taskPrioritySet</i></b><b>( )</b> or priority inheritance, for example), its vertical position does not change.</div><br></dl></dl><dd><div class="Item"><a name="93149"> </a>Idle Loop</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="93150"> </a>The last thread of execution shown represents the kernel idle loop.</div><br></dl></dl><dd><div class="Item"><a name="93151"> </a>Status Bar</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="93152"> </a>The status bar for each WindView view graph provides information about the time interval currently displayed in that view graph unless a specific context is selected. For a time interval, as shown in <a href="c-start3.html#93064">Figure 2-7</a>, the status bar displays the lower and upper bounds and the duration of the interval. To see the status bar when a specific event is selected, see <a href="c-start3.html#93032">Figure 2-6</a>.</div><br></dl></dl><dd><div class="Item"><a name="93159"> </a>Event Icons</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="93160"> </a>Various icons indicate what type of event occurred at a given time. </div><br></dl></dl><dd><div class="Item"><a name="93161"> </a>State Stipples</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="93162"> </a>These are horizontal lines that show the state of each task at a given time. </div><br></dl></dl><dd><div class="Item"><a name="93163"> </a>Analog Graph</div><dl class="margin"><dl class="margin"><dd><div class="Indent2"><a name="93164"> </a>An analysis pack is available to calculate the amount of memory usage (if you have collected memory data). Click the <img class="figure" border="0" src="images/c-start21.gif"> button to display the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Analysis</font></b> dialog box. Select the contexts you want to include in the analysis and click <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Perform</font></b>. You can display the memory data in graph form below the main view graph by using the split box (see the upper right corner of <a href="c-start3.html#93064">Figure 2-7</a>) to divide the view graph horizontally. (To see what the analog graph looks like, see <a href="c-display5.html#84065">Figure 5-11</a>).</div><br></dl></dl></dl></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="c-start.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-start.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-start2.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-start4.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc. conversion tool: Quadralay WebWorks Publisher 4.0.11 template: CSS Template, Jan 1998 - Jefro --->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -