| 277 | #ifdef DAEDALUS_DEBUG_DYNAREC |
| 278 | |
| 279 | struct SAddressHitCount |
| 280 | { |
| 281 | u32 Address {}; |
| 282 | u32 HitCount {}; |
| 283 | |
| 284 | SAddressHitCount( u32 address, u32 hitcount ) : Address( address ), HitCount( hitcount ) {} |
| 285 | |
| 286 | u32 GetAbortReason() const |
| 287 | { |
| 288 | std::map<u32, u32>::const_iterator it( gAbortedTraceReasons.find( Address ) ); |
| 289 | if( it != gAbortedTraceReasons.end() ) |
| 290 | { |
| 291 | return it->second; |
| 292 | } |
| 293 | |
| 294 | return 0; |
| 295 | } |
| 296 | }; |
| 297 | |
| 298 | bool SortByHitCount( const SAddressHitCount & a, const SAddressHitCount & b ) |
| 299 | { |
no outgoing calls
no test coverage detected