~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/tv/doc/src/table_visualizer_chapter.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="latin1" ?>
 
2
<!DOCTYPE chapter SYSTEM "chapter.dtd">
 
3
 
 
4
<chapter>
 
5
  <header>
 
6
    <copyright>
 
7
      <year>1997</year>
 
8
      <year>2007</year>
 
9
      <holder>Ericsson AB, All Rights Reserved</holder>
 
10
    </copyright>
 
11
    <legalnotice>
 
12
  The contents of this file are subject to the Erlang Public License,
 
13
  Version 1.1, (the "License"); you may not use this file except in
 
14
  compliance with the License. You should have received a copy of the
 
15
  Erlang Public License along with this software. If not, it can be
 
16
  retrieved online at http://www.erlang.org/.
 
17
 
 
18
  Software distributed under the License is distributed on an "AS IS"
 
19
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
20
  the License for the specific language governing rights and limitations
 
21
  under the License.
 
22
 
 
23
  The Initial Developer of the Original Code is Ericsson AB.
 
24
    </legalnotice>
 
25
 
 
26
    <title>The Table Visualizer</title>
 
27
    <prepared>EPK/TK Fredrik Gustafson</prepared>
 
28
    <responsible></responsible>
 
29
    <docno></docno>
 
30
    <approved>EPK/TK (Fredrik Gustafson)</approved>
 
31
    <checked></checked>
 
32
    <date>1998-01-19</date>
 
33
    <rev>C</rev>
 
34
    <file>table_visualizer.sgml</file>
 
35
  </header>
 
36
  <p>The TV, TV, is a tool that enables the user to examine 
 
37
    ETS and Mnesia tables on any (connected) node in the currently running Erlang
 
38
    system. Once a certain table has been opened in the tool, the content may be
 
39
    viewed in various levels of detail. The content may also be edited, as well as
 
40
    sorted, using any element as key. It is also possible to search for a specified object or
 
41
    element. The table may be polled anytime, either regularly, at specified
 
42
    intervals, or manually. New and deleted objects, as well as those altered, are
 
43
    marked with characteristic colours.</p>
 
44
  <p>Information about the table itself (permissions, storage type, and so on) may
 
45
    also be obtained.
 
46
    </p>
 
47
 
 
48
  <section>
 
49
    <title>Terminology and Background</title>
 
50
    <p>To avoid confusion, we have to distinguish between the <em>actual table</em>, i.e.,
 
51
      the data stored in ETS or Mnesia, and the <em>image of the table</em>, i.e., the
 
52
      data shown in the TV. The <em>image of the table</em> is simply a copy
 
53
      of the <em>actual table</em>, and can be manipulated in a number of ways, for example
 
54
      sorted. It follows that these manipulations in no way affects the <em>actual table</em>!</p>
 
55
    <p>The expression <em>poll the table</em> is used for the operation of scanning through the
 
56
      content of the actual table (in order to keep the image of the table consistent with the
 
57
      actual table).</p>
 
58
    <p>The ETS and Mnesia modules provides the user with the ability to store vast quantities
 
59
      of data in, the data organized as dynamic, unordered tables. The ETS
 
60
      facility stores <em>tuples</em>, while Mnesia stores <em>records</em>.
 
61
      Each tuple consists of one or more <em>elements</em>; each record consists of one or
 
62
      more <em>fields</em>. It should be noted that, since records are implemented as tuples,
 
63
      with the record name as the first element, the first field of a record becomes the second
 
64
      element in the corresponding tuple!
 
65
            <br></br>
 
66
 
 
67
      In the following, all table objects are mainly referred to as tuples, regardless of the
 
68
      table type.</p>
 
69
    <p>For further information about ETS and Mnesia, please see the manual pages and Mnesia User's Guide.</p>
 
70
  </section>
 
71
 
 
72
  <section>
 
73
    <title>Starting the TV</title>
 
74
    <p>The TV tool is started by giving the command</p>
 
75
    <pre>
 
76
      tv:start().
 
77
    </pre>
 
78
    <p>The window that appears, is hereafter referred to as <em>the TV main window</em>. It consists of:</p>
 
