일부 코드의 시간 소비 측정

기술노트 26891

아키텍처:

ARM

컴포넌트:

debugger

업데이트:

2018-02-28 오전 1:53

Introduction

It may normally be difficult to measure actual time consumption of a piece of code in a real target system. This normally requires full trace functionality. However, for Cortex-M processors, good measurements can be achieved by SWD/SWO/SWV.

Requirements

  • The IAR Embedded Workbench for ARM version you are using must be able to debug SWO output (requires version 5.30 or later).
  • Your debug probe must must be able to use the SWO protocol (for example I-Jet).

Solution

The link How to measure time with SWO.pdf is a .pdf file with a step-by-step description of how to do this.

Note

In later versions of IAR Embedded Workbench for ARM, more support for this has been added, and this topic is covered in Help > C-SPY Debugging Guide, chapter "Getting started using event logging".

 

All product names are trademarks or registered trademarks of their respective owners.

죄송하지만, 당사 사이트에서는 Internet Explorer를 지원하지 않습니다.보다 편안한 사이트를 위해 Chrome, Edge, Firefox 등과 같은 최신 브라우저를 사용해 주시길 부탁드립니다.