public class MemoryMeasurement extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
IDE_PID_SYSTEM_PROPERTY
Name of the system property, which contains PID of running IDE.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
getIdeMemoryFootPrint()
Gets memory footprint of NetBeans IDE.
|
static long |
getProcessMemoryFootPrint(long pid)
Gets memory footprint of a process identified by PID.
|
public static final String IDE_PID_SYSTEM_PROPERTY
public static long getIdeMemoryFootPrint()
throws MemoryMeasurementFailedException
MemoryMeasurementFailedException - When measurement cannot be performedpublic static long getProcessMemoryFootPrint(long pid)
throws MemoryMeasurementFailedException
pid - process identification for the process, which size is to be measuredMemoryMeasurementFailedException - When measurement cannot be performedBuilt on May 22 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.