This function sets performance measurement. [RH850][E1/E2/E20/Full-spec emulator]
[Specification format]
debugger.Performance.Set(PerformanceCondition)
|
[Argument(s)]
|
|
|
|
PerformanceCondition
|
Specify a condition of performance measurement.
See the PerformanceCondition class for a condition of performance measurement.
|
[Return value]
If performance measurement was set successfully: Performance measurement event number
If there was an error when setting performance measurement: None
[Detailed description]
- | This function sets performance measurement according to the contents specified with PerformanceCondition. |
[Example of use]
>>>pf = PerformanceCondition()
>>>pf.StartAddress = 0x1000
>>>pf.EndAddress = 0xffe000
>>>pf.EndData = 0x10
>>>pf.EndPerformanceType = PerformanceType.Read
>>>pf.PerformanceMode = PerformanceMode.MaxCount
>>>pf.PerformanceItem = PerformanceItem.AllFetchBranch
>>>ps = debugger.Performance.Set(pf)
1
>>>print ps
1
>>>
|