이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
성능
실행 시간 프로파일링, 메모리 사용량 프로파일링, 최적화된 코드
프로덕션 코드를 생성할 준비가 되면 성능을 개선하기 위해 구성 옵션과 고급 최적화를 활용하십시오. MATLAB® Coder™ 제품 설명서에 설명된 옵션과 최적화를 사용할 수 있습니다. Embedded Coder®를 사용하여 실행 시간 프로파일링과 메모리 사용량 프로파일링을 통해 성능을 분석할 수도 있습니다.
실행 시간 프로파일링을 사용하여 다음을 수행할 수 있습니다.
생성된 코드가 하드웨어의 실시간 요구 사항을 충족하는지 확인합니다.
성능 향상이 필요한 코드 섹션을 확인합니다.
정적 코드 메트릭 리포트에는 파일, 전역 변수 및 함수에 대한 메트릭이 포함됩니다. 정적 코드 메트릭 리포트는 어떤 전역 변수와 함수 호출 경로가 성능에 영향을 미치는지 확인하는 데 도움이 됩니다. 생성된 코드를 실행하는 데 필요한 스택 메모리 크기를 확인하기 위해 스택 사용 프로파일을 생성하는 SIL(Software-in-the-Loop) 및 PIL(Processor-in-the-Loop) 실행을 실행할 수 있습니다.
앱
코드 프로파일 분석기 | Analyze execution-time and stack usage profiles for generated code (R2023a 이후) |
함수
객체
도움말 항목
실행 시간 프로파일링
- Execution Time Profiling for SIL and PIL
Why measure execution times for code generated from entry-point functions. - Generate Execution Time Profile
Enable execution-time profiling for a software-in-the-loop (SIL) or processor-in-the-loop (PIL) execution. - View Execution Times
Open the code execution profiling report generated by a SIL or PIL execution. - Analyze Execution Time Data
Use line commands to analyze execution-time measurements from a SIL or PIL execution. - Investigate Execution-Time Issues Using PMU Metrics
Analyze code execution metrics from the Performance Monitoring Unit of the hardware.
메모리 사용량 프로파일링
- Generating a Static Code Metrics Report for Code Generated from MATLAB Code
Create and explore an example static code metrics report. - Static Code Metrics
The code generator performs static analysis of the generated C or C++ code and provides these metrics in the static code metrics report in the code generation report. - Stack Usage Profiling for Code Generated From MATLAB Code
Determine size of stack memory that is required to run generated code. - Preserve Unused Class Properties in Generated C/C++ Code
Preserve unused class properties or structure fields in the generated C/C++ code.
실행 속도
- Simplify Multiply Operations for Array Indexing in Loops
Replace multiply operations with add operations in array indexing in loops in C/C++ code generated from MATLAB code. - Generate SIMD Code from MATLAB Functions for Intel Platforms
Improve the execution speed of the generated code using Intel® SSE and Intel AVX technology. - Generate SIMD Code from MATLAB Functions for Apple silicon Platforms
Improve the execution speed of the generated code for Apple silicon platforms using ARM® Neon technology.