mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
Break out the disassembler code from the WXWidgets UI.
This cleans up some of the code between core and UI for disassembling and dumping code blocks. Should help the QT UI in bringing up its debug UI since it won't have to deal with this garbage now.
This commit is contained in:
@ -44,13 +44,24 @@
|
||||
|
||||
struct BlockStat
|
||||
{
|
||||
BlockStat(int bn, u64 c) : blockNum(bn), cost(c) {}
|
||||
BlockStat(int bn, u32 _addr, u64 c, u64 ticks, u32 size) :
|
||||
blockNum(bn), addr(_addr), cost(c), tick_counter(ticks), block_size(size) {}
|
||||
int blockNum;
|
||||
u32 addr;
|
||||
u64 cost;
|
||||
u64 tick_counter;
|
||||
u32 block_size;
|
||||
|
||||
bool operator <(const BlockStat &other) const
|
||||
{ return cost > other.cost; }
|
||||
};
|
||||
struct ProfileStats
|
||||
{
|
||||
std::vector<BlockStat> block_stats;
|
||||
u64 cost_sum;
|
||||
u64 timecost_sum;
|
||||
u64 countsPerSec;
|
||||
};
|
||||
|
||||
namespace Profiler
|
||||
{
|
||||
|
Reference in New Issue
Block a user