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:
james.jdunne 2011-01-05 03:29:56 +00:00
parent 8f9f1b64ff
commit 0b46610d49
1 changed files with 1 additions and 1 deletions

View File

@ -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