PerformanceCondition


パフォーマンス計測の条件を作成します。【RH850】【E1/E2/E20/Full-spec emulator】

[型]

class PerformanceCondition:
        StartAddress = ""
        StartData = ""
        StartPerformanceType = PerformanceType.Execution
        EndAddress = ""
        EndData = ""
        EndPerformanceType = PerformanceType.Execution
        PerformanceMode = PerformanceMode.MaxCount
        PerformanceItem = PerformanceItem.AllFetchCall

[変数]

変数

説明

StartAddress

パフォーマンス計測を開始するアドレスを指定します。

StartData

パフォーマンス計測を開始するアドレスのデータ条件(数値)を指定します。

パフォーマンス計測の条件がデータ・アクセス系の場合のみ有効です。

StartPerformanceType

パフォーマンス計測を開始する種類を指定します。

指定可能な種類を以下に示します。

種類

説明

PerformanceType.Execution

実行時にパフォーマンス計測の開始/終了を行います(デフォルト)。

PerformanceType.Read

データ・リード時にパフォーマンス計測の開始/終了を行います。

PerformanceType.Write

データ・ライト時にパフォーマンス計測の開始/終了を行います。

PerformanceType.Access

データ・アクセス時にパフォーマンス計測の開始/終了を行います。

EndAddress

パフォーマンス計測を終了するアドレスを指定します。

EndData

パフォーマンス計測を終了するアドレスのデータ条件(数値)を指定します。

パフォーマンス計測の条件がデータ・アクセス系の場合のみ有効です。

EndPerformanceType

パフォーマンス計測を終了する種類を指定します。

指定可能な種類を以下に示します。

種類

説明

PerformanceType.Execution

実行時にパフォーマンス計測の開始/終了を行います(デフォルト)。

PerformanceType.Read

データ・リード時にパフォーマンス計測の開始/終了を行います。

PerformanceType.Write

データ・ライト時にパフォーマンス計測の開始/終了を行います。

PerformanceType.Access

データ・アクセス時にパフォーマンス計測の開始/終了を行います。

PerformanceMode

パフォーマンス計測を行うモードを指定します。

指定可能なモードを以下に示します。

モード

説明

PerformanceMode.PassCount

パス・カウント

PerformanceMode.NewCount

最新カウント

PerformanceMode.MinCount

最小カウント

PerformanceMode.MaxCount

最大カウント

PerformanceMode.AddCount

積算カウント

PerformanceItem

パフォーマンス計測を行う項目を指定します。

指定可能な項目を以下に示します。

項目

説明

PerformanceItem.FlashRomDataRequest

Flash ROMデータリクエスト数

PerformanceItem.CpuFetchRequestHit

CPU発行命令フェッチリクエスト要求に対して命令Cacheにてノンウェイトでレスポンスした数

PerformanceItem.CpuFetchRequest

CPU発行命令フェッチリクエスト数

PerformanceItem.DisableInterruptCycle

DI/EIによる割り込み禁止時間

PerformanceItem.NoInterruptCycle

割り込み処理中ではない時間

PerformanceItem.ClockCycle

クロックサイクル数

PerformanceItem.ALLInstructionSyncException

全命令同期例外受付回数

PerformanceItem.AllInstructionAsyncException

全命令非同期例外受付回数

PerformanceItem.FetchFELevelInterrupt

FEレベル割り込み受付回数

PerformanceItem.FetchEILevelInterrupt

EIレベル割り込み受付回数

PerformanceItem.AllFetchBranch

分岐命令実行回数

PerformanceItem.AllFetchCall

全命令実行回数

[詳細説明]

-

PerformanceConditionはclass形式になっており,パフォーマンス計測の条件を変数に指定します。
パフォーマンス計測の条件を作成するには,インスタンスを生成し,生成したインスタンスに対して条件を設定します。