----------------------------------------------------------------------------
| 8110 | } |
| 8111 | //---------------------------------------------------------------------------- |
| 8112 | void DebugBreakOnDialog::updateCurrent(void) |
| 8113 | { |
| 8114 | char stmp[128]; |
| 8115 | |
| 8116 | if ( type ) |
| 8117 | { |
| 8118 | totalCount = total_instructions; |
| 8119 | deltaCount = delta_instructions; |
| 8120 | |
| 8121 | sprintf(stmp, "Current Instruction Count: %10llu (+%llu)", totalCount, deltaCount); |
| 8122 | currLbl->setText( tr(stmp) ); |
| 8123 | |
| 8124 | } |
| 8125 | else |
| 8126 | { |
| 8127 | totalCount = timestampbase + (uint64)timestamp - total_cycles_base; |
| 8128 | deltaCount = timestampbase + (uint64)timestamp - delta_cycles_base; |
| 8129 | |
| 8130 | if (totalCount < 0) // sanity check |
| 8131 | { |
| 8132 | ResetDebugStatisticsCounters(); |
| 8133 | totalCount = 0; |
| 8134 | } |
| 8135 | if (deltaCount < 0) // sanity check |
| 8136 | { |
| 8137 | ResetDebugStatisticsCounters(); |
| 8138 | deltaCount = 0; |
| 8139 | } |
| 8140 | sprintf(stmp, "Current Cycle Count: %10llu (+%llu)", totalCount, deltaCount); |
| 8141 | currLbl->setText( tr(stmp) ); |
| 8142 | } |
| 8143 | |
| 8144 | } |
| 8145 | //---------------------------------------------------------------------------- |
| 8146 | void DebugBreakOnDialog::resetCounters(void) |
| 8147 | { |
nothing calls this directly
no test coverage detected