jeco.dmm.sim2.util
Class ProfilingReport

java.lang.Object
  extended by java.lang.Thread
      extended by jeco.dmm.sim2.util.ProfilingReport
All Implemented Interfaces:
java.lang.Runnable

public class ProfilingReport
extends java.lang.Thread

Author:
jlrisco

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static java.lang.String FREE
           
protected  long freeIdErrors
           
protected  long frees
           
static java.lang.String MALLOC
           
protected  long mallocs
           
protected  long mallocsAfterFrees
           
protected  long maxMemoryInUse
           
protected  long maxSizeInB
           
protected  long minSizeInB
           
protected  long objectIdErrors
           
protected  java.lang.String pathToProfile
           
static java.lang.String READ
           
protected  long reads
           
protected  long size
           
protected  long sizeErrors
           
protected  java.util.TreeSet<java.lang.Long> sizesInB
           
protected  java.util.TreeMap<java.lang.Long,java.lang.Long> sizeUsage
           
protected  boolean stopped
           
protected  long totalMemory
           
static java.lang.String WRITE
           
protected  long writes
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ProfilingReport(java.lang.String pathToProfile)
           
 
Method Summary
 double computeSizeUsageAvg()
           
 double computeSizeUsageStd()
           
 long getMaxMemoryInUse()
           
 long getMaxSizeInB()
           
 long getMinSizeInB()
           
 java.lang.String getPathToProfile()
           
 long getSize()
           
 java.util.TreeSet<java.lang.Long> getSizesInB()
           
 boolean isStopped()
           
 void load()
           
 void run()
           
 void stopReading()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MALLOC

public static final java.lang.String MALLOC
See Also:
Constant Field Values

FREE

public static final java.lang.String FREE
See Also:
Constant Field Values

READ

public static final java.lang.String READ
See Also:
Constant Field Values

WRITE

public static final java.lang.String WRITE
See Also:
Constant Field Values

pathToProfile

protected java.lang.String pathToProfile

size

protected long size

sizeErrors

protected long sizeErrors

objectIdErrors

protected long objectIdErrors

mallocs

protected long mallocs

totalMemory

protected long totalMemory

maxMemoryInUse

protected long maxMemoryInUse

frees

protected long frees

freeIdErrors

protected long freeIdErrors

mallocsAfterFrees

protected long mallocsAfterFrees

reads

protected long reads

writes

protected long writes

minSizeInB

protected long minSizeInB

maxSizeInB

protected long maxSizeInB

sizesInB

protected java.util.TreeSet<java.lang.Long> sizesInB

sizeUsage

protected java.util.TreeMap<java.lang.Long,java.lang.Long> sizeUsage

stopped

protected boolean stopped
Constructor Detail

ProfilingReport

public ProfilingReport(java.lang.String pathToProfile)
Method Detail

getPathToProfile

public java.lang.String getPathToProfile()

getSize

public long getSize()

getMaxMemoryInUse

public long getMaxMemoryInUse()

getMinSizeInB

public long getMinSizeInB()

getMaxSizeInB

public long getMaxSizeInB()

getSizesInB

public java.util.TreeSet<java.lang.Long> getSizesInB()

isStopped

public boolean isStopped()

load

public void load()
          throws java.io.FileNotFoundException,
                 java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

stopReading

public void stopReading()

computeSizeUsageAvg

public double computeSizeUsageAvg()

computeSizeUsageStd

public double computeSizeUsageStd()