このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
コード実行時間プロファイリング
コード セクションの実行時間プロファイルの表示と解析
実行時間プロファイリングを使用して、次を行うことができます。
生成されたコードがターゲット ハードウェアのリアルタイム要件を満たしているかどうかを決定する。
パフォーマンスの改善が必要なコード セクションを決定する。
ソフトウェアインザループ (SIL) シミュレーション、プロセッサインザループ (PIL) シミュレーション、または XCP ベースのエクスターナル モード シミュレーションを構成して、生成コードの実行時メトリクスを生成できます。コード プロファイル アナライザー、コード実行レポート、またはシミュレーション データ インスペクターを使用して実行時間のメトリクスを解析します。
アプリ
コード プロファイル アナライザー | 生成コードの実行時間とスタック使用量のプロファイルを解析 (R2023a 以降) |
クラス
オブジェクト
関数
トピック
ワークフローの概要
- 生成コードの実行時間プロファイリング
実行時間プロファイリングを使用して、コードの実行速度を観察する。 - 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. - コード実行データの解析
ライン コマンドを使用して実行時間データを解析。 - 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. - コマンド ラインからの実行時間プロファイリング
ライン コマンドを使用して、実行時間プロファイリングを構成し、レポートを表示する。 - 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.