Updates the execution count list.
87 {
88
89 list_->DeleteAllItems();
90
91 DisasmTopCountAttrProvider::ExecutionCountTable::const_iterator iter =
93
95
97
98 pos--;
99 unsigned count = (*iter).first;
101 (*iter).second;
102
103 DisasmTopCountAttrProvider::AddressSet::const_iterator citer =
104 addressSet.begin();
105
106
107
108 while (citer != addressSet.end()) {
109 unsigned rangeFirst = *citer;
110 unsigned rangeLast = *citer;
111 while (citer != addressSet.end() && (*citer == rangeLast)) {
112 citer++;
113 rangeLast++;
114 }
115 rangeLast--;
116
117
119 if (rangeFirst != rangeLast) {
120 range.Append(_T(" - "));
122 }
123
125 list_->SetItem(0, 1, range);
126 list_->SetItemData(0, rangeFirst);
127
128
129
130 if (pos < 5) {
131 list_->SetItemBackgroundColour(
132 0, wxColour(255 , pos * 50, 0));
133 } else {
134 list_->SetItemBackgroundColour(
135 0, wxColour(255 - (2 * (pos * 25 - 128)), 255, 0));
136 }
137
138
139 if (citer != addressSet.end()) {
140 citer++;
141 }
142 }
143 }
144}
std::set< InstructionAddress > AddressSet
static wxString toWxString(const std::string &source)