Main Content

このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。

パフォーマンス

実行時間プロファイリング、メモリ使用量のプロファイリング、最適化済みコード

量産コードを生成する準備が整ったら、コンフィギュレーション オプションと高度な最適化を使用してパフォーマンスを向上させます。MATLAB® Coder™ 製品ドキュメンテーションに記載されているオプションと最適化を使用できます。Embedded Coder® では、実行時間プロファイリングとメモリ使用量のプロファイリングを使用してパフォーマンスを解析できます。

実行時間プロファイリングを使用して、次を行うことができます。

  • 生成されたコードがハードウェアのリアルタイム要件を満たしているかどうかを決定する。

  • パフォーマンスの改善が必要なコード セクションを決定する。

静的コード メトリクス レポートには、ファイル内のメトリクス、グローバル変数、関数が含まれます。静的コード メトリクス レポートにより、パフォーマンスに影響を与えているグローバル変数と関数呼び出しパスを特定できます。生成されたコードの実行に必要なスタック メモリのサイズを決定するために、スタック使用量プロファイルを生成するソフトウェアインザループ (SIL) とプロセッサインザループ (PIL) 実行を実行できます。

関数

すべて展開する

ExecutionTimeInSecondsGet execution time in seconds for profiled section of code (MATLAB code generation)
ExecutionTimeInTicksGet execution times in timer ticks for profiled section of code (MATLAB code generation)
getCoderExecutionProfileExtract execution-time profile for code generated from MATLAB function (MATLAB code generation)
NameGet name of profiled code section (MATLAB code generation)
NumberGet number that uniquely identifies profiled code section (MATLAB code generation)
NumCallsTotal number of calls to profiled code section (MATLAB code generation)
reportOpen code execution profiling report and specify display of time measurements (MATLAB code generation)
scheduleVisualize task scheduling (MATLAB code generation)
SectionsGet array of coder.profile.ExecutionTimeSection objects for profiled code sections (MATLAB code generation)
SelfTimeInTicksGet number of timer ticks recorded for profiled code section, excluding time spent in child functions (MATLAB code generation)
TimeTime over which code section execution time measurements are made (MATLAB code generation)
TimerTicksPerSecondGet and set number of timer ticks per second (MATLAB code generation)
TotalExecutionTimeInTicksGet total number of timer ticks recorded for profiled code section (MATLAB code generation)
TotalSelfTimeInTicksGet total number of timer ticks recorded for profiled code section, excluding time spent in child functions (MATLAB code generation)
TotalTurnaroundTimeInTicksGet total number of timer ticks between start and finish of the profiled code section over the entire execution. (MATLAB code generation)
TurnaroundTimeInTicksGet number of timer ticks between start and finish of the profiled code section (MATLAB code generation)
MaximumExecutionTimeCallNumGet the call number at which maximum number of timer ticks occurred (MATLAB code generation)
MaximumExecutionTimeInTicksGet maximum number of timer ticks for single invocation of profiled code section (MATLAB code generation)
MaximumSelfTimeCallNumGet the call number at which the maximum number of timer ticks occurred, excluding time spent in child functions (MATLAB code generation)
MaximumSelfTimeInTicksGet the maximum number of timer ticks recorded for profiled code section, excluding time spent in child functions (MATLAB code generation)
MaximumTurnaroundTimeCallNumGet call number for the code section invocation with the maximum number of timer ticks between the start and the finish (MATLAB code generation)
MaximumTurnaroundTimeInTicksGet maximum number of timer ticks between start and finish of a single invocation of profiled code section (MATLAB code generation)

オブジェクト

すべて展開する

coder.profile.StackDriverSpecify driver to obtain stack usage data from target hardware

トピック

実行時間プロファイリング

メモリ使用量のプロファイリング

実行速度