|
org.netbeans.modules.nbjunit/1 1.41 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.junit.MemoryMeasurement
public class MemoryMeasurement
Class with static methods for measuring memory footprint of a process. Since this class required platform dependent code, there have to be a dll library called 'lib.memory-measurement.win32.dll' present in a home directory of NbJUnit (set by nbjunit.home property in either junit.properties file or present as a system property). Please note, methods available in this class return a system specific values for each supported platforms. The meanings of values are: On Solaris: resident memory size On Linux: VmSize (virtual memory size) On Windows: pagefile usage
| Field Summary | |
|---|---|
static String |
IDE_PID_SYSTEM_PROPERTY
Name of the system property, which contains PID of running IDE. |
| Method Summary | |
|---|---|
static long |
getIdeMemoryFootPrint()
Gets memory footprint of NetBeans IDE. |
static long |
getProcessMemoryFootPrint(long pid)
Gets memory footprint of a process identified by PID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String IDE_PID_SYSTEM_PROPERTY
| Method Detail |
|---|
public static long getIdeMemoryFootPrint()
throws MemoryMeasurementFailedException
MemoryMeasurementFailedException - When measurement cannot be performed
public static long getProcessMemoryFootPrint(long pid)
throws MemoryMeasurementFailedException
pid - process identification for the process, which size is to be measured
MemoryMeasurementFailedException - When measurement cannot be performed
|
org.netbeans.modules.nbjunit/1 1.41 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||