Tweaks to allow the file usage statistics utils to run on psp.

This commit is contained in:
wrenczes@gmail.com
2011-04-25 06:26:19 +00:00
parent 0b1808a989
commit 3ea5e54d95

View File

@@ -27,12 +27,11 @@
#include <algorithm> #include <algorithm>
#include <stdlib.h> #include <stdlib.h>
#if defined( WIN32 ) || defined (LINUX) #include "DebugRoutines.h"
// enable this define to collect statistics on how many times an ifstream is created for a given file. // enable this define to collect statistics on how many times an ifstream is created for a given file.
//#define TRACK_FILE_USAGE_STATS //#define TRACK_FILE_USAGE_STATS
#endif
namespace wagic namespace wagic
{ {
@@ -44,6 +43,7 @@ namespace wagic
std::ifstream(inFilename, inMode) std::ifstream(inFilename, inMode)
{ {
sFileMap[std::string(inFilename)] += 1; sFileMap[std::string(inFilename)] += 1;
DebugTrace("ifstream opened on file: " << inFilename);
} }
static void Dump() static void Dump()