1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
4<head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta http-equiv="Content-Style-Type" content="text/css" />
7    <link rel="stylesheet" href="../../css/manpage.css" type="text/css" />
8</head>
9<body>
10
11<h1>dbg - instruments Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16<p>This demo is an example of using the instruments functionality for debug purpose.</p>
17</div>
18
19<h2>Required Environment</h2>
20
21<div class="section">
22<p>None.</p>
23</div>
24
25<h2>How to Use</h2>
26
27<div class="section">
28<p>None.</p>
29</div>
30
31<h2>Notes</h2>
32
33<div class="section">
34    <ul>
35<li>This demo does not display anything on the screen. Logs are all displayed in debug output.<BR>Therefore, operations under a release build cannot be confirmed.</li>
36    </ul></div>
37
38<h2>Execution Procedure</h2>
39
40<div class="section">
41<p>When the demo is executed, a log like the following is displayed in debug output.<br />The function addresses and tick values are not fixed values and will vary depending on the execution environment.</p>
42    <pre class="code">
43----instruments-1 start.
44 address of func1: 108a68
45 address of func2: 10091c
46 address of func3: 100948
47 address of funcA: 108a94
48---------------- log mode
49count: 8
50func: 00108a94 caller: 0010018c
51func: 00108a68 caller: 00100190
52func: 0010091c caller: 00108a80
53func: 00100948 caller: 00100934
54func: 00108a68 caller: 00100194
55func: 0010091c caller: 00108a80
56func: 00100948 caller: 00100934
57func: 00108a94 caller: 00100198
58
59---------------- log mode, record tick
60count: 8
61func: 00108a94 in  caller: 00100204  tick: 1a814cc24
62func: 00108a94 out                   tick: 1a814d02c
63func: 00108a68 in  caller: 00100208  tick: 1a814d370
64func: 0010091c in  caller: 00108a80  tick: 1a814d5d4
65func: 00100948 in  caller: 00100934  tick: 1a814d85e
66func: 00100948 out                   tick: 1a814db44
67func: 0010091c out                   tick: 1a814ddae
68func: 00108a68 out                   tick: 1a814e020
69func: 00108a68 in  caller: 0010020c  tick: 1a814e28e
70func: 0010091c in  caller: 00108a80  tick: 1a814e4f0
71func: 00100948 in  caller: 00100934  tick: 1a814e74c
72func: 00100948 out                   tick: 1a814e9bc
73func: 0010091c out                   tick: 1a814ec24
74func: 00108a68 out                   tick: 1a814ee96
75func: 00108a94 in  caller: 00100210  tick: 1a814f102
76func: 00108a94 out                   tick: 1a814f35c
77
78func: 00108a94  count:       2 (       2) sum:       6.09 us (ave:       3.05 us)
79func: 00108a68  count:       2 (       2) sum:      23.60 us (ave:      11.80 us)
80func: 0010091c  count:       2 (       2) sum:      14.37 us (ave:       7.19 us)
81func: 00100948  count:       2 (       2) sum:       5.09 us (ave:       2.55 us)
82
83---------------- log mode, ring buffer
84count: 8
85func: 00108a94 caller: 00100274
86func: 00108a68 caller: 00100278
87func: 0010091c caller: 00108a80
88func: 00100948 caller: 00100934
89
90func: 00108a94  count:       1 (       0) sum:       0.00 us (ave:       0.00 us)
91func: 00108a68  count:       1 (       0) sum:       0.00 us (ave:       0.00 us)
92func: 0010091c  count:       1 (       0) sum:       0.00 us (ave:       0.00 us)
93func: 00100948  count:       1 (       0) sum:       0.00 us (ave:       0.00 us)
94
95---------------- log mode, record tick, ring buffer
96count: 8
97func: 00108a68 out                   tick: 1bb0f5a22
98func: 00108a94 in  caller: 001002f0  tick: 1bb0f5c98
99func: 00108a94 out                   tick: 1bb0f5f08
100
101func: 00108a94  count:       1 (       1) sum:       2.33 us (ave:       2.33 us)
102
103---------------- stack mode
104count: 3
105func: 00108a68 caller: 00100360
106func: 0010091c caller: 00108a80
107func: 00100948 caller: 00100934
108
109---------------- stack mode, record tick
110count: 3
111func: 00108a68 in  caller: 001003ac  tick: 1c30ed6ec
112func: 0010091c in  caller: 00108a80  tick: 1c30ed9d6
113func: 00100948 in  caller: 00100934  tick: 1c30edc78
114
115----test-1 end.
116    </pre>
117
118There is no shutdown procedure. Stop execution in a timely manner.
119
120</div>
121
122<h2>Revision History</h2>
123
124<div class="section">
125    <dl class="history">
126        <dt>2011/08/03</dt>
127<dd>Initial version.</dd>
128    </dl>
129</div>
130
131
132<hr><p>CONFIDENTIAL</p></body>
133</html>
134