|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mmtk.vm.gcspy.Stream org.mmtk.vm.gcspy.ShortStream
public abstract class ShortStream
Set up a GCspy Stream with data type SHORT_TYPE.
Field Summary | |
---|---|
private short[] |
data
|
private short |
defaultValue
|
Fields inherited from class org.mmtk.vm.gcspy.Stream |
---|
DEBUG, presentation, serverSpace, stream, streamId, summary0, summary1, summaryEnabled, summaryLen |
Constructor Summary | |
---|---|
ShortStream(AbstractDriver driver,
String name,
short minValue,
short maxValue,
short zeroValue,
short defaultValue,
String stringPre,
String stringPost,
int presentation,
int paintStyle,
int indexMaxStream,
Color colour,
boolean summary)
Construct a new GCspy stream of SHORT_TYPE |
Method Summary | |
---|---|
void |
distribute(int start,
short remainder,
int blockSize,
short value)
Distribute a value across a sequence of tiles. |
void |
increment(int index,
short value)
Increment the value of a tile. |
void |
resetData()
Reset all data in this stream to default values. |
void |
send(int event,
int numTiles)
Send the data for this stream. |
Methods inherited from class org.mmtk.vm.gcspy.Stream |
---|
getMaxValue, getMinValue, sendSummary, setStream, setSummary, setSummary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private short[] data
private short defaultValue
Constructor Detail |
---|
public ShortStream(AbstractDriver driver, String name, short minValue, short maxValue, short zeroValue, short defaultValue, String stringPre, String stringPost, int presentation, int paintStyle, int indexMaxStream, Color colour, boolean summary)
driver
- The driver that owns this Streamname
- The name of the stream (e.g. "Used space")minValue
- The minimum value for any item in this stream.
Values less than this will be represented as "minValue-"maxValue
- The maximum value for any item in this stream.
Values greater than this will be represented as "maxValue+"zeroValue
- The zero value for this streamdefaultValue
- The default value for this streamstringPre
- A string to prefix values (e.g. "Used: ")stringPost
- A string to suffix values (e.g. " bytes.")presentation
- How a stream value is to be presented.paintStyle
- How the value is to be painted.indexMaxStream
- The index of the maximum stream if the presentation is *_VAR.colour
- The default colour for tiles of this streamMethod Detail |
---|
public void resetData()
public void distribute(int start, short remainder, int blockSize, short value)
start
- the index of the starting tileremainder
- the value left in the starting tileblockSize
- the size of each tilevalue
- the value to distributepublic void increment(int index, short value)
index
- the indexvalue
- the incrementpublic void send(int event, int numTiles)
Stream
send
in class Stream
event
- the event.numTiles
- the number of tiles to send (which may be less than maxTileNum)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |