|
GCA 0.4.0 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pfg.gca.GCRecord
A GC record represents a single garbage collection activity. It is independent of whether the GC occured due to a manual GC request or an allocation failure.
Field Summary | |
---|---|
protected long |
bytesAvailable
See getBytesAvailable() . |
protected long |
bytesFree
See getBytesFree() . |
protected long |
bytesReclaimed
See getBytesReclaimed() . |
protected int |
compact
See getCompactTime() . |
protected int |
gcIndex
See getGcIndex() . |
protected int |
mark
See getMarkTime() . |
protected java.util.Date |
startTime
See getStartTime() . |
protected int |
sweep
See getSweepTime() . |
Constructor Summary | |
---|---|
GCRecord()
Create an empty struct. |
|
GCRecord(int gcIndex,
int mark,
int sweep,
int compact,
java.util.Date startTime,
long bytesReclaimed,
long bytesFree,
long bytesAvailable)
Create a new GCRecord. |
Method Summary | |
---|---|
long |
getBytesAvailable()
Get bytes presently available to the heap. |
long |
getBytesFree()
Get the amounts of bytes free after a GC. |
long |
getBytesReclaimed()
Get bytes freed by the GC. |
int |
getCompactTime()
Get the compaction time. |
int |
getGcIndex()
Get the index for this GC activity. |
int |
getMarkTime()
Get the mark time. |
java.util.Date |
getStartTime()
Get the start time for this GC activity. |
int |
getSweepTime()
Get the sweep time. |
int |
getTotalTime()
Return the total time for this GC activity. |
void |
setBytesAvailable(long bytesAvailable)
Set the bytes available on the heap. |
void |
setBytesFree(long bytesFree)
Set the number of bytes freed by this GC activity. |
void |
setBytesReclaimed(long bytesReclaimed)
Set the bytes reclaimed by this GC activity. |
void |
setCompactTime(int compact)
Set the GC compaction time. |
void |
setGcIndex(int gcIndex)
Get the index for this GC activity. |
void |
setMarkTime(int mark)
Set the mark time. |
void |
setStartTime(java.util.Date startTime)
Set the start time of this GC activity. |
void |
setSweepTime(int sweep)
Set the sweep time. |
java.lang.String |
toString()
Send a one-line summary of the contents of this GC activity to system-out. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long bytesAvailable
getBytesAvailable()
.protected long bytesFree
getBytesFree()
.protected long bytesReclaimed
getBytesReclaimed()
.protected int compact
getCompactTime()
.protected int gcIndex
getGcIndex()
.protected int mark
getMarkTime()
.protected java.util.Date startTime
getStartTime()
.protected int sweep
getSweepTime()
.Constructor Detail |
public GCRecord()
public GCRecord(int gcIndex, int mark, int sweep, int compact, java.util.Date startTime, long bytesReclaimed, long bytesFree, long bytesAvailable)
gcIndex
- the integer associated with this GC activitymark
- mark timesweep
- sweep timecompact
- compaction timestartTime
- time at which this GC activity beganbytesReclaimed
- bytes reclaimed by this GC activitybytesFree
- bytes available on the heap after GCbytesAvailable
- total bytes available on heapMethod Detail |
public long getBytesAvailable()
public long getBytesFree()
public long getBytesReclaimed()
public int getCompactTime()
public int getGcIndex()
public int getMarkTime()
public java.util.Date getStartTime()
Date
objectpublic int getSweepTime()
public int getTotalTime()
mark time
, the sweep time
and the compaction time
.public void setBytesAvailable(long bytesAvailable)
bytesAvailable
- public void setBytesFree(long bytesFree)
bytesFree
- public void setBytesReclaimed(long bytesReclaimed)
bytesReclaimed
- public void setCompactTime(int compact)
compact
- compaction time in millisecondspublic void setGcIndex(int gcIndex)
gcIndex
- the index for this GC activitypublic void setMarkTime(int mark)
mark
- mark time in millisecondspublic void setStartTime(java.util.Date startTime)
startTime
- start time as a Date
objectpublic void setSweepTime(int sweep)
sweep
- sweep time in millisecondspublic java.lang.String toString()
toString
in class java.lang.Object
|
Paul Glezen http://glezen.org/gca/> |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |