mirror of https://github.com/PCSX2/pcsx2.git
Fix for VS2013 microVU debug logging
This commit is contained in:
parent
28bb64aae8
commit
534fa65ecf
|
@ -99,6 +99,10 @@ void __mVUdumpProgram(microVU& mVU, microProgram& prog) {
|
||||||
mVUlog(")");
|
mVUlog(")");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mVUstall) {
|
||||||
|
mVUlog(" Stall %d Cycles", mVUstall);
|
||||||
|
}
|
||||||
|
|
||||||
iPC = i;
|
iPC = i;
|
||||||
mVU.code = prog.data[i];
|
mVU.code = prog.data[i];
|
||||||
|
|
||||||
|
|
|
@ -113,10 +113,10 @@ struct microProfiler {
|
||||||
progCount++;
|
progCount++;
|
||||||
if ((progCount % progLimit) == 0) {
|
if ((progCount % progLimit) == 0) {
|
||||||
u64 total = 0;
|
u64 total = 0;
|
||||||
vector< pair<u32, u32> > v;
|
std::vector< std::pair<u32, u32> > v;
|
||||||
for(int i = 0; i < opLastOpcode; i++) {
|
for(int i = 0; i < opLastOpcode; i++) {
|
||||||
total += opStats[i];
|
total += opStats[i];
|
||||||
v.push_back(make_pair(opStats[i], i));
|
v.push_back(std::make_pair(opStats[i], i));
|
||||||
}
|
}
|
||||||
std::sort (v.begin(), v.end());
|
std::sort (v.begin(), v.end());
|
||||||
std::reverse(v.begin(), v.end());
|
std::reverse(v.begin(), v.end());
|
||||||
|
@ -125,7 +125,7 @@ struct microProfiler {
|
||||||
for(u32 i = 0; i < v.size(); i++) {
|
for(u32 i = 0; i < v.size(); i++) {
|
||||||
u64 count = v[i].first;
|
u64 count = v[i].first;
|
||||||
double stat = (double)count / dTotal * 100.0;
|
double stat = (double)count / dTotal * 100.0;
|
||||||
string str = microOpcodeName[v[i].second];
|
std::string str = microOpcodeName[v[i].second];
|
||||||
str.resize(8, ' ');
|
str.resize(8, ' ');
|
||||||
DevCon.WriteLn("%s - [%3.4f%%][count=%u]",
|
DevCon.WriteLn("%s - [%3.4f%%][count=%u]",
|
||||||
str.c_str(), stat, (u32)count);
|
str.c_str(), stat, (u32)count);
|
||||||
|
|
Loading…
Reference in New Issue