print percent with .2lf

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@528 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-09-15 05:14:18 +00:00
parent 39aed329f9
commit 6a7351181f
1 changed files with 2 additions and 2 deletions

View File

@ -79,10 +79,10 @@ void WriteProfileResults(const char *filename) {
double percent = 100.0 * (double)stats[i].cost / (double)cost_sum;
#ifdef _WIN32
double timePercent = 100.0 * (double)block->ticCounter.QuadPart / (double)timecost_sum;
fprintf(f, "%08x\t%s\t%llu\t%llu\t%llf\t%llf\t%lf\t%i\n",
fprintf(f, "%08x\t%s\t%llu\t%llu\%.2lft\t%llf\t%lf\t%i\n",
block->originalAddress, name.c_str(), stats[i].cost, block->ticCounter.QuadPart, percent, timePercent, (double)block->ticCounter.QuadPart*1000.0/(double)countsPerSec.QuadPart, block->codeSize);
#else
fprintf(f, "%08x\t%s\t%llu\t???\t%llf\t???\t???\t%i\n",
fprintf(f, "%08x\t%s\t%llu\t???\t%.2lf\t???\t???\t%i\n",
block->originalAddress, name.c_str(), stats[i].cost, /*block->ticCounter.QuadPart,*/ percent, /*timePercent, (double)block->ticCounter.QuadPart*1000.0/(double)countsPerSec.QuadPart,*/ block->codeSize);
#endif
}