summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/Profiler.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-09-01 12:11:08 +0000
committernakeee <nakeee@gmail.com>2008-09-01 12:11:08 +0000
commit4bbfff3cac6d4f435df2de125c96f1f08f44463f (patch)
treee9f64dc9932f62645e9a6387d48ac27dd2cd673d /Source/Core/VideoCommon/Src/Profiler.cpp
parentcad45aea724b8addacce18e99eec8bc4a170cbb2 (diff)
many warning fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@422 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/Profiler.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/Profiler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/Src/Profiler.cpp b/Source/Core/VideoCommon/Src/Profiler.cpp
index 73223393cc..6a66cdc006 100644
--- a/Source/Core/VideoCommon/Src/Profiler.cpp
+++ b/Source/Core/VideoCommon/Src/Profiler.cpp
@@ -247,15 +247,15 @@ void DVProfWrite(const char* pfilename, u32 frames)
}
{
- map<string, DVTIMEINFO>::iterator it;
+ map<string, DVTIMEINFO>::iterator iter;
fprintf(f, "\n\n-------------------------------------------------------------------\n\n");
u64 uTotal[2] = {0};
double fiTotalTime[2];
- for(it = mapAggregateTimes.begin(); it != mapAggregateTimes.end(); ++it) {
- uTotal[0] += it->second.uExclusive;
- uTotal[1] += it->second.uInclusive;
+ for(iter = mapAggregateTimes.begin(); iter != mapAggregateTimes.end(); ++iter) {
+ uTotal[0] += iter->second.uExclusive;
+ uTotal[1] += iter->second.uInclusive;
}
fprintf(f, "total times (%d): ex: %Lu ", frames, 1000000*uTotal[0]/(luPerfFreq*(u64)frames));
@@ -265,9 +265,9 @@ void DVProfWrite(const char* pfilename, u32 frames)
fiTotalTime[1] = 1.0 / (double)uTotal[1];
// output the combined times
- for(it = mapAggregateTimes.begin(); it != mapAggregateTimes.end(); ++it) {
- fprintf(f, "%s - ex: %f inc: %f\n", it->first.c_str(), (float)((double)it->second.uExclusive * fiTotalTime[0]),
- (float)((double)it->second.uInclusive * fiTotalTime[1]));
+ for(iter = mapAggregateTimes.begin(); iter != mapAggregateTimes.end(); ++iter) {
+ fprintf(f, "%s - ex: %f inc: %f\n", iter->first.c_str(), (float)((double)iter->second.uExclusive * fiTotalTime[0]),
+ (float)((double)iter->second.uInclusive * fiTotalTime[1]));
}
}