| java.lang.Object org.netbeans.junit.MemoryMeasurement
MemoryMeasurement | public class MemoryMeasurement (Code) | | 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
author: mb115822 |
IDE_PID_SYSTEM_PROPERTY | final public static String IDE_PID_SYSTEM_PROPERTY(Code) | | Name of the system property, which contains PID of running IDE. This property
is set by ide executor of XTest framework.
|
getProcessMemoryFootPrint | public static long getProcessMemoryFootPrint(long pid) throws MemoryMeasurementFailedException(Code) | | Gets memory footprint of a process identified by PID. On each platform this
methods returns a platform specific value.
Parameters: pid - process identification for the process, which size is to be measured throws: MemoryMeasurementFailedException - When measurement cannot be performed memory size value |
|
|