|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmunit.framework.cldc11.MemoryMeasurement
public class MemoryMeasurement
The MemoryMeasurement class monitors how much memory is used by a test.
Constructor Summary | |
---|---|
MemoryMeasurement(long maxMemory)
Constructor. |
|
MemoryMeasurement(long maxMemory,
boolean runGarbageCollector)
|
Method Summary | |
---|---|
void |
endMeasurement()
Ends monitoring. |
void |
startMeasurement()
Starts monitoring. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryMeasurement(long maxMemory)
maxMemory
- The maximum number of bytes that the test may put on the heap.public MemoryMeasurement(long maxMemory, boolean runGarbageCollector)
maxMemory
- The maximum number of bytes that the test may put on the heap.runGarbageCollector
- If true the GC is run before and after a test starts.Method Detail |
---|
public void startMeasurement()
startMeasurement
in interface PerformanceMeasurement
public void endMeasurement()
endMeasurement
in interface PerformanceMeasurement
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |