|
OpenASIP 2.2
|
#include <DisasmTopCountAttrProvider.hh>


Public Types | |
| typedef std::set< InstructionAddress > | AddressSet |
| typedef std::map< ClockCycleCount, AddressSet > | ExecutionCountTable |
Public Member Functions | |
| DisasmTopCountAttrProvider (TracedSimulatorFrontend &simulator, size_t topCounts) | |
| virtual | ~DisasmTopCountAttrProvider () |
| virtual void | update () |
| virtual wxGridCellAttr * | moveCellAttr (InstructionAddress address, int move) |
Public Member Functions inherited from ProximDisasmAttrProvider | |
| ProximDisasmAttrProvider () | |
| virtual | ~ProximDisasmAttrProvider () |
Private Member Functions | |
| void | updateTopCountTable () |
| void | addToTopCountTable (InstructionAddress address, ClockCycleCount execCount) |
| void | createExecCountWindow () |
| wxColour | bgColour (ClockCycleCount execCount) |
Private Attributes | |
| ExecutionCountTable | topCountTable_ |
| Top execution counts and set of instruction addresses with each count. | |
| TracedSimulatorFrontend & | simulator_ |
| Simulator frontend used for accessing the instructions and exec counts. | |
| size_t | topCounts_ |
| Number of top execution counts in the top execution count list. | |
| DisasmExecCountFrame * | listWin_ |
Attribute provider for disassembly window grid.
Highlights instructions with top execution counts with background colour.
Definition at line 53 of file DisasmTopCountAttrProvider.hh.
| typedef std::set<InstructionAddress> DisasmTopCountAttrProvider::AddressSet |
Definition at line 62 of file DisasmTopCountAttrProvider.hh.
| typedef std::map<ClockCycleCount, AddressSet> DisasmTopCountAttrProvider::ExecutionCountTable |
Definition at line 63 of file DisasmTopCountAttrProvider.hh.
| DisasmTopCountAttrProvider::DisasmTopCountAttrProvider | ( | TracedSimulatorFrontend & | simulator, |
| size_t | topCounts | ||
| ) |
The Constructor.
| simulator | Simulator frontend for accessing instructions and execution counts. |
| topCounts | Number of top execution counts to list and highlight. |
Definition at line 170 of file DisasmTopCountAttrProvider.cc.
References ProximToolbox::disassemblyWindow(), listWin_, and topCountTable_.

|
virtual |
|
private |
Adds an instruction to the execution top count list if the count is high enough for the list.
| address | Address of the instruction. |
| execCount | Execution count of the instruction. |
Definition at line 256 of file DisasmTopCountAttrProvider.cc.
References topCounts_, and topCountTable_.
Referenced by updateTopCountTable().
|
private |
Returns background highlight colour for an instruction with the given exec count.
| execCount | Execution count of the instruciton. |
Definition at line 285 of file DisasmTopCountAttrProvider.cc.
References topCounts_, and topCountTable_.
Referenced by moveCellAttr().
|
private |
|
virtual |
Returns grid cell attributes for cell with given move.
| address | Address of the cell's instruction. |
Implements ProximDisasmAttrProvider.
Definition at line 207 of file DisasmTopCountAttrProvider.cc.
References bgColour(), SimulatorFrontend::executableInstructionAt(), ExecutableInstruction::executionCount(), and simulator_.

|
virtual |
Updates the list of top execution counts when simulation stops.
Reimplemented from ProximDisasmAttrProvider.
Definition at line 195 of file DisasmTopCountAttrProvider.cc.
References listWin_, DisasmExecCountFrame::update(), and updateTopCountTable().
Referenced by HighlightTopExecCountsCmd::Do().

|
private |
Updates the list of top execution counts.
Definition at line 228 of file DisasmTopCountAttrProvider.cc.
References TTAProgram::Instruction::address(), addToTopCountTable(), SimulatorFrontend::executableInstructionAt(), ExecutableInstruction::executionCount(), TTAProgram::NullInstruction::instance(), TTAProgram::Address::location(), program, SimulatorFrontend::program(), simulator_, and topCountTable_.
Referenced by update().

|
private |
Definition at line 78 of file DisasmTopCountAttrProvider.hh.
Referenced by DisasmTopCountAttrProvider(), update(), and ~DisasmTopCountAttrProvider().
|
private |
Simulator frontend used for accessing the instructions and exec counts.
Definition at line 75 of file DisasmTopCountAttrProvider.hh.
Referenced by moveCellAttr(), and updateTopCountTable().
|
private |
Number of top execution counts in the top execution count list.
Definition at line 77 of file DisasmTopCountAttrProvider.hh.
Referenced by addToTopCountTable(), and bgColour().
|
private |
Top execution counts and set of instruction addresses with each count.
Definition at line 73 of file DisasmTopCountAttrProvider.hh.
Referenced by addToTopCountTable(), bgColour(), DisasmTopCountAttrProvider(), and updateTopCountTable().