이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
코드 실행 시간 프로파일링
코드 섹션의 실행 시간 프로파일을 확인하고 분석
실행 시간 프로파일링을 사용하여 다음을 수행할 수 있습니다.
생성된 코드가 타깃 하드웨어의 실시간 요구 사항을 충족하는지 확인합니다.
성능 향상이 필요한 코드 섹션을 확인합니다.
생성된 코드에 대한 실행 시간 메트릭을 생성하기 위해 SIL(Software-in-the-Loop), PIL(Processor-in-the-Loop) 또는 XCP 기반 외부 모드 시뮬레이션을 구성할 수 있습니다. 코드 프로파일 분석기, 코드 실행 리포트 또는 시뮬레이션 데이터 인스펙터를 사용하여 실행 시간 메트릭을 분석합니다.
앱
코드 프로파일 분석기 | Analyze execution-time and stack usage profiles for generated code (R2023a 이후) |
클래스
객체
함수
도움말 항목
워크플로 개요
- Execution-Time Profiling for Generated Code
Use execution-time profiling to observe code execution speed. - Aggregate Execution-Time Profiles to Identify Worst Execution
Identify and analyze worst task execution.
프로파일링 구성 및 결과
- Create Execution-Time Profile for Generated Code
Configure SIL, PIL, or XCP external mode simulation to produce execution-time metrics for generated code. - View and Compare Code Execution Times
Observe code execution times with Simulation Data Inspector and Code Profile Analyzer. - Code Execution Profiling Report
Examine report of execution-time metrics for profiled code sections. - Analyze Code Execution Data
Use line commands to analyze execution-time data. - Generate Profiles Using PMU Metrics
Analyze code execution metrics from the Performance Monitoring Unit of the hardware. - Validate Task-to-CPU Mapping
Map tasks to CPUs and validate mapping. - Visualize Task Scheduling in XCP External Mode Simulation
Run an XCP external mode simulation that displays task activity and diagnostics and CPU activity and utilization. - Reduce Bandwidth Usage During Code Execution Profiling
Capture main profiling metrics and display absolute time to reduce communication channel bandwidth usage. - Execution-Time Profiling From Command Line
Use line commands to configure execution-time profiling and view report. - Remove Instrumentation Overheads from Execution Time Measurements
Improve execution-time profiling on deterministic hardware. - Perform Instrumentation-Free Profiling Using Hardware Execution Tracers
Parse execution-time metrics from code execution trace produced by target hardware. - Tips and Limitations
A list of tips and known limitations.