Tweaks to allow the file usage statistics utils to run on psp.
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user