code profiling

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

code profiling

856件の閲覧回数
devanantony
Contributor I

hi,

 

anyone have any idea on profiling of driver code means?

how its done?

is profiling done using some commands in trace32 and nexus debugger..??

ラベル(1)
0 件の賞賛
返信
1 返信

698件の閲覧回数
Lundin
Senior Contributor IV

Profiling typically involves measuring execution time and memory consumption in runtime (dynamically). In case of driver code you would most likely only be interested in execution time.

 

I'm far from an expert of JTAG, but I don't believe you can get accurate realtime trace with just a simple JTAG interface, you would need a full in-circuit emulator for that. Since you seem to be using Lauterbach, check out their FIRE emulator.

 

But... the best way to measure execution time on embedded systems is to set an I/O pin before and after the code you want to measure. Measure the time between pin toggle with an oscilloscope. You won't be getting much more accurate timing than that. Also, if you are attempting to develop embedded systems without an oscilloscope, you are desperately in need of one.

0 件の賞賛
返信