79
    <list type="bulleted">
 
80
      <item>
 
81
        <p>a <em>menubar</em>.</p>
 
82
      </item>
 
83
      <item>
 
84
        <p>a <em>grid</em>, i.e., a multicolumnar array, where tables existing on
 
85
          the current node is shown. Each square in the grid is called a <em>cell</em>.</p>
 
86
      </item>
 
87
    </list>
 
88
    <image file="tv_start">
 
89
      <icaption>The TV Main Window at startup.</icaption>
 
90
    </image>
 
91
    <p>For each table, the following information is shown, in order:
 
92
      </p>
 
93
    <list type="bulleted">
 
94
      <item>
 
95
        <p>the <em>table name</em>. If the table is accessible through this name, as is the
 
96
          case with Mnesia tables and named ETS tables, the table name is shown in
 
97
          black, otherwise in medium grey.</p>
 
98
      </item>
 
99
      <item>
 
100
        <p>the <em>table identifier</em>, if there is one; since Mnesia tables are accessed
 
101
          solely through the table name, this cell will in those cases be blank.</p>
 
102
      </item>
 
103
      <item>
 
104
        <p>the <em>process identifier (PID) of the process owning the table</em>.</p>
 
105
      </item>
 
106
      <item>
 
107
        <p>the <em>name of the process owning the table</em>, provided the process
 
108
          is registered.</p>
 
109
      </item>
 
110
      <item>
 
111
        <p>the <em>table size</em>, i.e., the number of objects currently stored in
 
112
          the table.</p>
 
113
      </item>
 
114
    </list>
 
115
  </section>
 
116
 
 
117
  <section>
 
118
    <title>Changing View</title>
 
119
    <p>The TV will by default show currently existing ETS tables,
 
120
      but the user may easily switch to a Mnesia table view, by choosing the
 
121
      <em>Mnesia Tables</em> option in the <em>View</em> menu:
 
122
      </p>
 
123
    <image file="tv_start_mnesia">
 
124
      <icaption>The TV Main Window, showing Mnesia tables.</icaption>
 
125
    </image>
 
126
    <p>Normally, system tables (i.e., tables used by system applications) and unreadable
 
127
      tables are not shown. The menu option <em>System Tables</em>, in the <em>Options</em>
 
128
      menu, makes the system tables visible:
 
129
      </p>
 
130
    <image file="tv_start_system">
 
131
      <icaption>The TV Main Window, showing readable user and system tables.</icaption>
 
132
    </image>
 
133
    <p>Still unreadable tables are hidden, but the menu option <em>Unreadable Tables</em>,
 
134
      also in the <em>Options</em> menu, makes even those tables visible. It shall be noted
 
135
      that rows containing unreadable tables are shaded, using a grey colour:
 
136
      </p>
 
137
    <image file="tv_start_system_unreadable">
 
138
      <icaption>The TV Main Window, showing both readable and unreadable user and system tables.</icaption>
 
139
    </image>
 
140
    <p>Once a table view has been opened, the user may choose how to view it: it may be sorted
 
141
      by the table names, by the table identifiers, by the process identifiers of the owner
 
142
      processes, or by the names of the owning processes. These sorting options are found in the
 
143
      <em>Options</em> menu.
 
144
      </p>
 
145
    <image file="tv_start_pid_sorted">
 
146
      <icaption>The TV Main Window, tables sorted by owner PID.</icaption>
 
147
    </image>
 
148
  </section>
 
149
 
 
150
  <section>
 
151
    <title>Changing the Current Node</title>
 
152
    <p>By default, the Table Vizualizer will show tables residing on the node
 
153
      it was started from. However, the user may easily view tables on other nodes.
 
154
      By choosing the <em>Nodes</em> option, in the <em>File</em> menu, a window showing
 
155
      all connected nodes will appear. Clicking on any of the nodes in the list will cause
 
156
      the main window to immediately show the tables residing on the specified node:
 
157
      </p>
 
158
    <image file="tv_start_other_node">
 
159
      <icaption>The Connected Nodes window, and the TV Main Window, showing tables on the selected node.</icaption>
 
