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:
parent
e011523b20
commit
cfdca85934
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user