Changed order of operations in Profiler.cpp to calculate non-zero values for 'cost'. Integer division was too early. Credit to my brother, Joe, for figuring this one out.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6746 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
8f9f1b64ff
commit
0b46610d49
|
@ -55,7 +55,7 @@ void WriteProfileResults(const char *filename) {
|
|||
for (int i = 0; i < jit->GetBlockCache()->GetNumBlocks(); i++)
|
||||
{
|
||||
const JitBlock *block = jit->GetBlockCache()->GetBlock(i);
|
||||
u64 cost = (block->originalSize / 4) * block->runCount; // rough heuristic. mem instructions should cost more.
|
||||
u64 cost = block->originalSize * (block->runCount / 4); // rough heuristic. mem instructions should cost more.
|
||||
#ifdef _WIN32
|
||||
u64 timecost = block->ticCounter; // Indeed ;)
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue