Merge pull request #2394 from Sonicadvance1/android_block_profiling_api

[Android] Block profiling JNI interface
This commit is contained in:
Ryan Houdek committed 2015-05-25 23:06:37 -04:00
commit 0c5f5c4519
3 files changed
+37

No files matched your search

@@ -120,6 +120,10 @@ namespace JitInterface
if (!jit)
return;
PowerPC::CPUState old_state = PowerPC::GetState();
if (old_state == PowerPC::CPUState::CPU_RUNNING)
PowerPC::Pause();
std::vector<BlockStat> stats;
stats.reserve(jit->GetBlockCache()->GetNumBlocks());
u64 cost_sum = 0;
@@ -161,6 +165,9 @@ namespace JitInterface
(double)block->ticCounter*1000.0/(double)countsPerSec, block->codeSize);
}
}
if (old_state == PowerPC::CPUState::CPU_RUNNING)
PowerPC::Start();
}
bool HandleFault(uintptr_t access_address, SContext* ctx)
{