PerformanceCondition


This class creates conditions of performance measurement. [RH850][E1/E2/E20/Full-spec emulator]

[Type]

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

[Variable]

Variable

Description

StartAddress

Specify an address starting performance measurement.

StartData

Specify a data condition (number) of an address starting performance measurement.

This is valid only when the condition of performance measurement is data access.

StartPerformanceType

Specify the type which start performance measurement.

The types that can be specified are shown below.

Type

Description

PerformanceType.Execution

Start/end performance measurement at execution (default)

PerformanceType.Read

Start/end performance measurement at data read

PerformanceType.Write

Start/end performance measurement at data write

PerformanceType.Access

Start/end performance measurement at data access

EndAddress

Specify the type which end performance measurement.

EndData

Specify a data condition (number) of an address ending performance measurement.

This is valid only when the condition of performance measurement is data access.

EndPerformanceType

Specify the type which end performance measurement.

The types that can be specified are shown below.

Type

Description

PerformanceType.Execution

Start/end performance measurement at execution (default)

PerformanceType.Read

Start/end performance measurement at data read

PerformanceType.Write

Start/end performance measurement at data write

PerformanceType.Access

Start/end performance measurement at data access

PerformanceMode

Specify the mode for performance measurement.

The modes that can be specified are shown below.

Mode

Description

PerformanceMode.PassCount

Pass count

PerformanceMode.NewCount

New count

PerformanceMode.MinCount

Minium count

PerformanceMode.MaxCount

Maximum count

PerformanceMode.AddCount

Total count

PerformanceItem

Specify performance measurement items.

The items that can be specified are shown below.

Item

Description

PerformanceItem.FlashRomDataRequest

Flash ROM data request count

PerformanceItem.CpuFetchRequestHit

Response count for CPU issued instruction fetch request

PerformanceItem.CpuFetchRequest

CPU issued instruction fetch request count

PerformanceItem.DisableInterruptCycle

Interrupt disable cycle of DI/EI

PerformanceItem.NoInterruptCycle

Non-interrupt cycle

PerformanceItem.ClockCycle

Clock cycle

PerformanceItem.ALLInstructionSyncException

All instruction sync exception count

PerformanceItem.AllInstructionAsyncException

All instruction async exception count

PerformanceItem.FetchFELevelInterrupt

FE level interrupt count

PerformanceItem.FetchEILevelInterrupt

EI level interrupt count

PerformanceItem.AllFetchBranch

Branch instruction count

PerformanceItem.AllFetchCall

All instruction count

[Detailed description]

-

"PerformanceCondition" is in class format, and the condition of performance measurement is set in the variable.
In order to create a condition of performance measurement, create an instance, and set conditions for that instance.