author | Jussi Ryoma <ext-jussi.s.ryoma@nokia.com> |
Tue, 24 Aug 2010 14:01:48 +0300 | |
changeset 16 | 72f198be1c1d |
parent 7 | 8e12a575a9b5 |
permissions | -rw-r--r-- |
7
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
2 |
<html> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
3 |
<head> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
4 |
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
5 |
<title>Cell Type</title> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
6 |
<link href="../../book.css" type="text/css" rel="stylesheet"> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
7 |
</head> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
8 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
9 |
<body> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
10 |
<h2>Cell Type</h2> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
11 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
12 |
<p>The Cell Type view is a low-level view of the layout of the heap. It is |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
13 |
useful for getting a quick feel for fragmentation, for example, but the other |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
14 |
views are more commonly used.</p> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
15 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
16 |
<p><img src="../images/ha_heap_view.png"></p> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
17 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
18 |
<p>The Cell Type view breaks down the heap into word-sized (4 byte) blocks, |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
19 |
each represented by a coloured square. The following colour-coding is applied |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
20 |
to each related group of words for easy identification:</p> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
21 |
<ul> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
22 |
<li><strong>White</strong>: Contains a header word, used by the heap |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
23 |
allocator for book-keeping.</li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
24 |
<li><strong>Red/Orange</strong>: Contains the data of an allocated object |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
25 |
whose class has been identified via its vtable pointer.</li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
26 |
<li><strong>Yellow</strong>: Contains the data of a heap-allocated |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
27 |
descriptor.</li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
28 |
<li><strong>Purple/Brown</strong>: Contains the data of an allocated object |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
29 |
whose type cannot be identified, usually a raw data buffer.</li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
30 |
<li><strong>Blue</strong>: A free area of the heap that does not currently |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
31 |
contain an allocated object.</li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
32 |
</ul> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
33 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
34 |
<p>The colour fade between the start and end of a group of words makes it |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
35 |
easier for you to pick out the beginning and the end of cells.</p> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
36 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
37 |
<p>If you highlight a cell by hovering the mouse over it (the whole of the |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
38 |
associated cell is highlighted), you get a pop-up summary of its contents as a |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
39 |
tool-tip. You can also right-click to bring up a context menu of options.</p> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
40 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
41 |
<p>If you click on a cell to select it, or navigate to it using the cursor keys |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
42 |
or the <strong>Previous / Next</strong> buttons, or search for it by address in |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
43 |
the <strong>Search</strong> box, then that cell will be selected and you will |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
44 |
get a summary in the <strong>Information</strong> box below.</p> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
45 |
<ul> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
46 |
<li><strong>Address</strong> is the start of the cell, including book-keeping |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
47 |
info.</li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
48 |
<li><strong>Payload</strong> is the address range of the actual data stored |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
49 |
in the cell.</li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
50 |
<li><strong>Nesting level</strong> and <strong>Allocation number</strong> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
51 |
info for a cell are only maintained by the debug (UDEB) version of RHeap, |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
52 |
and rarely used as a result.</li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
53 |
</ul> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
54 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
55 |
<p>If you double-click on a cell, a floating memory inspector window will be |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
56 |
displayed, showing you the cell contents. Cells that contain references to |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
57 |
other memory locations are highlighted. Double-clicking a highlighted value |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
58 |
jumps to the referenced location.</p> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
59 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
60 |
<h5>Related references</h5> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
61 |
<ul> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
62 |
<li><a href="object_type.htm">Object Type</a></li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
63 |
<li><a href="parent_binary.htm">Parent Binary</a></li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
64 |
<li><a href="cell_lenght.htm">Cell Lenght</a></li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
65 |
<li><a href="isolation.htm">Isolation and Pervasiveness</a></li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
66 |
<li><a href="HA_data_analysis.htm">Data analysis with Heap Analyser</a></li> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
67 |
</ul> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
68 |
|
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
69 |
<div id="footer"> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
70 |
Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies). All rights |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
71 |
reserved. License: <a |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
72 |
href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.</div> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
73 |
</body> |
8e12a575a9b5
MemSpy Carbide Extension 1.6.0
Matti Laitinen <matti.t.laitinen@nokia.com>
parents:
diff
changeset
|
74 |
</html> |