160
    </image>
 
161
  </section>
 
162
 
 
163
  <section>
 
164
    <title>Opening a Table in the Table Browser</title>
 
165
    <p>Whenever a table shall be opened, the first step is to choose the corresponding
 
166
      <em>Table Name</em> or <em>Table ID</em> cell. Secondly, the <em>Open Table</em>
 
167
      menu item, in the <em>File</em> menu, has to be chosen. (Or, one may directly
 
168
      double-click on a <em>Table Name</em> or <em>Table Id</em> cell.)</p>
 
169
    <p>If the table selected table is readable, a window will appear after a short delay. This new
 
170
      window is hereafter denoted the <em>Table Browser</em> window. Should the table be
 
171
      unreadable, the Table Information window will appear instead (see further description
 
172
      below).
 
173
      </p>
 
174
 
 
175
    <section>
 
176
      <title>The Table Browser Window</title>
 
177
      <p>The Table Browser window consists of:</p>
 
178
      <list type="bulleted">
 
179
        <item>
 
180
          <p>a <em>menubar</em>.</p>
 
181
        </item>
 
182
        <item>
 
183
          <p>a <em>toolbar</em> with buttons providing shortcuts to the menubar options. If the
 
184
            cursor rests on any button, a so-called toolbar tip, explaining the button,
 
185
            will appear.             <br></br>
 
186
 
 
187
            (In the picture below, the cursor has lingered on the <em>Open Table</em>
 
188
            button for a while.)</p>
 
189
        </item>
 
190
        <item>
 
191
          <p>a <em>content and edit field</em>, showing the content of a specified row or cell.
 
192
            Through this field the row, or cell, may also be edited (see below for a detailed
 
193
            description).</p>
 
194
        </item>
 
195
        <item>
 
196
          <p>a <em>grid</em>, i.e., a multicolumnar array, where the content of the
 
197
            opened table will be shown. (As above, each square in the grid is called a cell.</p>
 
198
        </item>
 
199
      </list>
 
200
      <image file="tv_table_browser">
 
201
        <icaption>The Table Browser Window.</icaption>
 
202
      </image>
 
203
      <p>The successful appearance of the Table Browser window means that an image of
 
204
        the selected table has been created in the TV. It is this image
 
205
        that is shown in the Table Browser.
 
206
        </p>
 
207
 
 
208
      <section>
 
209
        <title>How Table Data Is Presented</title>
 
210
        <p>Each object in the table is presented on a row of its own in the grid.
 
211
          Each element in the object is presented in a cell of its own.          <br></br>
 
212
 
 
213
          The colours on the <em>vertical</em> buttons to the left of the grid show the status
 
214
          of the object on that very row: a bright red colour indicates that the object just
 
215
          has been inserted (when the table is opened, all objects are regarded as being
 
216
          just inserted), while a bright green colour indicates that the object has been
 
217
          changed. The colour fades away, shade by shade, every time the actual table is polled,
 
218
          until the normal background colour is encountered.          <br></br>
 
219
 
 
220
          When an object has been deleted, the colour of the corresponding
 
221
          <em>vertical button</em> turns to black. The next time the table is polled, the
 
222
          object will be removed from the grid.</p>
 
223
        <image file="tv_table_browser_updated">
 
224
          <icaption>The Table Browser Window, with new, changed, and deleted objects.</icaption>
 
225
        </image>
 
226
        <p>Normally, new objects are placed at the end of the grid, while all other objects
 
227
          maintain their positions between successive polls. However, when sorting mode has
 
228
          been ordered, all objects, even new ones, are placed at the correct position
 
229
          according to the sorting ordered (see also below).</p>
 
230
        <p>Immediately above the <em>horizontal buttons</em>, one or more <em>keys</em> may
 
231
          appear. These keys indicates which elements that are used as indices in the
 
232
          ETS/Mnesia table, i.e., which fields that are used by ETS/Mnesia as search keys when
 
233
          looking up data.</p>
 
234
        <p>The grid columns may be resized, by clicking and dragging on the small black <em>resize areas</em> between any two horizontal buttons.</p>
 
235
        <p>The rows are enumerated, as a help when navigating through the table. Note: it shall
 
236
          not be assumed that these numbers correspond to the placement of the objects in the
 
237
          <em>actual table</em>! The row numbers, as presented in the TV, are
 
238
          only temporary, and only valid within the TV!
 
239
                    <br></br>
 
240
 
 
241
          The number on the <em>vertical scrollbar</em> corresponds to the number the
 
242
          uppermost row has (or will have).</p>
 
243
        <p>The number shown on the horizontal scrollbar relates to the leftmost column shown.</p>
 
244
      </section>
 
245
 
 
246
      <section>
 
247
        <title>How to Poll the Table</title>
 
248
        <p>The table is polled whenever the <em>Poll Table</em> option in the <em>Options</em>
 
249
          menu is chosen (or the <em>Poll Table</em> toolbar button is pressed).           <br></br>
 
250
 
 
251
          The user may also choose to let the TV poll the table at regular
 
252
          intervals. This is done via the <em>Set Poll Interval...</em> option in the
 
253
          <em>Options</em> menu, which causes the <em>Set Poll Interval window</em> to appear. </p>
 
254
        <p>In the Set Poll Interval window the user selects whether manual or automatic
 
255
          polling shall be used, and, in the automatic polling case, the poll interval.</p>
 
256
        <image file="set_poll_int">
 
257
          <icaption>The Set Poll Interval Window.</icaption>
 
258
        </image>
 
259
        <p>It shall be noted that, in the case of a large table (or a slow computer/operating
 
260
          system), a short poll interval may cause the TV to be flooded, i.e., the
 
261
          data resulting from one poll has not been fully treated and presented when the data from
 
262
          the next poll arrives. The user is therefore kindly requested to use the automatic
 
263
          polling facility with care!</p>
 
264
      </section>
 
265
 
 
266
      <section>
 
267
        <title>How to Edit Objects in the Table</title>
 
268
        <p>Provided that the table is writable for other processes than the owning process,
 
269
          the user may insert, change and delete objects.</p>
 
270
        <p>To <em>delete</em> an object, the corresponding row, or a single cell in the
 
271
          corresponding row, has to be chosen, by clicking either on the vertical button
 
272
          to the left of the row, or on a cell. Thereafter the <em>Delete Object</em>
 
273
          option in the <em>Edit Menu</em>
 
274
          is chosen. (Should the user regret the delete operation, the row may once again
 
275
          be selected, whereupon the <em>Return</em> button simply is pressed.)</p>
 
276
        <p>To <em>insert</em> an object, the user may use the <em>Record Editor</em>, or simply
 
277
          enter the object in the content and edit field, and then press the <em>Return</em>
 
278
          button.          <br></br>
 
279
 
 
280
          The <em>Record Editor</em> is started via the <em>Edit Object</em> option in the
 
281
          <em>Edit</em> menu, or via the <em>Edit Object</em> toolbar button. The editor that
 
282
          appears looks different depending on the kind of table: for Mnesia tables,
 
283
          a writable field is shown for each record entry, as well as the name of the entry.
 
284
          For ETS tables, only a writable field is shown; this is due to the fact that the
 
285
          size of the tuples inserted in ETS tables may vary, whereas the size of the records
 
286
          inserted in a Mnesia table (more or less) is fixed.
 
287
          One may select the next field in the record editor by pressing
 
288
          the 'Tab' (or 'Arrow Down') button, and select the previous field by pressing
 
289
          'Shift'+'Tab' (or 'Arrow Up').          <br></br>
 
290
 
 
291
          When the editing is finished, the <em>OK</em> button may be clicked, or
 
292
          'Return' pressed. The TV will then try to insert the new object.
 
293
          </p>
 
294
        <image file="tv_record_editor_mnesia">
 
295
          <icaption>The Record Editor (shown for a Mnesia table).</icaption>
 
296
        </image>
 
297
        <p>To <em>change</em> an already existing object, the corresponding row, or a single cell
 
298
          in the corresponding row, has to be selected first (see below). Then one may edit the
 
299
          whole object (or the selected field in the object), either using the record editor
 
300
          or the content and edit field, whereupon 'Return' may be pressed (or the 'OK' button
 
301
          clicked).
 
302
          </p>
 
303
        <p>It shall be noted that it is hard to edit objects containing
 
304
          <em>process identifiers</em>, <em>references</em>, <em>binaries</em> and <em>ports</em>,
 
305
          since it is only a textual representation of these terms that is shown on the screen.
 
306
          It is in the general case impossible for the TV to correctly
 
307
          convert this textual representation back to the original term. As a courtesy to
 
308
          the user, an attempt to do this will nevertheless be done if the edited field
 
309
          consists of a single process identifier; however, this conversion will only be
 
310
          correct provided
 
311
          that the process identifier originates from the current Erlang session. (On
 
312
          the other hand, why on earth should any user want to store old process identifiers?)
 
313
          </p>
 
314
        <p>It shall also be noted that it may be more or less confusing to edit the table,
 
315
          depending on whether the table type is <em>set</em>, <em>bag</em>, or
 
316
          <em>duplicate_bag</em>, i.e., depending on whether or not objects having the
 
317
          same key (or even duplicate objetcts) are allowed. Please study the ETS or Mnesia
 
318
          manual pages, should confusion arise!
 
319
          </p>
 
320
      </section>
 
321
 
 
322
      <section>
 
323
        <title>How to Search For Objects</title>
 
324
        <p>One may search for an object, by choosing the <em>Search Object</em>
 
325
          option in the <em>Options</em> menu (or by pressing the <em>Search Object</em>
 
326
          toolbar button). In the <em>Search Object window</em> that appears, any valid
 
327
          Erlang term or regular expression may be entered, whereupon all objects
 
328
          containing (or consisting of) this term, or matching the regular expression,
 
329
          will be shown.</p>
 
330
        <image file="tv_search_window">
 
331
          <icaption>The Search Object Window.</icaption>
 
332
        </image>
 
333
        <p>In the search result list, by clicking on any object, the Table Browser will
 
334
          immediately scroll to the corresponding row in the table shown. This enables
 
335
          the user to in a very powerful way quickly find the objects he's interested in.</p>
 
336
        <image file="tv_search_result">
 
337
          <icaption>The Search Object Window interworking with the Table Browser.</icaption>
 
338
        </image>
 
339
      </section>
 
340
 
 
341
      <section>
 
342
        <title>How to Mark Table Data</title>
 
343
        <p>One may mark a row or a column by clicking on the buttons to the left and above
 
344
          the grid, respectively. A single cell is marked by clicking on it. Even empty
 
345
          rows and columns may be marked; an empty cell cannot be marked - on the contrary,
 
346
          by clicking on an empty cell, all marks are removed.</p>
 
347
        <p>Marks are indicated by a cyan blue colour.</p>
 
348
        <image file="tv_row_marked">
 
349
          <icaption>The TV Main Window: a row has been marked.</icaption>
 
350
        </image>
 
351
        <p>When a row or a cell has been marked, the content will be shown in the content field,
 
352
          together with an indication of the row (and column when applicable) the marked area
 
353
          corresponds to. Should the object be very big, only a fraction of it may be shown in
 
354
          this field. By clicking on the down-arrow button to the right of the content and
 
355
          edit field, a pop-up content field will be shown, where the whole marked object
 
356
          may be viewed. The content of this pop-up field may be marked and copied to
 
357
          other windows; however, this field cannot be edited.</p>
 
358
        <image file="tv_row_marked_popup">
 
359
          <icaption>The Table Browser: the pop-up content field.</icaption>
 
360
        </image>
 
361
        <p>It shall be noted that the user may choose whether lists shall be shown as
 
362
          strings or lists; this is done via the <em>View</em> menu.
 
363
          </p>
 
364
        <p>A marked column may be subject to sorting, see below. When sorting is ordered,
 
365
          marks are removed at each polling of the table (because of the difficulties to
 
366
          keep track of a certain object, or element, in this case).</p>
 
367
      </section>
 
368
 
 
369
      <section>
 
370
        <title>How to Sort Table Data</title>
 
371
        <p>The image of the table may be sorted in rising or falling order, using any element as
 
372
          sorting key. The element desired is chosen by marking the corresponding column, and
 
373
          then choose (either via the <em>Options</em> menu, or via the toolbar buttons) any
 
374
          of the sorting options available, i.e., sorting in ascending or descending order.
 
375
          The colour of the column button will then change to gold, to indicate that this
 
376
          column is the basis for the sorting currently chosen.</p>
 
377
        <p>Should no column have been marked, when sorting is ordered, the first element in each
 
378
          object (i.e, tuple) will be used as sorting key if the table is an ETS table; the
 
379
          second element (i.e., the first field in the record) will be used if the table is a
 
380
          Mnesia table.</p>
 
381
        <p>Even columns with no elements in them may be subject to sorting. In this case the
 
382
          whole object is used as the sorting key.</p>
 
383
        <p>When sorting is ordered, new elements will be inserted according to the current
 
384
          sorting mode. When the sorting is interrupted (via the <em>No Sorting</em> option),
 
385
          the current image of the table keep the current order, but new elements will from
 
386
          now on once again be inserted at the end of the image of the table.</p>
 
387
      </section>
 
388
 
 
389
      <section>
 
390
        <title>How to Obtain Table Information</title>
 
391
        <p>Information about the actual table is obtained via the <em>File</em> menu (or via the
 
392
          <em>Table Info</em> toolbar button). The information is printed in a separate window,
 
393
          with similar pieces of information grouped together on "flap cards" of their own.
 
394
          By clicking on a flap, the information on the corresponding card is made visible.</p>
 
395
        <image file="info_window">
 
396
          <icaption>The Table Information Window, showing information about a Mnesia table.</icaption>
 
397
        </image>
 
398
        <p>The Table Information window may also be opened from the TV Main
 
399
          Window, by selecting a table and then choose the <em>Table Info</em> option
 
400
          in the <em>File</em> menu (or by double-clicking on the <em>Table Size</em>
 
401
          field.</p>
 
402
        <p>Note: The Table Information window will automatically be opened if the user tries
 
403
          to open an unreadable table, since this is the only information available in this
 
404
          case.</p>
 
405
      </section>
 
406
    </section>
 
407
 
 
408
    <section>
 
409
      <title>The Table Browser Menus</title>
 
410
      <p>The Table Browser offers the following menus:</p>
 
411
      <p></p>
 
412
 
 
413
      <section>
 
414
        <title>The File Menu</title>
 
415
        <taglist>
 
416
          <tag><em>Table Info</em></tag>
 
417
          <item>
 
418
            <p>Opens the Table Information window, which shows the available information
 
419
              about the current table. </p>
 
420
          </item>
 
421
          <tag><em>Close</em></tag>
 
422
          <item>
 
423
            <p>Closes the Table Browser window.</p>
 
424
          </item>
 
425
        </taglist>
 
426
      </section>
 
427
 
 
428
      <section>
 
429
        <title>The Edit Menu</title>
 
430
        <taglist>
 
431
          <tag><em>Edit Object...</em></tag>
 
432
          <item>
 
433
            <p>Opens the Record Editor. If an object is marked, it will be shown in
 
434
              the Record Editor.</p>
 
435
          </item>
 
436
          <tag><em>Delete Object</em></tag>
 
437
          <item>
 
438
            <p>Deletes a marked object.</p>
 
439
          </item>
 
440
        </taglist>
 
441
      </section>
 
442
 
 
443
      <section>
 
444
        <title>The View Menu</title>
 
445
        <taglist>
 
446
          <tag><em>Lists As Lists</em></tag>
 
447
          <item>
 
448
            <p>Causes lists in the table to be shwon as lists.</p>
 
449
          </item>
 
450
          <tag><em>Lists As Strings</em></tag>
 
451
          <item>
 
452
            <p>Causes lists in the table to be shown as strings.</p>
 
453
          </item>
 
454
        </taglist>
 
455
      </section>
 
456
 
 
457
      <section>
 
458
        <title>The Options Menu</title>
 
459
        <taglist>
 
460
          <tag><em>Poll Table</em></tag>
 
461
          <item>
 
462
            <p>An explicit order to poll the table, i.e., to scan the content.</p>
 
463
          </item>
 
464
          <tag><em>Poll Interval...</em></tag>
 
465
          <item>
 
466
            <p>Choose between manual and automatic polling. In the case of automatic
 
467
              polling, the user gets the opportunity to choose the polling interval.</p>
 
468
          </item>
 
469
          <tag><em>Search Object</em></tag>
 
470
          <item>
 
471
            <p>Enables search for objects containing (or consisting of) a specified
 
472
              Erlang term, or matching a regular pattern. The search result may be used
 
473
              for quick navigation in the table.</p>
 
474
          </item>
 
475
          <tag><em>Sort Ascending Order</em></tag>
 
476
          <item>
 
477
            <p>Shows the table content sorted in ascending (i.e., rising) order.
 
478
              New objects will be shown with correct placement as long the as the sorting
 
479
              is going on.              <br></br>
 
480
 
 
481
              Please note that it is only the image of the table that is affected,
 
482
              <em>not</em> the table itself!</p>
 
483
          </item>
 
484
          <tag><em>Sort Descending Order</em></tag>
 
485
          <item>
 
486
            <p>Shows the table content sorted in descending (i.e., falling) order.
 
487
              New objects will be shown with correct placement as long the as the
 
488
              sorting is going on.</p>
 
489
          </item>
 
490
          <tag><em>No Sorting</em></tag>
 
491
          <item>
 
492
            <p>Sorting mode is left. New objects will be shown last in the
 
493
              table. However, older objects will remain in the position they had when
 
494
              the sorting mode was left, i.e., their placement will not reflect their
 
495
              actual placement in the ETS/Mnesia table.</p>
 
496
          </item>
 
497
        </taglist>
 
498
      </section>
 
499
 
 
500
      <section>
 
501
        <title>The Help Menu</title>
 
502
        <taglist>
 
503
          <tag><em>Help</em></tag>
 
504
          <item>
 
505
            <p>Shows the help (about TV usage) that is available.
 
506
              (The help will be shown in the Netscape Internet browser, if available.)</p>
 
507
          </item>
 
508
          <tag><em>OTP Documentation</em></tag>
 
509
          <item>
 
510
            <p>Shows the Documentation about all OTP components that is available
 
511
              in the local installation of OTP.</p>
 
512
          </item>
 
513
        </taglist>
 
514
      </section>
 
515
    </section>
 
516
  </section>
 
517
 
 
518
  <section>
 
519
    <title>Tracing the Owner Process</title>
 
520
    <p>The process owning the table may easily be traced, by selecting either
 
521
      the <em>Owner Pid</em> or the <em>Owner Name</em> field, and then choosing
 
522
      the <em>Trace Process</em> option in the <em>File</em> menu.       <br></br>
 
523
 
 
524
      (It is also possible to double-click on any of these fields.)</p>
 
525
  </section>
 
526
 
 
527
  <section>
 
528
    <title>Creating a New Table</title>
 
529
    <p>A new table may easily be created using the <em>New Table window</em>.
 
530
      Currently only ETS tables may be created. Since ETS tables
 
531
      dies together with the parent process, a special process, registered
 
532
      as <em>tv_table_owner</em>, will be the owner of tables created this way.
 
533
      This process will not be affected by any termination of the TV,
 
534
      i.e., the ETS tables created will live on until they are explicitly killed.
 
535
      </p>
 
536
    <image file="tv_create_table">
 
537
      <icaption>The New Table Window, enabling easy creation of ETS tables.</icaption>
 
538
    </image>
 
539
    <p>Note: the <em>tv_table_owner</em> is local to each node, meaning
 
540
      that the creation of a table on a new node also will start such a process
 
541
      on that node. This way only the tables on a specific node dies, should that
 
542
      specific node crash.</p>
 
543
  </section>
 
544
 
 
545
  <section>
 
546
    <title>The TV Main Window Menus</title>
 
547
    <p>The Main Window offers the following menus:</p>
 
548
    <p></p>
 
549
 
 
550
    <section>
 
551
      <title>The File Menu</title>
 
552
      <taglist>
 
553
        <tag><em>Open Table</em></tag>
 
554
        <item>
 
555
          <p>Open a selected table in a new Table Browser.</p>
 
556
        </item>
 
557
        <tag><em>New Table</em></tag>
 
558
        <item>
 
559
          <p>Open the New Table window, enabling easy creation of ETS tables.</p>
 
560
        </item>
 
561
        <tag><em>Table Info</em></tag>
 
562
        <item>
 
563
          <p>Opens the Table Information window, showing the available
 
564
            information about a selected table. </p>
 
565
        </item>
 
566
        <tag><em>Nodes...</em></tag>
 
567
        <item>
 
568
          <p>Open the Connected Nodes window, enabling the user to view
 
569
            tables residing on remote nodes.</p>
 
570
        </item>
 
571
        <tag><em>Trace Process</em></tag>
 
572
        <item>Opens a trace window, where the process owning a selected table can
 
573
         be traced.</item>
 
574
        <tag><em>Exit</em></tag>
 
575
        <item>
 
576
          <p>Terminates the TV.</p>
 
577
        </item>
 
578
      </taglist>
 
579
    </section>
 
580
 
 
581
    <section>
 
582
      <title>The View Menu</title>
 
583
      <taglist>
 
584
        <tag><em>ETS Tables</em></tag>
 
585
        <item>
 
586
          <p>Shows ETS tables on the current node.</p>
 
587
        </item>
 
588
        <tag><em>Mnesia tables</em></tag>
 
589
        <item>
 
590
          <p>Shows Mnesia tables on the current node.</p>
 
591
        </item>
 
592
      </taglist>
 
593
    </section>
 
594
 
 
595
    <section>
 
596
      <title>The Options Menu</title>
 
597
      <taglist>
 
598
        <tag><em>Refresh</em></tag>
 
599
        <item>
 
600
          <p>An explicit order to once again check the current node for existing
 
601
            tables, and list them.</p>
 
602
        </item>
 
603
        <tag><em>Unreadable Tables</em></tag>
 
604
        <item>
 
605
          <p>Option to choose whether or not unreadable tables shall be shown.</p>
 
606
        </item>
 
607
        <tag><em>System Tables</em></tag>
 
608
        <item>
 
609
          <p>Option to choose whether or not system tables shall be shown.</p>
 
610
        </item>
 
611
        <tag><em>Sort by Name</em></tag>
 
612
        <item>
 
613
          <p>Shows the tables sorted by their names.</p>
 
614
        </item>
 
615
        <tag><em>Sort by Id</em></tag>
 
616
        <item>
 
617
          <p>Shows the tables sorted by their table identifiers.</p>
 
618
        </item>
 
619
        <tag><em>Sort by Owner PID</em></tag>
 
620
        <item>
 
621
          <p>Shows the tables sorted by the process identifiers of the owning
 
622
            processes.</p>
 
623
        </item>
 
624
        <tag><em>Sort by Owner Name</em></tag>
 
625
        <item>
 
626
          <p>Shows the tables sorted by the registered names of the owning processes.</p>
 
627
        </item>
 
628
        <tag><em>Error Messages in Haiku</em></tag>
 
629
        <item>
 
630
          <p>Option to choose whether or not error messages shall be shown
 
631
            in the Japanes poetry style called <em>Haiku</em>.</p>
 
632
        </item>
 
633
      </taglist>
 
634
    </section>
 
635
 
 
636
    <section>
 
637
      <title>The Help Menu</title>
 
638
      <taglist>
 
639
        <tag><em>Help</em></tag>
 
640
        <item>
 
641
          <p>Shows the help (about TV usage) that is available.
 
642
            (The help will be shown in the Netscape Internet browser, if available.)</p>
 
643
        </item>
 
644
        <tag><em>OTP Documentation</em></tag>
 
645
        <item>
 
646
          <p>Shows the Documentation about all OTP components that is available
 
647
            in the local installation of OTP.</p>
 
648
        </item>
 
649
      </taglist>
 
650
    </section>
 
651
  </section>
 
652
</chapter>
 
653
 
 
654