0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

try to fix win64 memory take 3 SERVER-528

This commit is contained in:
Eliot Horowitz 2010-01-11 06:44:00 -05:00
parent e011523b20
commit cfdca85934

View File

@ -47,13 +47,13 @@ namespace mongo {
int ProcessInfo::getVirtualMemorySize(){
PROCESS_MEMORY_COUNTERS pmc;
assert( GetProcessMemoryInfo( _pid , &pmc, sizeof(pmc) ) );
assert( GetProcessMemoryInfo( GetCurrentProcess() , &pmc, sizeof(pmc) ) );
return _wconvertmtos( pmc.PagefileUsage );
}
int ProcessInfo::getResidentSize(){
PROCESS_MEMORY_COUNTERS pmc;
assert( GetProcessMemoryInfo( _pid , &pmc, sizeof(pmc) ) );
assert( GetProcessMemoryInfo( GetCurrentProcess() , &pmc, sizeof(pmc) ) );
return _wconvertmtos( pmc.WorkingSetSize );
}