uk.ac.ebi.adfconverter.tools.monitor
Class MemMonitor
java.lang.Object
uk.ac.ebi.adfconverter.tools.monitor.MemMonitor
- public class MemMonitor
- extends java.lang.Object
Monitors heap size, allocation size, change in allocation,
change in heap size, and detects garbage collection (when the
allocation size decreases). Call takeSample() to take a
"sample" of the currently memory state.
|
Nested Class Summary |
static class |
MemMonitor.Data
The Data class contains info on a series of float values.
|
|
Method Summary |
void |
takeSample()
Takes a sample of the current memory state. |
static java.lang.String |
toByteFormat(float numBytes)
Convert number of bytes to string representing bytes,
kilobytes, megabytes, etc. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MemMonitor
public MemMonitor()
takeSample
public void takeSample()
- Takes a sample of the current memory state.
toByteFormat
public static java.lang.String toByteFormat(float numBytes)
- Convert number of bytes to string representing bytes,
kilobytes, megabytes, etc.
toString
public java.lang.String toString()
European Bioinformatics InstituteMicroarray Informatics Team