static TLptsMemoryInfo |
TLptsSysInfoUtil.getMemoryInfo()
Get Application Memory Info
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : No
Notes :
Example :
public void actionPerformed(ActionEvent e)
{
TLptsMemoryInfo mi = TLptsSysInfoUtil.getMemoryInfo();
String maxMemory = mi.getMemoryString(mi.getMaxMemoryInMb(), "#####.0000");
String totalMemory = mi.getMemoryString(mi.getTotalMemoryInMb(), "#####.0000");
String freeMemory = mi.getMemoryString(mi.getFreeMemoryInMb(), "#####.0000");
Timestamp dateTime = new Timestamp(mi.getTime());
//Or
String time = mi.getTimeString();
}
Result:63,5625
4,9375
4,3906
2010-07-08 10:58:55.493
10:58:55.493
|