73 wxGridCellAttr* attr =
new wxGridCellAttr();
81 program.targetProcessor().busNavigator();
85 if (move >= nav.
count()) {
98 for (; index < instruction.
moveCount(); index++) {
99 if (moveBus == &instruction.
move(index).
bus()) {
109 if (executions > 0) {
111 int colour =
static_cast<int>(
112 5 * 255 * sin((executions / cycles) * 0.5 * 3.1415926));
113 if (colour > 255) colour = 255;
114 attr->SetBackgroundColour(
115 wxColour(255, 255 - colour, 255 - colour));
118 attr->SetBackgroundColour(wxColour(220, 220, 220));
#define assert(condition)
UInt32 InstructionAddress
find Finds info of the inner loops in the program
CycleCount ClockCycleCount
Alias for ClockCycleCount.
DisasmExecPercentageAttrProvider(const TracedSimulatorFrontend &simulator)
virtual wxGridCellAttr * moveCellAttr(InstructionAddress address, int move)
virtual ~DisasmExecPercentageAttrProvider()
const TracedSimulatorFrontend & simulator_
ClockCycleCount moveExecutionCount(std::size_t moveIndex) const
ClockCycleCount cycleCount() const
bool isProgramLoaded() const
const TTAProgram::Program & program() const
const ExecutableInstruction & executableInstructionAt(InstructionAddress address) const
ComponentType * item(int index) const
const TTAMachine::Bus & bus() const