모든 정보가 제공되지 않는 Function Profiler

기술노트 25884

아키텍처:

ARM

컴포넌트:

debugger

업데이트:

2018-02-28 오전 1:55

Introduction

In some cases, the Function Profiler seems to lack a lot of information. Most columns are empty.

Background

When the Function Profiler Window build its' presentation data from the SWO channel, that data are from samples. That is, it is not continuous information that is collected.

Comments on SWO

It must be noted is that SWO is a sampling process (that is, continuous information is not outputted). So each SWO data package is just the information that the PC was at a specific address at a moment. The implication of this situation must be taken into account when setting expectations on what to get presented in the Function Profiler Window.
(The other technology for collecting data on executed instructions is called ETM, which is a full trace that will supply data for each executed instruction.)

Comments on the Function Profiler Window

This can be expected when basing profiling on SWO (and what is different from ETM based profiling).

Column With SWO (sampled) data With ETM (continious) data
Calls This column is empty as the debugger samples values of PC. With samples the debugger do not 'know' if a function has been called at non-sampled time. With ETM trace the situation is different as the debugger get information of every call to the function.
Flat time The number of samples that was collected when the sample was collected when PC was within this function. The time in cycles spent within this function.
Flat time (%) The number of samples located in this function expressed as a percentage of the total number of samples. Flat time in cycles expressed as a percentage of the total time.
Acc time Not used The time in cycles spent in this function and everything called by this function.
Acc time (%) Not used Accumulated time in cycles expressed as a percentage of the total time.

Picture with comments

Commented picture from the Function Profiler Window (when basing on SWO data):

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

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