dbg - instruments Demo

Description

This demo is an example of using the instruments functionality for debug purpose.

Required Environment

None.

How to Use

None.

Notes

Execution Procedure

When the demo is executed, a log like the following is displayed in debug output.
The function addresses and tick values are not fixed values and will vary depending on the execution environment.

----instruments-1 start.
 address of func1: 108a68
 address of func2: 10091c
 address of func3: 100948
 address of funcA: 108a94
---------------- log mode
count: 8
func: 00108a94 caller: 0010018c
func: 00108a68 caller: 00100190
func: 0010091c caller: 00108a80
func: 00100948 caller: 00100934
func: 00108a68 caller: 00100194
func: 0010091c caller: 00108a80
func: 00100948 caller: 00100934
func: 00108a94 caller: 00100198

---------------- log mode, record tick
count: 8
func: 00108a94 in  caller: 00100204  tick: 1a814cc24
func: 00108a94 out                   tick: 1a814d02c
func: 00108a68 in  caller: 00100208  tick: 1a814d370
func: 0010091c in  caller: 00108a80  tick: 1a814d5d4
func: 00100948 in  caller: 00100934  tick: 1a814d85e
func: 00100948 out                   tick: 1a814db44
func: 0010091c out                   tick: 1a814ddae
func: 00108a68 out                   tick: 1a814e020
func: 00108a68 in  caller: 0010020c  tick: 1a814e28e
func: 0010091c in  caller: 00108a80  tick: 1a814e4f0
func: 00100948 in  caller: 00100934  tick: 1a814e74c
func: 00100948 out                   tick: 1a814e9bc
func: 0010091c out                   tick: 1a814ec24
func: 00108a68 out                   tick: 1a814ee96
func: 00108a94 in  caller: 00100210  tick: 1a814f102
func: 00108a94 out                   tick: 1a814f35c

func: 00108a94  count:       2 (       2) sum:       6.09 us (ave:       3.05 us)
func: 00108a68  count:       2 (       2) sum:      23.60 us (ave:      11.80 us)
func: 0010091c  count:       2 (       2) sum:      14.37 us (ave:       7.19 us)
func: 00100948  count:       2 (       2) sum:       5.09 us (ave:       2.55 us)

---------------- log mode, ring buffer
count: 8
func: 00108a94 caller: 00100274
func: 00108a68 caller: 00100278
func: 0010091c caller: 00108a80
func: 00100948 caller: 00100934

func: 00108a94  count:       1 (       0) sum:       0.00 us (ave:       0.00 us)
func: 00108a68  count:       1 (       0) sum:       0.00 us (ave:       0.00 us)
func: 0010091c  count:       1 (       0) sum:       0.00 us (ave:       0.00 us)
func: 00100948  count:       1 (       0) sum:       0.00 us (ave:       0.00 us)

---------------- log mode, record tick, ring buffer
count: 8
func: 00108a68 out                   tick: 1bb0f5a22
func: 00108a94 in  caller: 001002f0  tick: 1bb0f5c98
func: 00108a94 out                   tick: 1bb0f5f08

func: 00108a94  count:       1 (       1) sum:       2.33 us (ave:       2.33 us)

---------------- stack mode
count: 3
func: 00108a68 caller: 00100360
func: 0010091c caller: 00108a80
func: 00100948 caller: 00100934

---------------- stack mode, record tick
count: 3
func: 00108a68 in  caller: 001003ac  tick: 1c30ed6ec
func: 0010091c in  caller: 00108a80  tick: 1c30ed9d6
func: 00100948 in  caller: 00100934  tick: 1c30edc78

----test-1 end.
    
There is no shutdown procedure. Stop execution in a timely manner.

Revision History

2011/08/03
Initial version.

CONFIDENTIAL