함수 프로파일러가 모든 정보를 제공하는 것은 아닙니다.

기술노트 25884

아키텍처:

ARM

컴포넌트:

debugger

업데이트:

2021-07-15 오후 9:25

소개

경우에 따라 함수 프로파일러(Function Profiler)에 많은 정보가 부족한 것 같습니다. 대부분의 열이 비어 있습니다.

배경

함수 프로파일러 창이 SWO 채널에서 프리젠테이션 데이터를 빌드하면, 해당 데이터는 샘플에서 가져온 것입니다. 즉, 수집된 정보는 연속적인 정보가 아닙니다.

SWO 참고사항

SWO는 샘플링 프로세스(즉, 연속 정보는 출력되지 않음)라는 점에 유의해야 합니다. 따라서 각 SWO 데이터 패키지는 PC가 특정 주소에 있었던 정보일 뿐입니다. Function Profiler 창에 표시할 내용에 대한 기대치를 설정할 때 이 상황이 미치는 영향을 고려해야 합니다.
(실행된 명령에 대한 데이터를 수집하는 다른 기술은 ETM이라고 하며, 실행 된 각 명령에 대한 데이터를 제공하는 전체 추적입니다.)

Function Profiler Window 참고사항

SWO 기반 프로파일링 (ETM 기반 프로파일링과 다른점)을 기반으로 할 때 예상할 수 있습니다.

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.

참고사진

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

모든 제품 이름은 해당 소유자의 상표 또는 등록 상표입니다.

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