ProcUnit::GetMemoryInfo
Gets memory information
int GetMemoryInfo(
int kind
)
Parameters
kind
|
Type of memory information to be gotten
|
Return Value
Returns 0 when the memory information is successfully obtained.
Otherwise returns a non-zero value.
Description
Gets memory information on the type specified by argument kind, it specification is as follows.
0: Entire memory size which OS has recognized
1: Available memory size which OS has recognized
2: Extended memory entire size
3: Extended memory available size
4: CoreRA process memory entire size
5: CoreRA process memory available size
6: Processing unit data entire size
7: Processing unit data available size
Example
int Sample::MeasureProc(ProcUnit *ptrProcUnit)
{
// Gets memory information
ptrProcUnit->GetMemoryInfo(0);
}